Fix for Bug 6612 - Sort pulldown for messages in alphabetical order
authorOwen Leonard <oleonard@myacpl.org>
Tue, 19 Jul 2011 09:05:13 +0000 (05:05 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 20 Jul 2011 21:50:18 +0000 (09:50 +1200)
The values in the menu come straight out of GetAuthorisedValues(), which sorts
its results by "category, lib, lib_opac." Rather than trying to re-sort the
data in circulation.pl this patch changes the template to show 'lib,' the
description, instead of the authorised_value. That will make the output
match the column which is being sorted.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt

index d2f6405..cb03d89 100644 (file)
@@ -207,7 +207,7 @@ function refocus(calendar) {
                 <select name="type" id="type" onchange="this.form.borrower_message.value=this.options[this.selectedIndex].value;">
                     <option value="">Select Note</option>
                     [% FOREACH canned_bor_notes_loo IN canned_bor_notes_loop %]
-                    <option value="[% canned_bor_notes_loo.lib %]">[% canned_bor_notes_loo.authorised_value %]</option>
+                    <option value="[% canned_bor_notes_loo.lib %]">[% canned_bor_notes_loo.lib %]</option>
                     [% END %]
                 </select>
         </li>