webstaff: Tooltips for holdable/visible on status and location in item summary
authorMike Rylander <mrylander@gmail.com>
Mon, 16 Mar 2015 19:12:36 +0000 (15:12 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Wed, 19 Aug 2015 17:39:13 +0000 (13:39 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>

Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2
Open-ILS/web/js/ui/default/staff/cat/item/app.js

index 6918124..bb7370a 100644 (file)
     </div>
 
     <div class="flex-cell">[% l('Status') %]</div>
-    <div class="flex-cell well">{{copy.status().name()}}</div>
+    <div
+      class="flex-cell well"
+      title="[% l('Holdable') %]: {{copy.status().holdable() | boolText}} / [% l('OPAC Visible') %]: {{copy.status().opac_visible() | boolText}}"
+    >{{copy.status().name()}}</div>
   </div>
 
   <div class="flex-row">
     </div>
 
     <div class="flex-cell">[% l('Copy Location') %]</div>
-    <div class="flex-cell well">{{copy.location().name()}}</div>
+    <div
+      class="flex-cell well"
+      title="[% l('Holdable') %]: {{copy.location().holdable() | boolText}} / [% l('OPAC Visible') %]: {{copy.location().opac_visible() | boolText}}"
+    >{{copy.location().name()}}</div>
 
     <div class="flex-cell">[% l('Call # Suffix') %]</div>
     <div class="flex-cell well">
index a7d08fb..da3a6b5 100644 (file)
@@ -5,6 +5,12 @@
 angular.module('egItemStatus', 
     ['ngRoute', 'ui.bootstrap', 'egCoreMod', 'egUiMod', 'egGridMod'])
 
+.filter('boolText', function(){
+    return function (v) {
+        return v == 't';
+    }
+})
+
 .config(function($routeProvider, $locationProvider, $compileProvider) {
     $locationProvider.html5Mode(true);
     $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); // grid export