From a229588e8271bb395a404bdf45fd20342525afb2 Mon Sep 17 00:00:00 2001
From: Cesar Velez <cesar.velez@equinoxinitiative.org>
Date: Thu, 19 Apr 2018 17:25:59 -0400
Subject: [PATCH] LP#1765731 - restore CN suffix and preffix in Holds Pull List

Overly gung-ho removal of "redundant" fields/columns in bug
1728147 removed call number prefix and suffix as available columns
in the hold pull list grid in the web staff client; this will
restore them there.

Signed-off-by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
---
 Open-ILS/src/templates/staff/circ/holds/t_pull_list.tt2 | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/Open-ILS/src/templates/staff/circ/holds/t_pull_list.tt2 b/Open-ILS/src/templates/staff/circ/holds/t_pull_list.tt2
index ff74cec4b0..2da31950b9 100644
--- a/Open-ILS/src/templates/staff/circ/holds/t_pull_list.tt2
+++ b/Open-ILS/src/templates/staff/circ/holds/t_pull_list.tt2
@@ -62,17 +62,29 @@
   <!-- Render the colum using the sort-able call number sort key, but
        display the call number label, complete with prefix and suffix
        in the cell. -->
+
   <eg-grid-field name="call_number_sort_key" required
     path="current_copy.call_number.label_sortkey"
     label="[% l('Call Number') %]">
     <span>{{item.call_number_label}}</span>
   </eg-grid-field>
+
   <!-- need call_number_label here so that the grid query always
        fetches it; otherwise, the call number field above
        won't consistently display values -->
+
   <eg-grid-field name="call_number_label"
     path="call_number_label" required hidden
-    label="[% l('Call Number Label') %]"></eg-grid-field>
+    label="[% l('Call Number Label') %]">
+  </eg-grid-field>
+
+  <eg-grid-field name="cn_prefix" path="current_copy.call_number.prefix.label" hidden required
+    label="[% l('Call Number Prefix') %]">
+  </eg-grid-field>
+
+  <eg-grid-field name="cn_suffix" path="current_copy.call_number.suffix.label" hidden required
+    label="[% l('Call Number Suffix') %]">
+  </eg-grid-field>
 
   <eg-grid-field name="author" 
     path="current_copy.call_number.record.simple_record.author" 
-- 
2.11.0