From 2920234a6d5bbe520038d40ee74d5202baa0781f Mon Sep 17 00:00:00 2001 From: Lebbeous Fogle-Weekley Date: Wed, 2 Jan 2013 12:33:36 -0500 Subject: [PATCH] LP #1092921: Display of/sorting by CN affixes in Simplified Hold Pull List In the Simplified Hold Pull List interface, the "Call Number Label" column displays the call number of the copy targeted by the hold in each row, and it does so by combining affixes with the actual label field. Sorting of this column actually uses the call number sortkey generated in-database for this purpose. Sometimes this means that sorting order doesn't match what you'd expect to see with this column. Opinions differ on desired behavior, so now you can explicity add columns to the table for call number prefix and suffix, and sort on either of those (potentially in combination with other columns). Signed-off-by: Lebbeous Fogle-Weekley --- Open-ILS/src/templates/circ/hold_pull_list.tt2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/circ/hold_pull_list.tt2 b/Open-ILS/src/templates/circ/hold_pull_list.tt2 index 67056a811a..49f3b95088 100644 --- a/Open-ILS/src/templates/circ/hold_pull_list.tt2 +++ b/Open-ILS/src/templates/circ/hold_pull_list.tt2 @@ -84,7 +84,7 @@ defaultSort="['copy_location_order_position','call_number_sort_key']" mapExtras="map_extras" suppressFilterFields="['copy_circ_lib']" - sortFieldReMap="{call_number_label:'call_number_sort_key',shelving_loc:'copy_location_order_position'}" + sortFieldReMap="{call_number_label:'call_number_sort_key',cn_prefix:'current_copy.call_number.prefix.label_sortkey',cn_suffix:'current_copy.call_number.suffix.label_sortkey',shelving_loc:'copy_location_order_position'}" fetchLock="true" query="{}"> @@ -104,6 +104,8 @@ [% l('Request Library (Shortname)') %] [% l('Selection Locus') %] [% l('SMS Carrier') %] + [% l('Call Number Prefix') %] + [% l('Call Number Suffix') %] -- 2.11.0