LP#1745422 - Add Parts column to Patron holds grids and detail view
authorCesar Velez <cesar.velez@equinoxinitiative.org>
Fri, 16 Feb 2018 16:01:23 +0000 (11:01 -0500)
committerKathy Lussier <klussier@masslnc.org>
Fri, 8 Jun 2018 19:11:05 +0000 (15:11 -0400)
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>
Open-ILS/src/templates/staff/circ/patron/t_holds_list.tt2
Open-ILS/src/templates/staff/circ/share/t_hold_details.tt2

index 65fb234..9c8962e 100644 (file)
@@ -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='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>
   <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>
index 27ab8ec..5edd4b3 100644 (file)
  </div>
 <div class="flex-row">
   <div class="flex-cell">[% l('Hold Type') %]</div>
  </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'">&nbsp;-&nbsp;{{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">
   <div class="flex-cell">[% l('Current Copy') %]</div>
   <div class="flex-cell well">
     <a href="./cat/item/{{hold.current_copy().id()}}" target="_self">