From a429b831684efeff29d7ab9c55f0a80a79c8335f Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Fri, 20 Aug 2021 14:00:25 -0400 Subject: [PATCH] LP1908614: Show the Age Hold Protection name in the staff catalog Signed-off-by: Jason Boyer Signed-off-by: Michele Morgan Signed-off-by: Bill Erickson --- .../src/app/staff/catalog/record/copies.component.html | 7 ++++++- Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm | 8 +++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html b/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html index ea6d030ca9..fdb1382889 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html +++ b/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html @@ -48,6 +48,10 @@ + + {{copy.age_protect_label}} + +
- + diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm index d5da49b1bc..bd82c6738a 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm @@ -2123,6 +2123,9 @@ sub basic_opac_copy_query { {column => 'label', alias => 'part_label'}, ], ($staff ? (erfcc => ['circ_count']) : ()), + crahp => [ + {column => 'name', alias => 'age_protect_label'} + ], ($iss_id ? (sitem => ["issuance"]) : ()) }, @@ -2158,7 +2161,10 @@ sub basic_opac_copy_query { bmp => { type => 'left', filter => { deleted => 'f' } } } }}, - ($iss_id ? { # 6 + {'crahp' => { # 6 + type => 'left' + }}, + ($iss_id ? { # 7 sitem => { fkey => 'id', field => 'unit', -- 2.43.2