[open-ils-commits] [GIT] Evergreen ILS branch rel_3_5 updated. d940bd6995626bf3cbf180b7ed95066e35df9520

Evergreen Git git at git.evergreen-ils.org
Tue Apr 28 13:25:21 EDT 2020


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_3_5 has been updated
       via  d940bd6995626bf3cbf180b7ed95066e35df9520 (commit)
       via  10b5c7f0f1e9a958b079f397374bb23d5c996418 (commit)
       via  ad526a0a60328855cdb2b744c47b79c513526960 (commit)
      from  b29f5659dd1cf6cd8e522a984c12ade359ddcba5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d940bd6995626bf3cbf180b7ed95066e35df9520
Author: Chris Sharp <csharp at georgialibraries.org>
Date:   Thu Apr 23 15:36:41 2020 -0400

    LP#1772053 - Fix minor typos
    
    Signed-off-by: Chris Sharp <csharp at georgialibraries.org>
    Signed-off-by: Terran McCanna <tmccanna at georgialibraries.org>

diff --git a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js
index 83988f3cd5..d01ccd50ca 100644
--- a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js
+++ b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js
@@ -452,6 +452,9 @@ function($scope , $q , egCore , ngToast) {
 
     var seed_copy = {
         barcode : '33434322323',
+        status : {
+            name : 'In transit'
+            },
         call_number : {
             label : '636.8 JON',
             record : {
@@ -479,7 +482,8 @@ function($scope , $q , egCore , ngToast) {
         'call_number.record.simple_record.title' : 'Test Title',
         'location.name' : 'General Collection',
         'call_number.owning_lib.name' : 'Ankers Memorial Library',
-        'call_number.owning_lib.shortname' : 'Ankers'
+        'call_number.owning_lib.shortname' : 'Ankers',
+        'location.name' : 'General Collection'
     }
 
     var one_hold = {

commit 10b5c7f0f1e9a958b079f397374bb23d5c996418
Author: Jason Stephenson <jason at sigio.com>
Date:   Mon Sep 10 16:09:26 2018 -0400

    LP 1772053: Cleanup Dan's code.
    
    Mostly whitespace cleanup, but I did restore a line or two that appear
    to have been accidentally deleted.
    
    Signed-off-by: Jason Stephenson <jason at sigio.com>
    Signed-off-by: Terran McCanna <tmccanna at georgialibraries.org>
    Signed-off-by: Chris Sharp <csharp at georgialibraries.org>

diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2
index af7dd0cba8..f3bf386348 100644
--- a/Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2
+++ b/Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2
@@ -7,11 +7,11 @@ to this template includes:
     current_location.name - Current location's name
     current_location.shortname - Current location's shortname
 * patron - the patron who was billed, which contains:
-    patron.prefix - Prefix of the patron 
-    patron.first_given_name - First given name of the patron 
-    patron.second_given_name - Second given name of the patron 
-    patron.family_name - Family name of the patron 
-    patron.suffix - Suffix of the patron 
+    patron.prefix - Prefix of the patron
+    patron.first_given_name - First given name of the patron
+    patron.second_given_name - Second given name of the patron
+    patron.family_name - Family name of the patron
+    patron.suffix - Suffix of the patron
     patron.card - The patron's barcode number
     patron.expire_date - The patron's expiration date
     patron.alias - The patron's alias
@@ -30,11 +30,11 @@ to this template includes:
     xact.summary.last_billing_note - Last billing note
     xact.summary.last_billing_type - Last billing type
     xact.summary.last_payment_note - Last payment note
-    xact.summary.last_payment_ts - Last payment date and time 
+    xact.summary.last_payment_ts - Last payment date and time
     xact.summary.last_payment_type - Last payment type
-    xact.summary.total_owed - Total billed 
+    xact.summary.total_owed - Total billed
     xact.summary.total_paid - Total paid
-    xact.summary.xact_type - Billing type 
+    xact.summary.xact_type - Billing type
     xact.call_number - Information about the copy
     xact.call_number.label - Copy call number
     xact.call_number.prefix - Copy call number prefix
@@ -49,39 +49,39 @@ You have the following bills:
   <div ng-repeat="xact in transactions">
     <dt><b>Bill #{{xact.id}}</b></dt>
     <dd>
-    <table> 
+    <table>
       <tr valign="top">
         <td>[% l('Date:') %]</td>
         <td>{{xact.xact_start | date:$root.egDateAndTimeFormat}}</td>
-      </tr> 
+      </tr>
       <tr valign="top">
         <td>[% l('Type') %]:</td>
         <td>{{xact.summary.xact_type}}</td>
-      </tr> 
+      </tr>
       <tr valign="top">
         <td>[% l('Last Billing') %]:</td>
         <td>{{xact.summary.last_billing_type}}<br/>
             {{xact.summary.last_billing_note}}
         </td>
-      </tr> 
+      </tr>
       <tr valign="top">
         <td>[% l('Total Billed') %]:</td>
         <td>{{xact.summary.total_owed | currency}}</td>
-      </tr> 
+      </tr>
       <tr valign="top">
         <td>[% l('Last Payment') %]:</td>
         <td>{{xact.summary.last_payment_type}}<br/>
             {{xact.summary.last_payment_note}}
         </td>
-      </tr> 
+      </tr>
       <tr valign="top">
         <td>[% l('Total Paid') %]:</td>
         <td>{{xact.summary.total_paid | currency}}</td>
-      </tr> 
+      </tr>
       <tr valign="top">
         <td><b>[% l('Balance') %]:</b></td>
         <td><b>{{xact.summary.balance_owed | currency}}</b></td>
-      </tr> 
+      </tr>
     </table>
     </dd>
     <br/>
diff --git a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js
index dbb4f8023b..83988f3cd5 100644
--- a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js
+++ b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js
@@ -514,15 +514,15 @@ function($scope , $q , egCore , ngToast) {
                 id : 1,
                 xact_start : new Date().toISOString(),
                 xact_finish : new Date().toISOString(),
-		call_number : {
- 			label : "spindler",
-		        prefix : "biography",
-		        suffix : "Closed Stacks",
-		        owning_lib : {
-			   name : "Mineola Public Library",
-                           shortname : "Mineola"
-                                     }
-                               },
+                call_number : {
+                    label : "spindler",
+                    prefix : "biography",
+                    suffix : "Closed Stacks",
+                    owning_lib : {
+                        name : "Mineola Public Library",
+                        shortname : "Mineola"
+                    }
+                },
                 summary : {
                     xact_type : 'circulation',
                     last_billing_type : 'Overdue materials',
diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js b/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js
index 2ccac2314a..539fe6cc69 100644
--- a/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js
+++ b/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js
@@ -623,19 +623,18 @@ function($scope , $q , $routeParams , egCore , egConfirmDialog , $location,
                     xact_start : xact.xact_start(),
                 }
                 if (xact.circulation()) {
-                    newXact.copy_barcode = xact.circulation().target_copy().barcode(),
+                    newXact.copy_barcode = xact.circulation().target_copy().barcode();
                     newXact.title = xact.circulation().target_copy().call_number().record().simple_record().title();
                     newXact.call_number = {
                         label : xact.circulation().target_copy().call_number().label(),
-			prefix : xact.circulation().target_copy().call_number().prefix().label(),
-			suffix : xact.circulation().target_copy().call_number().suffix().label(),
+			            prefix : xact.circulation().target_copy().call_number().prefix().label(),
+			            suffix : xact.circulation().target_copy().call_number().suffix().label(),
                         owning_lib : {
-                             name : xact.circulation().target_copy().call_number().owning_lib().name(),
-                             shortname : xact.circulation().target_copy().call_number().owning_lib().shortname()
+                            name : xact.circulation().target_copy().call_number().owning_lib().name(),
+                            shortname : xact.circulation().target_copy().call_number().owning_lib().shortname()
                         }
                     }
                 }
-
                 xacts.push(newXact);
             }
         );
@@ -1157,15 +1156,15 @@ function($scope,  $q , egCore , patronSvc , billSvc , egPromptDialog , $location
                     xact_start : xact.xact_start(),
                 }
                 if (xact.circulation()) {
-                    newXact.copy_barcode = xact.circulation().target_copy().barcode(),
-                    newXact.title = xact.circulation().target_copy().call_number().record().simple_record().title()
+                    newXact.copy_barcode = xact.circulation().target_copy().barcode();
+                    newXact.title = xact.circulation().target_copy().call_number().record().simple_record().title();
                     newXact.call_number = {
                         label : xact.circulation().target_copy().call_number().label(),
-			prefix : xact.circulation().target_copy().call_number().prefix().label(),
-			suffix : xact.circulation().target_copy().call_number().suffix().label(),
+			            prefix : xact.circulation().target_copy().call_number().prefix().label(),
+			            suffix : xact.circulation().target_copy().call_number().suffix().label(),
                         owning_lib : {
-                             name : xact.circulation().target_copy().call_number().owning_lib().name(),
-                             shortname : xact.circulation().target_copy().call_number().owning_lib().shortname()
+                            name : xact.circulation().target_copy().call_number().owning_lib().name(),
+                            shortname : xact.circulation().target_copy().call_number().owning_lib().shortname()
                         }
                     }
                 }
diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js b/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js
index fb9072bbbe..95105465bf 100644
--- a/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js
+++ b/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js
@@ -315,14 +315,11 @@ function($scope , $q , $routeParams , egCore , egUser , patronSvc ,
                 print_data.circulations.push({
                     circ : egCore.idl.toHash(co.circ),
                     copy : egCore.idl.toHash(co.acp),
+                    call_number : egCore.idl.toHash(co.acn), // Wrong?
+                    owning_lib : egCore.idl.toHash(co.aou), // Wrong?
                     title : co.title,
                     author : co.author
                 });
-                // Flesh selected fields of this circulation 
-                print_data.circulations[0].copy.call_number =
-                    egCore.idl.toHash(co.acn);
-                print_data.circulations[0].copy.owning_lib =
-	            egCore.ils.toHash(co.aou);
             };
         });
 
diff --git a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js
index 15849f6e02..6bed816ee3 100644
--- a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js
+++ b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js
@@ -713,6 +713,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,  egAddCopyAl
         return egCore.pcrud.retrieveAll('ccs', {}, {atomic : true}).then(
             function(list) {
                 egCore.env.absorbList(list, 'ccs');
+                copy.status(egCore.env.ccs.map[copy.status()]);
             }
         );
     }

commit ad526a0a60328855cdb2b744c47b79c513526960
Author: Dan Pearl <dpearl at cwmars.org>
Date:   Fri Sep 7 13:18:56 2018 -0400

    LP 1772053: Add Missing Fields to Print Templates
    
    Almost complete implementation for LP1772053.  To be done: items
    relating to call numbers, prefixes and suffixes for Hold Pull Lists
    and Transit Slips.
    
    Signed-off-by: Daniel Pearl <dpearl at cwmars.org>
    Signed-off-by: Terran McCanna <tmccanna at georgialibraries.org>
    Signed-off-by: Chris Sharp <csharp at georgialibraries.org>

diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2
index cf6df6624a..af7dd0cba8 100644
--- a/Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2
+++ b/Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2
@@ -20,9 +20,27 @@ to this template includes:
     pref_ versions of all name fields (e.g. pref_family_name);
 * transasctions - a list of transactions, each of which
   contains:
+    xact.id - Bill unique id
+    xact.title - Copy title
+    xact.copy_barcode - Copy barcode
+    xact.xact_finish - Billing finish date and time
+    xact.xact_start - Billing start date and time
     xact.summary - information about the transaction
-    xact.title - Item title
-    xact.copy_barcode - Item barcode
+    xact.summary.balance_owed - Balance owed
+    xact.summary.last_billing_note - Last billing note
+    xact.summary.last_billing_type - Last billing type
+    xact.summary.last_payment_note - Last payment note
+    xact.summary.last_payment_ts - Last payment date and time 
+    xact.summary.last_payment_type - Last payment type
+    xact.summary.total_owed - Total billed 
+    xact.summary.total_paid - Total paid
+    xact.summary.xact_type - Billing type 
+    xact.call_number - Information about the copy
+    xact.call_number.label - Copy call number
+    xact.call_number.prefix - Copy call number prefix
+    xact.call_number.suffix - Copy call number suffix
+    xact.call_number.owning_lib.name - The owning library's name
+    xact.call_number.owning_lib.shortname - The owning library's shortname
 -->
 Welcome to {{current_location.name}}!<br/>
 You have the following bills:
diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_bills_historical.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_bills_historical.tt2
index 9c66cc9aa8..ab0da69a12 100644
--- a/Open-ILS/src/templates/staff/share/print_templates/t_bills_historical.tt2
+++ b/Open-ILS/src/templates/staff/share/print_templates/t_bills_historical.tt2
@@ -19,24 +19,27 @@ to this template includes:
     patron.has_phone - Whether or not the patron has a phone number
     pref_ versions of all name fields (e.g. pref_family_name);
 * transasctions - a list of transactions, each of which contains:
-  xact.id - Bill unique id
-  xact.copy_barcode - Item barcode
-  xact.xact_finish - Billing finish date and time
-  xact.xact_start - Billing start date and time
-  xact.summary - Information about the transaction
-    xact.summary.balance_owed - Balance owed
-    xact.summary.last_billing_note - Last billing note
-    xact.summary.last_billing_type - Last billing type
-    xact.summary.last_payment_note - Last payment note
-    xact.summary.last_payment_ts - Last payment date and time 
-    xact.summary.last_payment_type - Last payment type
-    xact.summary.total_owed - Total billed 
-    xact.summary.total_paid - Total paid
-    xact.summary.xact_type - Billing type 
-  xact.title - Item title
+    xact.id - Bill unique id
+    xact.title - Copy title
+    xact.copy_barcode - Copy barcode
+    xact.xact_finish - Billing finish date and time
+    xact.xact_start - Billing start date and time
     xact.summary - information about the transaction
-    xact.title - Item title
-    xact.copy_barcode - Item barcode
+      xact.summary.balance_owed - Balance owed
+      xact.summary.last_billing_note - Last billing note
+      xact.summary.last_billing_type - Last billing type
+      xact.summary.last_payment_note - Last payment note
+      xact.summary.last_payment_ts - Last payment date and time 
+      xact.summary.last_payment_type - Last payment type
+      xact.summary.total_owed - Total billed 
+      xact.summary.total_paid - Total paid
+      xact.summary.xact_type - Billing type 
+    xact.call_number - Information about the copy
+      xact.call_number.label - Copy call number
+      xact.call_number.prefix - Copy call number prefix
+      xact.call_number.suffix - Copy call number suffix
+      xact.call_number.owning_lib.name - The owning library's name
+      xact.call_number.owning_lib.shortname - The owning library's shortname
 
 -->
 Welcome to {{current_location.name}}!<br/>
diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2
index 646c383c16..c0fffbb019 100644
--- a/Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2
+++ b/Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2
@@ -23,12 +23,17 @@ Template for printing checkout receipts; fields available include:
   * has_phone - same as has_email
 
 * circulations - list of loans made during this session. Each
-  includes:
+  checkout includes:
 
-  * title
-  * author
-  * copy.barcode
-  * circ.due_date
+  * checkout.title
+  * checkout.author
+  * checkout.circ.due_date
+  * checkout.circ.renewal_remaining
+  * checkout.copy.barcode
+  * checkout.copy.circ_modifier
+  * checkout.copy.call_number.label
+  * checkout.copy.call_number.owning_lib.name
+  * checkout.copy.call_number.owning_lib.shortname
 
 -->
 <div>
diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_hold_pull_list.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_hold_pull_list.tt2
index bd0586f704..292f60cb67 100644
--- a/Open-ILS/src/templates/staff/share/print_templates/t_hold_pull_list.tt2
+++ b/Open-ILS/src/templates/staff/share/print_templates/t_hold_pull_list.tt2
@@ -1,14 +1,14 @@
 <!--
 Template for printing a table of holds to pull. Fields include:
 
-* holds - list of holds, each of which includes:
+* holds - list of holds, each hold_data item includes:
 
-  * title
-  * author
-  * hold.hold_type
-  * copy.location_name
-  * volume.label - call number
-  * copy.barcode
+  * hold_data.title
+  * hold_data.author
+  * hold_data.hold.hold_type
+  * hold_data.copy.barcode
+  * hold_data.copy.location_name
+  * hold_data.volume.label - call number
 -->
 <table id='pull-list-template-table'>
   <style>
diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_hold_shelf_list.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_hold_shelf_list.tt2
index a92f45c704..a948882ce1 100644
--- a/Open-ILS/src/templates/staff/share/print_templates/t_hold_shelf_list.tt2
+++ b/Open-ILS/src/templates/staff/share/print_templates/t_hold_shelf_list.tt2
@@ -3,6 +3,8 @@ Template for printing a list of items on the hold shelf. Fields include:
 
 * holds - list of hold requests, including
 
+  * call_number.label
+  * call
   * patron_alias
   * patron_last
   * patron_first
diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_hold_shelf_slip.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_hold_shelf_slip.tt2
index c85ce9d325..aca7f63fa6 100644
--- a/Open-ILS/src/templates/staff/share/print_templates/t_hold_shelf_slip.tt2
+++ b/Open-ILS/src/templates/staff/share/print_templates/t_hold_shelf_slip.tt2
@@ -1,7 +1,9 @@
 <!--
 Template for printing hold request slips. Fields include:
 
-* call_number.label/prefix/suffix
+* call_number.label
+* call number.prefix.label
+* call_number.suffix.label
 * hold.behind_desk
 * copy.barcode
 * title
diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_hold_transit_slip.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_hold_transit_slip.tt2
index 8345af0fce..787c91c0d6 100644
--- a/Open-ILS/src/templates/staff/share/print_templates/t_hold_transit_slip.tt2
+++ b/Open-ILS/src/templates/staff/share/print_templates/t_hold_transit_slip.tt2
@@ -11,6 +11,7 @@ Template for printing hold transit slips. Fields include:
 * dest_courier_code - from lib.courier_code library setting
 * hold.behind_desk
 * copy.barcode
+* copy.status.name - Copy status
 * title
 * patron.family_name
 * patron.first_given_name
diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_items_out.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_items_out.tt2
index 2092ad950f..2661c24237 100644
--- a/Open-ILS/src/templates/staff/share/print_templates/t_items_out.tt2
+++ b/Open-ILS/src/templates/staff/share/print_templates/t_items_out.tt2
@@ -18,13 +18,18 @@ Fields include:
   * has_email - boolean value to show/hide elements on the receipt
   * has_phone - same as has_email
 
-* circulations - list of current loans, including
+* circulations - list of current loans, including for each checkout
 
-  * title
-  * author
-  * call_number.label
-  * copy.barcode
-  * circ.due_date
+  * checkout.title
+  * checkout.author
+  * checkout.circ.due_date
+  * checkout.circ.renewal_remaining
+  * checkout.copy.barcode
+  * checkout.copy.circ_modifier.name
+  * checkout.copy.call_number.label
+  * checkout.copy.call_number.owning_lib.name
+  * checkout.copy.call_number.owning_lib.shortname
+  * checkout.copy.location.name - Shelving location
 
 -->
 <div>
diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_renew.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_renew.tt2
index 9d4510fda8..c7587e7d7e 100644
--- a/Open-ILS/src/templates/staff/share/print_templates/t_renew.tt2
+++ b/Open-ILS/src/templates/staff/share/print_templates/t_renew.tt2
@@ -2,10 +2,19 @@
 Template for printing a renewal receipt. Fields include:
 
 * circulations - list of renewals made during the session, including
+  for each renewal:
 
-  * title
-  * copy.barcode
-  * circ.due_date
+  * renewal.title
+  * renewal.author
+  * renewal.circ.due_date
+  * renewal.circ.renewal_remaining
+  * renewal.circ.circ_lib
+  * renewal.circ.duration
+  * renewal.copy.barcode
+  * renewal.copy.circ_modifier
+  * renewal.copy.call_number.label
+  * renewal.copy.call_number.owning_lib.name
+  * renewal.copy.call_number.owning_lib.shortname
 
 -->
 <div>
diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_transit_slip.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_transit_slip.tt2
index bee4573857..852d75a6f1 100644
--- a/Open-ILS/src/templates/staff/share/print_templates/t_transit_slip.tt2
+++ b/Open-ILS/src/templates/staff/share/print_templates/t_transit_slip.tt2
@@ -10,6 +10,7 @@ Template for printing a transit slip. Fields include:
 * dest_address.post_code
 * dest_courier_code - from lib.courier_code library setting
 * copy.barcode
+* copy.status.name - Copy status
 * title
 * author
 -->
@@ -28,9 +29,9 @@ Template for printing a transit slip. Fields include:
   </div>
   <br/>
 
-  [% l('Barcode: [_1]', '{{copy.barcode}}') %]</div>
-  [% l('Title: [_1]', '{{title}}') %]</div>
-  [% l('Author: [_1]', '{{author}}') %]</div>
+ [% l('Barcode: [_1]', '{{copy.barcode}}') %]</div>
+ [% l('Title: [_1]', '{{title}}') %]</div>
+ [% l('Author: [_1]', '{{author}}') %]</div>
 
   <br/>
 
diff --git a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js
index 9dfbc9c873..dbb4f8023b 100644
--- a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js
+++ b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js
@@ -458,16 +458,28 @@ function($scope , $q , egCore , ngToast) {
                 simple_record : {
                     'title' : 'Test Title'
                 }
+            },
+            owning_lib : {
+                name : 'Ankers Memorial Library',
+                shortname : 'Ankers'
             }
         },
+        circ_modifier : {
+		name : 'Book'
+                },
         location : {
             name : 'General Collection'
         },
+        status : {
+            name : 'In Transit'
+        },
         // flattened versions for item status template
         // TODO - make this go away
         'call_number.label' : '636.8 JON',
         'call_number.record.simple_record.title' : 'Test Title',
-        'location.name' : 'General Colleciton'
+        'location.name' : 'General Collection',
+        'call_number.owning_lib.name' : 'Ankers Memorial Library',
+        'call_number.owning_lib.shortname' : 'Ankers'
     }
 
     var one_hold = {
@@ -502,6 +514,15 @@ function($scope , $q , egCore , ngToast) {
                 id : 1,
                 xact_start : new Date().toISOString(),
                 xact_finish : new Date().toISOString(),
+		call_number : {
+ 			label : "spindler",
+		        prefix : "biography",
+		        suffix : "Closed Stacks",
+		        owning_lib : {
+			   name : "Mineola Public Library",
+                           shortname : "Mineola"
+                                     }
+                               },
                 summary : {
                     xact_type : 'circulation',
                     last_billing_type : 'Overdue materials',
@@ -516,6 +537,15 @@ function($scope , $q , egCore , ngToast) {
                 id : 2,
                 xact_start : new Date().toISOString(),
                 xact_finish : new Date().toISOString(),
+		call_number : {
+ 			label : "796.6 WEI",
+		        prefix : "",
+		        suffix : "REF",
+		        owning_lib : {
+			   name : "Rogers Reading Room",
+                           shortname : "Rogers"
+                                     }
+                               },
                 summary : {
                     xact_type : 'circulation',
                     last_billing_type : 'Overdue materials',
@@ -549,12 +579,13 @@ function($scope , $q , egCore , ngToast) {
                 circ : {
                     due_date : new Date().toISOString(),
                     circ_lib : 1,
-                    duration : '7 days'
+                    duration : '7 days',
+                    renewal_remaining : 2
                 },
                 copy : seed_copy,
                 title : seed_record.title,
                 author : seed_record.author
-            },
+            }
         ],
 
         patron_money : {
diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js b/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js
index b741359a4e..2ccac2314a 100644
--- a/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js
+++ b/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js
@@ -573,7 +573,7 @@ function($scope , $q , $routeParams , egCore , egConfirmDialog , $location,
                 'mbt' : ['summary', 'circulation'],
                 'circ' : ['target_copy'],
                 'acp' : ['call_number'],
-                'acn' : ['record'],
+                'acn' : ['record','owning_lib','prefix','suffix'],
                 'bre' : ['simple_record']
                 }
             },
@@ -624,8 +624,18 @@ function($scope , $q , $routeParams , egCore , egConfirmDialog , $location,
                 }
                 if (xact.circulation()) {
                     newXact.copy_barcode = xact.circulation().target_copy().barcode(),
-                    newXact.title = xact.circulation().target_copy().call_number().record().simple_record().title()
+                    newXact.title = xact.circulation().target_copy().call_number().record().simple_record().title();
+                    newXact.call_number = {
+                        label : xact.circulation().target_copy().call_number().label(),
+			prefix : xact.circulation().target_copy().call_number().prefix().label(),
+			suffix : xact.circulation().target_copy().call_number().suffix().label(),
+                        owning_lib : {
+                             name : xact.circulation().target_copy().call_number().owning_lib().name(),
+                             shortname : xact.circulation().target_copy().call_number().owning_lib().shortname()
+                        }
+                    }
                 }
+
                 xacts.push(newXact);
             }
         );
@@ -1097,7 +1107,7 @@ function($scope,  $q , egCore , patronSvc , billSvc , egPromptDialog , $location
                 'mbt' : ['summary', 'circulation'],
                 'circ' : ['target_copy'],
                 'acp' : ['call_number'],
-                'acn' : ['record'],
+                'acn' : ['record','owning_lib','prefix','suffix'],
                 'bre' : ['simple_record']
                 }
             },
