X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Ftools%2Fmodborrowers.tt;h=53b5c0d05ed54c51ec7c1ab06cb95bd3f8f5aace;hb=571c236264d5bac4441eb3c20bcf67dd24160fce;hp=3a04aa23d59d1e6f0f82783d66c3de56e0356707;hpb=9b9580bab9bec4b0df874c69d56bdfed26b97e64;p=koha.git diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt index 3a04aa23d5..53b5c0d05e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt @@ -1,116 +1,14 @@ +[% USE Koha %] [% USE KohaDates %] -[% INCLUDE 'doc-head-open.inc'%] +[% USE Branches %] +[% SET footerjs = 1 %] +[% INCLUDE 'doc-head-open.inc' %] Koha › Tools › Batch patron modification [% INCLUDE 'doc-head-close.inc' %] -[% INCLUDE 'calendar.inc' %] - - -[% INCLUDE 'datatables-strings.inc' %] - - + - + + [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %] @@ -128,11 +26,29 @@

Batch patron modification

- Use a file -
    -
  1. -
+ Use a file +
    +
  1. +
+
+ + [% IF patron_lists %] +
+ Or use a patron list +
    +
  1. + + +
  2. +
+ [% END %] +
Or list cardnumbers one by one
    @@ -150,6 +66,17 @@ [% 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.

    +
    + +
    +
    + [% END #Alert if no patrons %] + [% IF ( op == 'show' or op == 'show_results' ) %] [% IF ( op == 'show' ) %]

    Batch patrons modification

    @@ -173,11 +100,14 @@ [% IF ( op == 'show_results' ) %] [% IF ( errors ) %]
    -

    Errors occured:

    +

    Errors occurred:

      [% FOREACH error IN errors %] [% IF ( error.error == 'can_not_update' ) %] -
    • Can not update patron with borrowernumber [% error.borrowernumber %]
    • +
    • Can not update patron. + [% IF ( error.cardnumber ) %] Cardnumber: [% error.cardnumber %] [% END %] + (Borrowernumber: [% error.borrowernumber %]) +
    • [% ELSE %]
    • [% error.error %]
    • [% END %] @@ -191,7 +121,7 @@
      [% IF ( borrowers ) %] - + [% END %] [% END %] [% IF borrowers %] @@ -205,12 +135,17 @@ [% END %] Card number Surname - Firstname + First name Library Category - Registration date - Expiry date - Restricted + City + State + ZIP/Postal code + Country + Registration date + Expiry date + Circulation note + Opac Note [% FOREACH attrh IN attributes_header %] [% attrh.attribute %] [% END %] @@ -225,11 +160,16 @@ [% borrower.cardnumber %] [% borrower.surname %] [% borrower.firstname %] - [% borrower.branchname %] - [% borrower.categorycode %] - [% borrower.dateenrolled | $KohaDates %] - [% borrower.dateexpiry | $KohaDates %] - [% borrower.debarred | $KohaDates %] + [% Branches.GetName( borrower.branchcode ) %] + [% borrower.category_description %] + [% 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 %] @@ -246,8 +186,8 @@ [% 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 %] @@ -266,6 +206,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' %] @@ -274,19 +222,12 @@ 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 %] [% IF ( field.type == 'text' ) %] [% END %] @@ -302,9 +243,15 @@ [% END %] [% END %] [% IF ( field.type == 'date' ) %] - - Clear - [% END %] + + Clear + [% END %] + [% IF field.mandatory %] + + Required fields cannot be cleared + [% ELSE %] + + [% END %] [% END %] [% IF ( patron_attributes_codes ) %] @@ -318,7 +265,7 @@ - New + New [% END %] @@ -344,7 +291,129 @@ [% INCLUDE 'tools-menu.inc' %]
    - - - - + +[% MACRO jsinclude BLOCK %] + [% INCLUDE 'calendar.inc' %] + [% INCLUDE 'datatables.inc' %] + + +[% END %] + +[% INCLUDE 'intranet-bottom.inc' %]