From: Jason Boyer Date: Fri, 20 Aug 2021 18:00:25 +0000 (-0400) Subject: LP1908614: Show the Age Hold Protection name in the staff catalog X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ea96118b262f71e68bb4b48d3eeb86d6bcfe2196;p=working%2FEvergreen.git 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 --- 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 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',