@@ -1149,6 +1159,15 @@ function($scope,  $q , egCore , patronSvc , billSvc , egPromptDialog , $location
                 if (xact.circulation()) {
                     newXact.copy_barcode = xact.circulation().target_copy().barcode(),
                     newXact.title = xact.circulation().target_copy().call_number().record().simple_record().title()
+                    newXact.call_number = {
+                        label : xact.circulation().target_copy().call_number().label(),
+			prefix : xact.circulation().target_copy().call_number().prefix().label(),
+			suffix : xact.circulation().target_copy().call_number().suffix().label(),
+                        owning_lib : {
+                             name : xact.circulation().target_copy().call_number().owning_lib().name(),
+                             shortname : xact.circulation().target_copy().call_number().owning_lib().shortname()
+                        }
+                    }
                 }
                 xacts.push(newXact);
             }
diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js b/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js
index 7984b795e9..fb9072bbbe 100644
--- a/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js
+++ b/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js
@@ -315,14 +315,18 @@ function($scope , $q , $routeParams , egCore , egUser , patronSvc ,
                 print_data.circulations.push({
                     circ : egCore.idl.toHash(co.circ),
                     copy : egCore.idl.toHash(co.acp),
-                    call_number : egCore.idl.toHash(co.acn),
                     title : co.title,
                     author : co.author
-                })
+                });
+                // Flesh selected fields of this circulation 
+                print_data.circulations[0].copy.call_number =
+                    egCore.idl.toHash(co.acn);
+                print_data.circulations[0].copy.owning_lib =
+	            egCore.ils.toHash(co.aou);
             };
         });
 
