From 20a008851c18356101d95ebf322f44396e4a923c 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/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 94795fe84d..8bef1f41b8 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 @@ -45,6 +45,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 9824594180..0aa0339217 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm @@ -2095,6 +2095,9 @@ sub basic_opac_copy_query { bmp => [ {column => 'label', alias => 'part_label'}, ], + crahp => [ + {column => 'name', alias => 'age_protect_label'} + ], ($iss_id ? (sitem => ["issuance"]) : ()) }, @@ -2130,7 +2133,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