From: Cesar Velez <cesar.velez@equinoxinitiative.org> Date: Fri, 16 Feb 2018 16:01:23 +0000 (-0500) Subject: LP#1745422 - Add Parts column to Patron holds grids and detail view X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0da274fa83854c8a73715dffa3e83c1785ee4c9d;p=evergreen%2Fjoelewis.git LP#1745422 - Add Parts column to Patron holds grids and detail view The webstaff's patron ui did not have a display for the Part, which will be fetched for any hold type "P" (monographic part). This adds a Part column to the hold grids and inthe detail view IF the hold type is P, it'll append the part.label in the same field/well. Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org> Signed-off-by: Michele Morgan <mmorgan@noblenet.org> Signed-off-by: Kathy Lussier <klussier@masslnc.org> --- diff --git a/Open-ILS/src/templates/staff/circ/patron/t_holds_list.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_holds_list.tt2 index 65fb234abc..9c8962e31a 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_holds_list.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_holds_list.tt2 @@ -85,6 +85,7 @@ <eg-grid-field path='hold.requestor.id' parent-idl-class="ahr" label="[% l('Requestor ID') %]" hidden></eg-grid-field> <eg-grid-field path='hold.requestor.usrname' parent-idl-class="ahr" label="[% l('Requestor Username') %]" hidden></eg-grid-field> + <eg-grid-field path='part.label' parent-idl-class="bmp" label="[% l('Part') %]" hidden></eg-grid-field> <eg-grid-field path='volume.*' parent-idl-class="acn" hidden></eg-grid-field> <eg-grid-field path='mvr.*' parent-idl-class="mvr" hidden></eg-grid-field> </eg-grid> diff --git a/Open-ILS/src/templates/staff/circ/share/t_hold_details.tt2 b/Open-ILS/src/templates/staff/circ/share/t_hold_details.tt2 index 27ab8ec0bb..5edd4b355c 100644 --- a/Open-ILS/src/templates/staff/circ/share/t_hold_details.tt2 +++ b/Open-ILS/src/templates/staff/circ/share/t_hold_details.tt2 @@ -10,7 +10,10 @@ </div> <div class="flex-row"> <div class="flex-cell">[% l('Hold Type') %]</div> - <div class="flex-cell well">{{hold.hold_type()}}</div> + <div class="flex-cell well">{{hold.hold_type()}}<span ng-if="hold.hold_type() == 'P'"> - {{part.label()}}</span></div> + <!-- adding another cell messes up 3 column grid --> + <!-- <div ng-if="hold.hold_type() == 'P'" class="flex-cell">[% l('Part') %]</div> --> + <!-- <div ng-if="hold.hold_type() == 'P'" class="flex-cell well">{{part.label()}}</div> --> <div class="flex-cell">[% l('Current Copy') %]</div> <div class="flex-cell well"> <a href="./cat/item/{{hold.current_copy().id()}}" target="_self">