-        // This is repeated in patron.* so everyting is in one place but left here so existing templates don't break.
+        // This is repeated in patron.* so everything is in one place but left here so existing templates don't break.
         print_data.patron_money = patronSvc.patron_stats.fines;
         print_data.patron = {
             prefix : cusr.prefix(),
diff --git a/Open-ILS/web/js/ui/default/staff/circ/renew/app.js b/Open-ILS/web/js/ui/default/staff/circ/renew/app.js
index e15dd5e7be..b5cdfd194b 100644
--- a/Open-ILS/web/js/ui/default/staff/circ/renew/app.js
+++ b/Open-ILS/web/js/ui/default/staff/circ/renew/app.js
@@ -249,6 +249,11 @@ function($scope , $window , $location , egCore , egGridDataProvider , egCirc) {
                     title : egCore.idl.toHash(renewal.title),
                     author : egCore.idl.toHash(renewal.author)
                 });
+                // Flesh selected fields of this circulation 
+                print_data.circulations[0].copy.call_number =
+                    egCore.idl.toHash(renewal.acn);
+                print_data.circulations[0].copy.owning_lib =
+	            egCore.idl.toHash(renewal.aou);
             }
         });
 
diff --git a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js
index 64a68e14d7..15849f6e02 100644
--- a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js
+++ b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js
@@ -713,7 +713,6 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,  egAddCopyAl
         return egCore.pcrud.retrieveAll('ccs', {}, {atomic : true}).then(
             function(list) {
                 egCore.env.absorbList(list, 'ccs');
-                copy.status(egCore.env.ccs.map[copy.status()]);
             }
         );
     }
