From f28271abf8af06c72268dce01f5ed7da8db1b88a 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 --- .../src/eg2/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 df669a14c0..c29d738fb0 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 dbf8f70a53..44bb48db6e 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm @@ -2110,6 +2110,9 @@ sub basic_opac_copy_query { bmp => [ {column => 'label', alias => 'part_label'}, ], + crahp => [ + {column => 'name', alias => 'age_protect_label'} + ], ($iss_id ? (sitem => ["issuance"]) : ()) }, @@ -2145,7 +2148,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.11.0