webstaff: adjust title of serials bind/receive/barcode modal
authorGalen Charlton <gmc@equinoxinitiative.org>
Mon, 12 Jun 2017 15:05:47 +0000 (11:05 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 12 Jun 2017 15:06:29 +0000 (11:06 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/staff/serials/t_batch_receive.tt2

index 17559e1..176585d 100644 (file)
@@ -2,7 +2,8 @@
 <div class="modal-header">
     <button type="button" class="close" ng-click="cancel()" 
         aria-hidden="true">&times;</button>
-    <h4 ng-show="force_bind" class="modal-title">{{ title || "[% l('Bind items') %]" }}</h4>
+    <h4 ng-show="force_bind && items.length >  1" class="modal-title">{{ title || "[% l('Bind items') %]" }}</h4>
+    <h4 ng-show="force_bind && items.length <= 1" class="modal-title">{{ title || "[% l('Barcode item') %]" }}</h4>
     <h4 ng-show="!force_bind" class="modal-title">{{ title || "[% l('Receive items') %]" }}</h4>
 </div>