LPTBA - Add Lending library field to list of items out user/dpearl/MLC3376_owning_lib
authorDan Pearl <dpearl@cwmars.org>
Wed, 21 Feb 2018 22:05:02 +0000 (17:05 -0500)
committerDan Pearl <dpearl@cwmars.org>
Mon, 26 Feb 2018 18:43:14 +0000 (13:43 -0500)
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
Open-ILS/src/templates/opac/myopac/circs.tt2

index b630517..a30c5df 100644 (file)
@@ -1525,7 +1525,7 @@ sub fetch_user_circs {
         flesh => 3,
         flesh_fields => {
             circ => ['target_copy'],
-            acp => ['call_number'],
+            acp => ['call_number','circ_lib'],
             acn => ['record']
         }
     };
index 1b0683c..cbde279 100644 (file)
@@ -76,7 +76,8 @@
                 <th>[% sort_head("renews", l("Renewals Left")) %]</th>
                 <th>[% sort_head("due", l("Due Date")) %]</th>
                 <th>[% sort_head("barcode", l("Barcode")) %]</th>
-                <th>[% sort_head("callnum", l("Call number")) %]</th>
+                <th>[% sort_head("callnum", l("Call Number")) %]</th>
+                <th>[% sort_head("lib", l("Lending Library")) %]</th>
             </tr>
             </thead>
             <tbody>
 
                        CASE "callnum";
                           circ.SORTING = circ.circ.target_copy.call_number.label;
+
+                       CASE "lib";
+                          circ.SORTING = circ.circ.target_copy.circ_lib.name;
                        
                        CASE;
                           sort_field = "";
                         <td name="call_number">
                             [% circ.circ.target_copy.call_number.label | html %]
                         </td>
+                        <td name="lib">
+                            [% circ.circ.target_copy.circ_lib.name | html %]
+                        </td>
                     </tr>
                     [%  IF circ.renewal_response AND
                             circ.renewal_response.textcode != 'SUCCESS' %]