<title>Koha › Tools › Batch patron modification</title>
[% INCLUDE 'doc-head-close.inc' %]
[% INCLUDE 'calendar.inc' %]
-<link rel="stylesheet" type="text/css" href="/intranet-tmpl/prog/en/css/datatables.css" />
-<script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.dataTables.min.js"></script>
-[% INCLUDE 'datatables-strings.inc' %]
-<script type="text/javascript" src="/intranet-tmpl/prog/en/js/datatables.js"></script>
+<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
+[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
//<![CDATA[
- [% IF (dateformat == 'metric') %]dt_add_type_uk_date();[% END %]
var patron_attributes_lib = new Array();
var patron_attributes_values = new Array();
$(document).ready(function() {
[% IF borrowers %]
$("#borrowerst").dataTable($.extend(true, {}, dataTablesDefaults, {
"sDom": 't',
- "aoColumnDefs": [
- { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }
- ],
+ [% IF ( op == 'show_results' ) %]
+ "aoColumns": [
+ null,null,null,null,null,{ "sType": "title-string" },{ "sType": "title-string" }[% FOREACH attrh IN attributes_header %],null[% END %]
+ ],
+ [% ELSE %]
+ "aoColumnDefs": [
+ { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
+ ],
+ "aoColumns": [
+ null,null,null,null,null,null,{ "sType": "title-string" },{ "sType": "title-string" }[% FOREACH attrh IN attributes_header %],null[% END %]
+ ],
+ [% END %]
"bPaginate": false
}));
$("#selectallbutton").click(function() {
var information_category_node = $(select_attr).parent().parent().find('span.information_category');
information_category_node.html("");
if ( category.length > 0 ) {
- information_category_node.html(_("This attribute will be only applied to the patron\'s category") +' "' + category + '"');
+ information_category_node.html(_("This attribute will be only applied to the patron's category %s").format(category));
}
if ( type == 'select' ) {
var options = '<option value = ""></option>';
<h1>Batch patron modification</h1>
<form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/modborrowers.pl">
<fieldset class="rows">
- <legend>Use a file</legend>
- <ol>
- <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
- </ol>
+ <legend>Use a file</legend>
+ <ol>
+ <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
+ </ol>
+ </fieldset>
+
+ [% IF patron_lists %]
+ <fieldset class="rows">
+ <legend>Or use a patron list</legend>
+ <ol>
+ <li>
+ <label for="patron_list_id">Patron list: </label>
+ <select id="patron_list_id" name="patron_list_id">
+ <option value=""></option>
+ [% FOREACH pl IN patron_lists %]
+ <option value="[% pl.patron_list_id %]">[% pl.name %]</option>
+ [% END %]
+ </select>
+ </li>
+ </ol>
</fieldset>
+ [% END %]
+
<fieldset class="rows">
<legend>Or list cardnumbers one by one</legend>
<ol>
[% IF ( op == 'show_results' ) %]
[% IF ( errors ) %]
<div class="dialog alert">
- <h4>Errors occured:</h4>
+ <h4>Errors occurred:</h4>
<ul class="warnings">
[% FOREACH error IN errors %]
[% IF ( error.error == 'can_not_update' ) %]
<form name="f" action="modborrowers.pl" method="post">
<input type="hidden" name="op" value="do" />
[% IF ( borrowers ) %]
- <div id="toolbar"><a id="selectallbutton" href="#">Select All</a> | <a id="clearallbutton" href="#">Clear All</a></div>
+ <div id="toolbar"><a id="selectallbutton" href="#">Select all</a> | <a id="clearallbutton" href="#">Clear all</a></div>
[% END %]
[% END %]
[% IF borrowers %]
[% END %]
<th>Card number</th>
<th>Surname</th>
- <th>Firstname</th>
+ <th>First name</th>
<th>Library</th>
<th>Category</th>
<th>Registration date</th>
<th>Expiry date</th>
- <th>Restricted</th>
[% FOREACH attrh IN attributes_header %]
<th>[% attrh.attribute %]</th>
[% END %]
<td>[% borrower.firstname %]</td>
<td>[% borrower.branchname %]</td>
<td>[% borrower.categorycode %]</td>
- <td>[% borrower.dateenrolled | $KohaDates %]</td>
- <td>[% borrower.dateexpiry | $KohaDates %]</td>
- <td>[% borrower.debarred | $KohaDates %]</td>
+ <td><span title="[% borrower.dateenrolled %]">[% borrower.dateenrolled | $KohaDates %]</span></td>
+ <td><span title="[% borrower.dateexpiry %]">[% borrower.dateexpiry | $KohaDates %]</span></td>
[% FOREACH pa IN borrower.patron_attributes %]
[% IF ( pa.code ) %]
<td>[% pa.code %]=[% pa.value %]</td>
[% IF ( op == 'show' ) %]
<div id="cataloguing_additem_newitem">
- <h2>Edit Patrons</h2>
+ <h2>Edit patrons</h2>
<div class="hint">Checking the box right next the label will disable the entry and delete the values of that field on all selected patrons</div>
<fieldset class="rows" id="fields_list">
<ol>
Registration date:
[% CASE 'dateexpiry' %]
Expiry date:
- [% CASE 'debarred' %]
- Restricted:
- [% CASE 'debarredcomment' %]
- Restriction comment:
[% CASE 'borrowernotes' %]
Circulation note:
[% END %]