|
Lines 1-5
Link Here
|
| 1 |
[% USE Branches %] |
1 |
[% USE Branches %] |
| 2 |
[% USE KohaDates %] |
2 |
[% USE KohaDates %] |
|
|
3 |
[% USE ColumnsSettings %] |
| 3 |
[% IF ( export_remove_fields OR export_with_csv_profile ) %] |
4 |
[% IF ( export_remove_fields OR export_with_csv_profile ) %] |
| 4 |
[% SET exports_enabled = 1 %] |
5 |
[% SET exports_enabled = 1 %] |
| 5 |
[% END %] |
6 |
[% END %] |
|
Lines 13-20
Link Here
|
| 13 |
</title> |
14 |
</title> |
| 14 |
[% INCLUDE 'doc-head-close.inc' %] |
15 |
[% INCLUDE 'doc-head-close.inc' %] |
| 15 |
[% INCLUDE 'calendar.inc' %] |
16 |
[% INCLUDE 'calendar.inc' %] |
| 16 |
[% IF ( UseTablesortForCirc ) %]<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
17 |
[% IF ( UseTablesortForCirc ) %] |
| 17 |
[% INCLUDE 'datatables.inc' %][% END %] |
18 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
|
|
19 |
[% INCLUDE 'datatables.inc' %] |
| 20 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.colvis.css" /> |
| 21 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.colvis.js"></script> |
| 22 |
[% INCLUDE 'columns_settings.inc' %] |
| 23 |
[% END %] |
| 18 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
24 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
| 19 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script> |
25 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script> |
| 20 |
[% INCLUDE 'timepicker.inc' %] |
26 |
[% INCLUDE 'timepicker.inc' %] |
|
Lines 25-31
var MSG_ADD_MESSAGE = _("Add a new message");
Link Here
|
| 25 |
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); |
31 |
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); |
| 26 |
[% IF ( borrowernumber ) %]if($.cookie("holdfor") != [% borrowernumber %]){ $.cookie("holdfor",null, { path: "/", expires: 0 }); }[% ELSE %]$.cookie("holdfor",null, { path: "/", expires: 0 });[% END %] |
32 |
[% IF ( borrowernumber ) %]if($.cookie("holdfor") != [% borrowernumber %]){ $.cookie("holdfor",null, { path: "/", expires: 0 }); }[% ELSE %]$.cookie("holdfor",null, { path: "/", expires: 0 });[% END %] |
| 27 |
[% UNLESS ( borrowernumber ) %][% UNLESS ( CGIselectborrower ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %] |
33 |
[% UNLESS ( borrowernumber ) %][% UNLESS ( CGIselectborrower ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %] |
| 28 |
$(document).ready(function() { |
34 |
$(document).ready(function() { |
| 29 |
$('#patronlists').tabs([% IF ( UseTablesortForCirc ) %]{ |
35 |
$('#patronlists').tabs([% IF ( UseTablesortForCirc ) %]{ |
| 30 |
// Correct table sizing for tables hidden in tabs |
36 |
// Correct table sizing for tables hidden in tabs |
| 31 |
// http://www.datatables.net/examples/api/tabs_and_scrolling.html |
37 |
// http://www.datatables.net/examples/api/tabs_and_scrolling.html |
|
Lines 36-52
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
Link Here
|
| 36 |
} |
42 |
} |
| 37 |
} |
43 |
} |
| 38 |
}[% END %]); |
44 |
}[% END %]); |
|
|
45 |
|
| 46 |
|
| 39 |
[% IF ( UseTablesortForCirc ) %] |
47 |
[% IF ( UseTablesortForCirc ) %] |
| 40 |
$("#issuest").dataTable($.extend(true, {}, dataTablesDefaults, { |
48 |
if ( $("#issuest").length > 0 ) { |
| 41 |
"sDom": 't', |
49 |
columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issuest', 'json' ) %] |
| 42 |
"aaSorting": [], |
50 |
[% UNLESS exports_enabled %] |
| 43 |
"aoColumnDefs": [ |
51 |
columns_settings = jQuery.grep(columns_settings, function(column) { |
| 44 |
{ "aTargets": [ -1, -2[% IF ( exports_enabled ) %], -3[% END %] ], "bSortable": false, "bSearchable": false }, |
52 |
return column['columnname'] != 'export'; |
| 45 |
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }, |
53 |
} ); |
| 46 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
54 |
[% END %] |
| 47 |
], |
55 |
var issuest = KohaTable("#issuest", { |
| 48 |
"bPaginate": false |
56 |
"sDom": 'C<"clearfix">t', |
| 49 |
})); |
57 |
"aaSorting": [], |
|
|
58 |
"aoColumnDefs": [ |
| 59 |
{ "aTargets": [ -1, -2[% IF ( exports_enabled ) %], -3[% END %] ], "bSortable": false, "bSearchable": false }, |
| 60 |
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }, |
| 61 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
| 62 |
], |
| 63 |
"bPaginate": false, |
| 64 |
}, columns_settings); |
| 65 |
} |
| 66 |
|
| 67 |
if ( $("#holdst").length > 0 ) { |
| 68 |
columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'holdst', 'json' ) %] |
| 69 |
var holdst = KohaTable("#holdst", { |
| 70 |
"sDom": 'C<"clearfix">t', |
| 71 |
"aaSorting": [], |
| 72 |
"aoColumnDefs": [ |
| 73 |
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false }, |
| 74 |
], |
| 75 |
"aoColumns": [ |
| 76 |
{ "sType": "natural" },{ "sType": "title-string" },{ "sType": "html" },null,null,null,null,null |
| 77 |
], |
| 78 |
"bPaginate": false, |
| 79 |
}, columns_settings); |
| 80 |
} |
| 50 |
|
81 |
|
| 51 |
$("#relissuest").dataTable($.extend(true, {}, dataTablesDefaults, { |
82 |
$("#relissuest").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 52 |
"sDom": 't', |
83 |
"sDom": 't', |
|
Lines 1062-1068
No patron matched <span class="ex">[% message %]</span>
Link Here
|
| 1062 |
<tbody> |
1093 |
<tbody> |
| 1063 |
[% FOREACH reservloo IN reservloop %] |
1094 |
[% FOREACH reservloo IN reservloop %] |
| 1064 |
<tr class="[% reservloo.color %]"> |
1095 |
<tr class="[% reservloo.color %]"> |
| 1065 |
<td>[% reservloo.reservedate %]</td> |
1096 |
<td><span title="[% reservloo.reservedate_sort %]">[% reservloo.reservedate %]</span></td> |
| 1066 |
<td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% reservloo.biblionumber %]"><strong>[% reservloo.title |html %][% FOREACH subtitl IN reservloo.subtitle %] [% subtitl.subfield %][% END %]</strong></a>[% IF ( reservloo.author ) %], by [% reservloo.author %][% END %]</td> |
1097 |
<td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% reservloo.biblionumber %]"><strong>[% reservloo.title |html %][% FOREACH subtitl IN reservloo.subtitle %] [% subtitl.subfield %][% END %]</strong></a>[% IF ( reservloo.author ) %], by [% reservloo.author %][% END %]</td> |
| 1067 |
<td>[% reservloo.itemcallnumber %]</td> |
1098 |
<td>[% reservloo.itemcallnumber %]</td> |
| 1068 |
<td><em>[% IF ( reservloo.barcodereserv ) %]Item [% reservloo.barcodereserv %] |
1099 |
<td><em>[% IF ( reservloo.barcodereserv ) %]Item [% reservloo.barcodereserv %] |
| 1069 |
- |
|
|