lp1654529 Callnumber Sorting by Sortkey in Transit & Copy Buckets
authorKyle Huckins <khuckins@catalyte.io>
Tue, 21 Jan 2020 22:38:13 +0000 (22:38 +0000)
committerChris Sharp <csharp@georgialibraries.org>
Thu, 20 Feb 2020 16:39:20 +0000 (11:39 -0500)
- Add column for label_sortkey, displaying the data for a
Callnumber's Label.

Signed-off-by: Kyle Huckins <khuckins@catalyte.io>
 Changes to be committed:
modified:   Open-ILS/src/templates/staff/cat/bucket/copy/t_view.tt2
modified:   Open-ILS/src/templates/staff/circ/transits/t_list.tt2

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/templates/staff/cat/bucket/copy/t_view.tt2
Open-ILS/src/templates/staff/circ/transits/t_list.tt2

index 5eb522c..adc1f50 100644 (file)
@@ -34,7 +34,8 @@
       {{item['barcode']}}
     </a>
   </eg-grid-field>
-  <eg-grid-field label="[% l('Call Number') %]" path="call_number.label" visible></eg-grid-field>
+  <eg-grid-field label="[% l('Call Number') %]" path="call_number.label_sortkey" visible><span>{{item['call_number.label']}}</span></eg-grid-field>
+  <eg-grid-field label="[% l('Call Number Label') %]" path="call_number.label" hidden required></eg-grid-field>
   <eg-grid-field label="[% l('CN Prefix') %]" path="call_number.prefix.label"></eg-grid-field>
   <eg-grid-field label="[% l('CN Suffix') %]" path="call_number.suffix.label"></eg-grid-field>
   <eg-grid-field label="[% l('Location') %]"    path="location.name" visible></eg-grid-field>
index 425cd2f..d151200 100644 (file)
@@ -53,7 +53,8 @@
   <eg-grid-field path='target_copy.circ_lib.shortname' hidden></eg-grid-field>
   <eg-grid-field path='target_copy.location.name' label="[% l('Shelving Location') %]" hidden sortable></eg-grid-field>
   <eg-grid-field label="[% l('CN Prefix') %]" path="target_copy.call_number.prefix.label"></eg-grid-field>
-  <eg-grid-field path='target_copy.call_number.label' hidden sortable></eg-grid-field>
+  <eg-grid-field path='target_copy.call_number.label_sortkey' hidden sortable>{{item['target_copy.call_number.label']}}</eg-grid-field>
+  <eg-grid-field path='target_copy.call_number.label' hidden required sortable></eg-grid-field>
   <eg-grid-field label="[% l('CN Suffix') %]" path="target_copy.call_number.suffix.label"></eg-grid-field>
   <eg-grid-field path='target_copy.call_number.record.simple_record.title' label="[% l('Title') %]" sortable>
     <a target="_self" href="[% ctx.base_path %]/staff/cat/catalog/record/{{item['target_copy.call_number.record.simple_record.id']}}">