Bug 29760: Add patron category column to view_holdsqueue.tt
authorLucas Gass <lucas@bywatersolutions.com>
Wed, 12 Jan 2022 16:12:37 +0000 (16:12 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 23 Feb 2022 08:27:28 +0000 (22:27 -1000)
To test:
1. Have some holds and build the holds queue.
2. Go to view_holdsqueue.tt, there is no patron category column
3. Apply patch
4. Look again, there should now be a column for 'Patron category'
   showing both the caterory name and the category code.
5. Make sure you can sort and filter by this new column
6. Go to table settings and make sure you can properly hide this column
   and all other columns in the Holds queue.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
admin/columns_settings.yml
koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt

index 9b0982d..394b5d3 100644 (file)
@@ -1207,6 +1207,8 @@ modules:
             -
               columnname: patron
             -
+              columnname: patroncategory
+            -
               columnname: send_to
             -
               columnname: date
index b3c7357..b38e0ff 100644 (file)
@@ -84,6 +84,7 @@
         <th class="hq-enumchron">Enumeration</th>
         <th class="hq-barcode">Barcode</th>
         <th class="hq-patron">Patron</th>
+        <th class="hq-patroncategory">Patron category</th>
         <th class="hq-sendto">Send to</th>
         <th class="hq-date">Date</th>
         <th class="hq-notes">Notes</th>
                 <input type="text" placeholder="Patron">
             </span>
         </td>
+        <td class="hq-patroncategory">
+            <span class="filter_column filter_text">
+                <input type="text" placeholder="Patron category">
+            </span>
+        </td>
         <td class="hq-sendto">
             <span class="filter_column filter_text">
                 <input type="text" placeholder="Send to">
                  <p>[% itemsloo.patron.phone | html %]</p>
               [% END %]
             </td>
+            <td class="hq-patron-category">[% itemsloo.patron.category.description | html %] ([% itemsloo.patron.categorycode | html %])</td>
             <td class="hq-sendto">[% Branches.GetName( itemsloo.pickbranch ) | html %]</td>
             <td class="hq-date" data-order="[% itemsloo.reservedate | html %]">[% itemsloo.reservedate | $KohaDates %]</td>
             <td class="hq-notes">[% itemsloo.notes | html %]</td>