ff ui : template i18n; cleanup
authorBill Erickson <berick@esilibrary.com>
Mon, 28 Oct 2013 20:59:02 +0000 (16:59 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 28 Oct 2013 20:59:02 +0000 (16:59 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/templates/staff/fulfillment/index.tt2
Open-ILS/src/templates/staff/fulfillment/t_actions.tt2
Open-ILS/src/templates/staff/fulfillment/t_ill.tt2
Open-ILS/src/templates/staff/fulfillment/t_item_table.tt2
Open-ILS/src/templates/staff/fulfillment/t_pending.tt2

index be2672f..01f942e 100644 (file)
@@ -8,7 +8,7 @@
 -->
 <html ng-app="ffMain" ng-controller="FFMainCtrl" lang="en">
   <head>
-    <title>FulfILLment</title>
+    <title>[% l('FulfILLment') %]</title>
     <base href="/eg/staff/" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" />
       <div id="mainhead"> 
         <a href="http://fulfillment-ill.org" target="_blank">
           <img src="/images/FulfillmentHomePageBanner.png" border="0" 
-            alt="Open Source Integrated Interlibrary Lending System" /></a> 
+            alt="[% l('Open Source Integrated Interlibrary Lending System') %]" /></a> 
       </div> 
 
       <div id="subhead" style='width:100%'> 
         <div style='float:left'>
-          <a href="./fulfillment/pending" class="thispage mainNav">Manage ILL</a> 
-          <a href="./fulfillment/records" class="thispage mainNav">Manage Bibliographic Records</a> 
+          <a href="./fulfillment/pending" class="thispage mainNav">[% l('Manage ILL') %]</a> 
+          <a href="./fulfillment/records" class="thispage mainNav">[% l('Manage Bibliographic Records') %]</a> 
         </div>
         <div style='float:left'>
           <div class="dropdown" ng-cloak>
             <a href="javascript:;" 
               class="dropdown-toggle mainNav thispage" data-toggle="dropdown">
-              Location: {{orgSelector.current().shortname()}}
+              [% l('Location: {{orgSelector.current().shortname()}}') %]
               <b class="caret"></b>
             </a>
             <ul class="dropdown-menu" role="menu">
index 6d9c3ba..b909e7b 100644 (file)
@@ -3,7 +3,7 @@
   <!-- first page -->
   <button type="button" class="btn btn-default" 
     ng-class="{disabled : action_pending}"
-    ng-show="itemList.offset" ng-click="firstPage()">Start</button>
+    ng-show="itemList.offset" ng-click="firstPage()">[% l('Start') %]</button>
 
   <!-- previous page -->
   <button type="button" class="btn btn-default" 
   <div class="btn-group">
     <button type="button" class="btn btn-default dropdown-toggle" 
         ng-class="{disabled : action_pending}" data-toggle="dropdown">
-      Actions <span class="caret"></span>
+      [% l('Actions') %] <span class="caret"></span>
     </button>
     <ul class="dropdown-menu">
       <li><a href="javascript:;" ng-click="checkin()"
-        ng-show="tab_pending && orientation_lender">Capture Item</a></li>
+        ng-show="tab_pending && orientation_lender">[% l('Capture Item') %]</a></li>
       <li><a href="javascript:;" ng-click="retarget()"
-        ng-show="tab_pending">Retarget Request</a></li>
+        ng-show="tab_pending">[% l('Retarget Request') %]</a></li>
       <li><a href="javascript:;" ng-click="cancel()"
-        ng-show="(tab_pending || tab_inbound) && orientation_borrower">Cancel Request</a></li>
+        ng-show="(tab_pending || tab_inbound) && orientation_borrower">[% l('Cancel Request') %]</a></li>
       <li><a href="javascript:;" ng-click="abort_transit()"
-        ng-show="tab_inbound || tab_outbound">Abort Transit</a></li>
+        ng-show="tab_inbound || tab_outbound">[% l('Abort Transit') %]</a></li>
       <li><a href="javascript:;" ng-click="checkin()"
-        ng-show="tab_inbound">Receive Item</a></li>
+        ng-show="tab_inbound">[% l('Receive Item') %]</a></li>
       <li><a href="javascript:;" ng-click="checkin()"
-        ng-show="tab_circulating && orientation_borrower">Check In</a></li>
+        ng-show="tab_circulating && orientation_borrower">[% l('Check In') %]</a></li>
       <!-- We need an on-shelf tab for this action to have a home
       <li><a href="javascript:;"
         ng-show="">Check Out</a></li>
       -->
       <li><a href="javascript:;" ng-click="mark_lost()"
-        ng-show="tab_circulating && orientation_borrower">Mark Lost</a></li>
-      <li><a href="javascript:;" ng-click="print()">Print</a></li>
+        ng-show="tab_circulating && orientation_borrower">[% l('Mark Lost') %]</a></li>
+      <li><a href="javascript:;" ng-click="print()">[% l('Print') %]</a></li>
     </ul>
   </div>
 </div>
index 854756c..44bbdcc 100644 (file)
@@ -1,15 +1,15 @@
 <ul class="nav nav-tabs">
   <li ng-class="{active : tab_pending}">
-    <a href="./fulfillment/borrower/pending">Pending Requests</a></li>
+    <a href="./fulfillment/borrower/pending">[% l('Pending Requests') %]</a></li>
   <li ng-class="{active : tab_inbound}">
-    <a href="./fulfillment/borrower/inbound">Inbound Transits</a></li>
+    <a href="./fulfillment/borrower/inbound">[% l('Inbound Transits') %]</a></li>
   <li ng-class="{active : tab_outbound}">
     <!-- only one where default view is lender - could be confusing? -->
-    <a href="./fulfillment/lender/outbound">Outbound Transits</a></li>
+    <a href="./fulfillment/lender/outbound">[% l('Outbound Transits') %]</a></li>
   <li ng-class="{active : tab_circulating}">
-    <a href="./fulfillment/borrower/circulating">Currently Circulating</a></li>
+    <a href="./fulfillment/borrower/circulating">[% l('Currently Circulating') %]</a></li>
   <li ng-class="{active : tab_status}">
-    <a href="./fulfillment/status">Item Status</a></li>
+    <a href="./fulfillment/status">[% l('Item Status') %]</a></li>
 </ul>
 <div class="tab-content">
   <div class="tab-pane" ng-class="{active : tab_pending}">
index 8862e31..db74bf2 100644 (file)
@@ -1,6 +1,6 @@
 
 <div class="container" ng-hide="itemList.items.length">
-  <div class="alert alert-info">No Items To Display</div>
+  <div class="alert alert-info">[% l('No Items To Display') %]</div>
 </div>
 <table class="table table-striped table-hover" ng-show="itemList.items.length">
   <thead>
@@ -9,21 +9,21 @@
 
       <!-- common columns -->
       <th>#</th>
-      <th>Item Barcode</th>
-      <th>Owning Library</th>
+      <th>[% l('Item Barcode') %]</th>
+      <th>[% l('Owning Library') %]</th>
 
       <!-- transit columns -->
-      <th ng-show="tab_inbound || tab_outbound">Transit Date</th>
-      <th ng-show="tab_inbound || tab_outbound">Transit Source</th>
-      <th ng-show="tab_inbound || tab_outbound">Transit Destination</th>
+      <th ng-show="tab_inbound || tab_outbound">[% l('Transit Date') %]</th>
+      <th ng-show="tab_inbound || tab_outbound">[% l('Transit Source') %]</th>
+      <th ng-show="tab_inbound || tab_outbound">[% l('Transit Destination') %]</th>
 
       <!-- circ columns -->
-      <th ng-show="tab_circulating">Checkout Date</th>
-      <th ng-show="tab_circulating">Due Date</th>
-      <th ng-show="tab_circulating">Circulating Library</th>
+      <th ng-show="tab_circulating">[% l('Checkout Date') %]</th>
+      <th ng-show="tab_circulating">[% l('Due Date') %]</th>
+      <th ng-show="tab_circulating">[% l('Circulating Library') %]</th>
 
       <!-- titles can get long, so plop it onto the end of the table -->
-      <th>Title</th>
+      <th>[% l('Title') %]</th>
 
     </tr>
   </thead>
@@ -43,5 +43,6 @@
       <td ng-show="tab_circulating">{{item.due_date | date}}</td>
       <td ng-show="tab_circulating">{{item.circ_circ_lib}}</td>
       <td>{{item.title}}</td>
+    </tr>
   </tbody>
 </table>
index 25e9ba3..0fae7c0 100644 (file)
@@ -6,10 +6,10 @@
     <div class="col-lg-6">
       <ul class="nav nav-pills">
         <li ng-class="{active : orientation_borrower}">
-          <a href="./fulfillment/borrower/{{tabname}}">Hold for My Patrons</a>
+          <a href="./fulfillment/borrower/{{tabname}}">[% l('Hold for My Patrons') %]</a>
         </li>
         <li ng-class="{active : orientation_lender}">
-          <a href="./fulfillment/lender/{{tabname}}">Holds for Other Libraries</a>
+          <a href="./fulfillment/lender/{{tabname}}">[% l('Holds for Other Libraries') %]</a>
         </li>
       </ul>
     </div>
 
   <div ng-hide="itemList.items.length" class="container">
     <br/>
-    <div class="alert alert-info">No Items To Display</div>
+    <div class="alert alert-info">[% l('No Items To Display') %]</div>
   </div>
 
   <table class="table table-striped table-hover" ng-show="itemList.items.length">
     <thead>
       <tr>
         <th><a href="javascript:;" ng-click="itemList.selectAll()">&#x2713;</a></th>
-        <th>ID</th>
-        <th>Request Date</th>
-        <th>Expire Date</th>
-        <th>Requesting Patron</th>
-        <th>Requesting Library</th>
-        <th>Current Copy</th>
-        <th>Copy Library</th>
-        <th>Title</th>
+        <th>[% l('ID') %]</th>
+        <th>[% l('Request Date') %]</th>
+        <th>[% l('Expire Date') %]</th>
+        <th>[% l('Requesting Patron') %]</th>
+        <th>[% l('Requesting Library') %]</th>
+        <th>[% l('Current Copy') %]</th>
+        <th>[% l('Copy Library') %]</th>
+        <th>[% l('Title') %]</th>
       </tr>
     </thead>
     <tbody>