LP#1991726 View Holds: Patron Home Library Column
authorDan Briem <dbriem@wlsmail.org>
Wed, 5 Oct 2022 18:52:40 +0000 (14:52 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Wed, 16 Nov 2022 16:30:46 +0000 (11:30 -0500)
Adds a patron home library shortcode column to the
staff catalog view holds grid.

Signed-off-by: Dan Briem <dbriem@wlsmail.org>
Signed-off-by: Susan Morrison <smorrison@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.html
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm

index d30526d..846c219 100644 (file)
       <eg-grid-column i18n-label label="Patron Barcode" path="ucard_barcode"
         [cellTemplate]="userBarcodeTmpl" [hidden]="true"></eg-grid-column>
 
+      <eg-grid-column i18n-label label="Patron Home Library" path="ul_shortname" [hidden]="true"></eg-grid-column>
       <eg-grid-column i18n-label label="Patron alias" path="usr_alias"></eg-grid-column>
       <eg-grid-column i18n-label label="Capture Date" path='capture_time'
           datatype="timestamp" [datePlusTime]="true"></eg-grid-column>
index 9a6c302..2b1fba2 100644 (file)
@@ -2235,6 +2235,8 @@ SELECT  h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time
 
         sl.shortname AS sl_shortname,
 
+        ul.shortname AS ul_shortname,
+
         tr.id AS tr_id, tr.source_send_time AS tr_source_send_time, tr.dest_recv_time AS tr_dest_recv_time,
         tr.target_copy AS tr_target_copy, tr.source AS tr_source, tr.dest AS tr_dest, tr.prev_hop AS tr_prev_hop,
         tr.copy_status AS tr_copy_status, tr.persistant_transfer AS tr_persistant_transfer,
@@ -2382,6 +2384,7 @@ SELECT  h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time
         JOIN actor.org_unit pl ON (h.pickup_lib = pl.id)
         JOIN actor.org_unit rl ON (h.request_lib = rl.id)
         JOIN actor.org_unit sl ON (h.selection_ou = sl.id)
+        JOIN actor.org_unit ul ON (u.home_ou = ul.id)
         JOIN t_field ON TRUE
         JOIN a_field ON TRUE
         JOIN s_field ON TRUE