@@ -1826,6 +1825,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,  egAddCopyAl
                 }
                 print_context.dest_location =
                     egCore.idl.toHash(egCore.org.get(data.transit.dest()));
+                print_context.copy.status = egCore.idl.toHash(print_context.copy.status);
             }
 
             if (data.patron) {

-----------------------------------------------------------------------

Summary of changes:
 .../share/print_templates/t_bills_current.tt2      | 48 +++++++++++++++-------
 .../share/print_templates/t_bills_historical.tt2   | 37 +++++++++--------
 .../staff/share/print_templates/t_checkout.tt2     | 15 ++++---
 .../share/print_templates/t_hold_pull_list.tt2     | 14 +++----
 .../share/print_templates/t_hold_shelf_list.tt2    |  2 +
 .../share/print_templates/t_hold_shelf_slip.tt2    |  4 +-
 .../share/print_templates/t_hold_transit_slip.tt2  |  1 +
 .../staff/share/print_templates/t_items_out.tt2    | 17 +++++---
 .../staff/share/print_templates/t_renew.tt2        | 15 +++++--
 .../staff/share/print_templates/t_transit_slip.tt2 |  7 ++--
 .../js/ui/default/staff/admin/workstation/app.js   | 41 ++++++++++++++++--
 .../web/js/ui/default/staff/circ/patron/bills.js   | 30 +++++++++++---
 .../js/ui/default/staff/circ/patron/checkout.js    |  7 ++--
 Open-ILS/web/js/ui/default/staff/circ/renew/app.js |  5 +++
 .../web/js/ui/default/staff/circ/services/circ.js  |  1 +
 15 files changed, 175 insertions(+), 69 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list