LP#1813225 Link Billing Location to Library Info
authorTerran McCanna <tmccanna@georgialibraries.org>
Wed, 13 Feb 2019 18:19:35 +0000 (13:19 -0500)
committerJane Sandberg <sandbej@linnbenton.edu>
Wed, 31 Jul 2019 19:19:12 +0000 (12:19 -0700)
Converts library shortname on billing details page to a
link which opens in a new tab so that staff can easily
get to library contact info.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/templates/staff/circ/patron/t_xact_details.tt2

index 1ea6fd1..4d5ff59 100644 (file)
@@ -2,7 +2,10 @@
 
 <div class="row">
   <div class="col-md-2 strong-text">[% l('Billing Location') %]</div>
-  <div class="col-md-2">{{xact.grocery().billing_location().shortname()||xact.circulation().circ_lib().shortname()}}</div>
+  <div class="col-md-2">
+    <a href="[% ctx.base_path %]/opac/library/{{xact.grocery().billing_location().shortname()||xact.circulation().circ_lib().shortname()}}" target="_blank">
+    {{xact.grocery().billing_location().shortname()||xact.circulation().circ_lib().shortname()}}</a>
+  </div>
   <div class="col-md-2 strong-text">[% l('Total Billed') %]</div>
   <div class="col-md-2">{{xact.summary().total_owed() | currency}}</div>
   <div class="col-md-2 strong-text">[% l('Title') %]</div>
   </div>
   <div class="row">
     <div class="col-md-2 strong-text">[% l('Owning Library') %]</div>
-    <div class="col-md-2">
-      {{xact.circulation().target_copy().call_number().owning_lib().shortname()}}
+    <div class="col-md-2"><a href="[% ctx.base_path %]/opac/library/{{xact.circulation().target_copy().call_number().owning_lib().shortname()}}" target="_blank">
+      {{xact.circulation().target_copy().call_number().owning_lib().shortname()}}</a>
     </div>
   </div>
 </div>
-
 <hr/>
 <ul class="nav nav-tabs">
   <li ng-class="{active : xact_tab == 'statement'}">