JBAS-2224 Copy detail ISBN display repairs
authorBill Erickson <berickxx@gmail.com>
Thu, 14 Mar 2019 20:48:40 +0000 (16:48 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:51:45 +0000 (15:51 -0400)
Prevent long ISBN strings from distorting the copy detail display.
Instead, chop off the overflow and show the entirety via tooltip.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2

index 30303d7..340520e 100644 (file)
 
   <div class="flex-row">
     <div class="flex-cell">[% l('ISBN') %]</div>
-    <div class="flex-cell well">
-      {{copy.call_number().record().simple_record().isbn()}}
+    <div class="flex-cell well" style="overflow:hidden; white-space:nowrap">
+      <span title="{{copy.call_number().record().simple_record().isbn()}}">
+        {{copy.call_number().record().simple_record().isbn()}}
+      </span>
     </div>
 
     <div class="flex-cell">[% l('Loan Duration') %]</div>