From: Lebbeous Fogle-Weekley Date: Wed, 2 Jan 2013 17:33:36 +0000 (-0500) Subject: LP #1092921: Display of/sorting by CN affixes in Simplified Hold Pull List X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6a1db3f4f1bd2e355032cfc82b59af8861d8fc2a;p=evergreen%2Fpines.git 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). Amended from an earlier version of this commit that still didn't sort CN prefix and suffix columns quite right. Signed-off-by: Lebbeous Fogle-Weekley Signed-off-by: Kathy Lussier Conflicts: Open-ILS/src/templates/circ/hold_pull_list.tt2 Signed-off-by: Ben Shum --- diff --git a/Open-ILS/src/templates/circ/hold_pull_list.tt2 b/Open-ILS/src/templates/circ/hold_pull_list.tt2 index 4fcadfac41..a5735470ef 100644 --- a/Open-ILS/src/templates/circ/hold_pull_list.tt2 +++ b/Open-ILS/src/templates/circ/hold_pull_list.tt2 @@ -14,9 +14,17 @@ "path": "current_copy.circ_lib", "filter": true }, + "call_number_prefix_sort_key": { + "path": "current_copy.call_number.prefix.label_sortkey", + "sort": true + }, + "call_number_suffix_sort_key": { + "path": "current_copy.call_number.suffix.label_sortkey", + "sort": true + }, "call_number_sort_key": { "path": "current_copy.call_number.label_sortkey", - "sort" :true + "sort": true } }; @@ -84,7 +92,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:'call_number_prefix_sort_key',cn_suffix:'call_number_suffix_sort_key',shelving_loc:'copy_location_order_position'}" fetchLock="true" query="{}"> @@ -104,6 +112,8 @@ Request Library (Shortname) Selection Locus SMS Carrier + [% l('Call Number Prefix') %] + [% l('Call Number Suffix') %]