[% IF ( op == 'show_form' ) %]
-
Batch patrons modification
+
Batch patron modification
[% END %]
+ [% IF ( op == 'show') && (!borrowers) && (!notfoundcardnumbers) # Alert if no patrons given%]
+ [% op = 'noshow' # Change op to prevent display in code below %]
+
Batch patrons modification
+
+
No patron card numbers given.
+
+ OK
+
+
+ [% END #Alert if no patrons %]
+
[% IF ( op == 'show' or op == 'show_results' ) %]
[% IF ( op == 'show' ) %]
Batch patrons modification
@@ -159,27 +220,32 @@
[% IF ( op == 'show_results' ) %]
[% IF ( errors ) %]
- Errors occured :
+
+
Errors occurred:
[% FOREACH error IN errors %]
[% IF ( error.error == 'can_not_update' ) %]
- Can not update borrower with borrowernumber [% error.borrowernumber %]
+ Can not update patron.
+ [% IF ( error.cardnumber ) %] Cardnumber: [% error.cardnumber %] [% END %]
+ (Borrowernumber: [% error.borrowernumber %])
+
[% ELSE %]
[% error.error %]
[% END %]
[% END %]
+
[% END %]
-
[% END %]
[% IF ( op == 'show' ) %]
[% IF ( borrowers ) %]
-
+
[% END %]
[% END %]
+ [% IF borrowers %]
@@ -188,14 +254,19 @@
[% IF ( op == 'show' ) %]
[% END %]
+ Card number
Surname
- Firstname
- Branchname
- Categorycode
- Cardnumber
- dateenrolled
- dateexpiry
- debarred
+ First name
+ Library
+ Category
+ City
+ State
+ ZIP/Postal code
+ Country
+ Registration date
+ Expiry date
+ Circulation note
+ Opac Note
[% FOREACH attrh IN attributes_header %]
[% attrh.attribute %]
[% END %]
@@ -207,14 +278,19 @@
[% IF ( op == 'show' ) %]
[% END %]
+ [% borrower.cardnumber %]
[% borrower.surname %]
[% borrower.firstname %]
- [% borrower.branchname %]
+ [% Branches.GetName( borrower.branchcode ) %]
[% borrower.categorycode %]
- [% borrower.cardnumber %]
- [% borrower.dateenrolled | $KohaDates %]
- [% borrower.dateexpiry | $KohaDates %]
- [% borrower.debarred | $KohaDates %]
+ [% borrower.city %]
+ [% borrower.state %]
+ [% borrower.zipcode %]
+ [% borrower.country %]
+ [% borrower.dateenrolled | $KohaDates %]
+ [% borrower.dateexpiry | $KohaDates %]
+ [% borrower.borrowernotes %]
+ [% borrower.opacnote %]
[% FOREACH pa IN borrower.patron_attributes %]
[% IF ( pa.code ) %]
[% pa.code %]=[% pa.value %]
@@ -231,13 +307,17 @@
[% IF ( op == 'show' ) %]
-
Edit Patrons
-
Checking the box right next the label will disable the entry and delete the values of that field on all selected patrons
+
Edit patrons
+
Checking the box right next to the label will disable the entry and delete the values of that field on all selected patrons
[% FOREACH field IN fields %]
-
+ [% IF ( field.mandatory ) %]
+
+ [% ELSE %]
+
+ [% END %]
[% SWITCH ( field.name ) %]
[% CASE 'surname' %]
Surname:
@@ -247,6 +327,14 @@
Library:
[% CASE 'categorycode' %]
Category
+ [% CASE 'city' %]
+ City
+ [% CASE 'state' %]
+ State
+ [% CASE 'zipcode' %]
+ ZIP/Postal code
+ [% CASE 'country' %]
+ Country
[% CASE 'sort1' %]
Sort 1:
[% CASE 'sort2' %]
@@ -255,16 +343,14 @@
Registration date:
[% CASE 'dateexpiry' %]
Expiry date:
- [% CASE 'debarred' %]
- Restricted:
- [% CASE 'debarredcomment' %]
- Restriction comment:
[% CASE 'borrowernotes' %]
Circulation note:
+ [% CASE 'opacnote' %]
+ OPAC note:
[% END %]
[% IF field.mandatory %]
-
+
[% ELSE %]
[% END %]
@@ -283,14 +369,17 @@
[% END %]
[% END %]
[% IF ( field.type == 'date' ) %]
-
- X
- [% END %]
+
+ Clear
+ [% END %]
+ [% IF field.mandatory %]
+ Required fields cannot be cleared
+ [% END %]
[% END %]
[% IF ( patron_attributes_codes ) %]
- Attribute:
+ Attribute:
[% FOREACH pac IN patron_attributes_codes %]
[% pac.attribute_lib %]
@@ -299,8 +388,8 @@
- +
-
+ New
+
[% END %]
@@ -312,10 +401,12 @@
[% END %]
+ [% END %]
[% END %]
[% IF ( op == 'show_results' ) %]
-
- new Batch patrons modification
+
+ New batch patron modification
+
[% END %]
@@ -323,7 +414,4 @@
[% INCLUDE 'tools-menu.inc' %]
-
-
-
-
+[% INCLUDE 'intranet-bottom.inc' %]