Lines 21-30
Link Here
|
21 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery-ui-timepicker-addon.js"></script> |
21 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery-ui-timepicker-addon.js"></script> |
22 |
<script type="text/javascript"> |
22 |
<script type="text/javascript"> |
23 |
//<![CDATA[ |
23 |
//<![CDATA[ |
|
|
24 |
|
24 |
[% IF ( UseTablesortForCirc && dateformat == 'metric' ) %]dt_add_type_uk_date();[% END %] |
25 |
[% IF ( UseTablesortForCirc && dateformat == 'metric' ) %]dt_add_type_uk_date();[% END %] |
25 |
[% IF ( borrowernumber ) %]if($.cookie("holdfor") != [% borrowernumber %]){ $.cookie("holdfor",null, { path: "/", expires: 0 }); }[% ELSE %]$.cookie("holdfor",null, { path: "/", expires: 0 });[% END %] |
26 |
[% IF ( borrowernumber ) %]if($.cookie("holdfor") != [% borrowernumber %]){ $.cookie("holdfor",null, { path: "/", expires: 0 }); }[% ELSE %]$.cookie("holdfor",null, { path: "/", expires: 0 });[% END %] |
26 |
[% UNLESS ( borrowernumber ) %][% UNLESS ( CGIselectborrower ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %] |
27 |
[% UNLESS ( borrowernumber ) %][% UNLESS ( CGIselectborrower ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %] |
27 |
$(document).ready(function() { |
28 |
$(document).ready(function() { |
|
|
29 |
$(function(){ hiderenew() }); |
28 |
$('#patronlists').tabs([% IF ( UseTablesortForCirc ) %]{ |
30 |
$('#patronlists').tabs([% IF ( UseTablesortForCirc ) %]{ |
29 |
// Correct table sizing for tables hidden in tabs |
31 |
// Correct table sizing for tables hidden in tabs |
30 |
// http://www.datatables.net/examples/api/tabs_and_scrolling.html |
32 |
// http://www.datatables.net/examples/api/tabs_and_scrolling.html |
Lines 68-75
Link Here
|
68 |
$( '#override_limit' ).click( function () { |
70 |
$( '#override_limit' ).click( function () { |
69 |
if ( this.checked ) { |
71 |
if ( this.checked ) { |
70 |
$( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide(); |
72 |
$( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide(); |
|
|
73 |
$("input[name='renew_checked']").val('Renew or Return checked items'); |
74 |
$("input[name='renew_all']").css('display','inline'); |
75 |
|
71 |
} else { |
76 |
} else { |
72 |
$( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show(); |
77 |
$( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show(); |
|
|
78 |
hiderenew(); |
73 |
} |
79 |
} |
74 |
} ).attr( 'checked', false ); |
80 |
} ).attr( 'checked', false ); |
75 |
[% END %][% IF ( CircAutoPrintQuickSlip ) %] |
81 |
[% END %][% IF ( CircAutoPrintQuickSlip ) %] |
Lines 79-85
Link Here
|
79 |
return printx_window('qslip'); } |
85 |
return printx_window('qslip'); } |
80 |
});[% END %] |
86 |
});[% END %] |
81 |
|
87 |
|
82 |
|
|
|
83 |
var allcheckboxes = $(".checkboxed"); |
88 |
var allcheckboxes = $(".checkboxed"); |
84 |
$("#renew_all").click(function(){ |
89 |
$("#renew_all").click(function(){ |
85 |
$(allcheckboxes).checkCheckboxes(":input[name*=items]"); |
90 |
$(allcheckboxes).checkCheckboxes(":input[name*=items]"); |
Lines 236-241
function validate1(date) {
Link Here
|
236 |
return false; |
241 |
return false; |
237 |
} |
242 |
} |
238 |
}; |
243 |
}; |
|
|
244 |
|
245 |
function hiderenew () { |
246 |
var valid=false; |
247 |
$("input[name^=items]").parent().each(function(){ |
248 |
if($(this).css('display') !='none'){ |
249 |
valid = true; |
250 |
return; |
251 |
} |
252 |
}); |
253 |
if(!valid){ |
254 |
$("input[name='renew_checked']").val('Return checked items'); |
255 |
$("input[name='renew_all']").css('display','none'); |
256 |
} |
257 |
return; |
258 |
}; |
259 |
|
239 |
//]]> |
260 |
//]]> |
240 |
</script> |
261 |
</script> |
241 |
</head> |
262 |
</head> |
Lines 875-881
No patron matched <span class="ex">[% message %]</span>
Link Here
|
875 |
[% ELSE %] |
896 |
[% ELSE %] |
876 |
[% IF ( todayissue.can_confirm ) %]<span class="renewals-allowed" style="display: none"> |
897 |
[% IF ( todayissue.can_confirm ) %]<span class="renewals-allowed" style="display: none"> |
877 |
<input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" /> |
898 |
<input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" /> |
878 |
[% IF ( todayissue.od ) %] |
899 |
[% IF ( todayissue.od and !todayissue.blockrenewal ) %] |
879 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" /> |
900 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" /> |
880 |
[% ELSE %] |
901 |
[% ELSE %] |
881 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" /> |
902 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" /> |
Lines 886-894
No patron matched <span class="ex">[% message %]</span>
Link Here
|
886 |
[% IF ( todayissue.renew_error_on_reserve ) %] |
907 |
[% IF ( todayissue.renew_error_on_reserve ) %] |
887 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a> |
908 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a> |
888 |
[% END %] |
909 |
[% END %] |
889 |
[% IF ( todayissue.renew_error_too_many ) %] |
910 |
[% IF ( todayissue.renew_error_restriction ) %] |
890 |
Not renewable |
911 |
Renewal not allowed (restriction) |
891 |
[% END %] |
912 |
[% ELSIF ( todayissue.renew_error_overdue ) %] |
|
|
913 |
Renewal not allowed (overdue) |
914 |
[% ELSIF ( todayissue.renew_error_too_many ) %] |
915 |
Not renewable |
916 |
[% END %] |
892 |
[% IF ( todayissue.can_confirm ) %] |
917 |
[% IF ( todayissue.can_confirm ) %] |
893 |
</span> |
918 |
</span> |
894 |
[% END %] |
919 |
[% END %] |
Lines 964-970
No patron matched <span class="ex">[% message %]</span>
Link Here
|
964 |
[% ELSE %] |
989 |
[% ELSE %] |
965 |
[% IF ( previssue.can_confirm ) %]<span class="renewals-allowed" style="display: none"> |
990 |
[% IF ( previssue.can_confirm ) %]<span class="renewals-allowed" style="display: none"> |
966 |
<input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" /> |
991 |
<input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" /> |
967 |
[% IF ( previssue.od ) %] |
992 |
[% IF ( previssue.od and !previssue.blockrenewal ) %] |
968 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" /> |
993 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" /> |
969 |
[% ELSE %] |
994 |
[% ELSE %] |
970 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" /> |
995 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" /> |
Lines 975-983
No patron matched <span class="ex">[% message %]</span>
Link Here
|
975 |
[% IF ( previssue.renew_error_on_reserve ) %] |
1000 |
[% IF ( previssue.renew_error_on_reserve ) %] |
976 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a> |
1001 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a> |
977 |
[% END %] |
1002 |
[% END %] |
978 |
[% IF ( previssue.renew_error_too_many ) %] |
1003 |
[% IF ( previssue.renew_error_restriction ) %] |
979 |
Not renewable |
1004 |
Renewal not allowed (restriction) |
980 |
[% END %] |
1005 |
[% ELSIF ( previssue.renew_error_overdue ) %] |
|
|
1006 |
Renewal not allowed (overdue) |
1007 |
[% ELSIF ( previssue.renew_error_too_many ) %] |
1008 |
Not renewable |
1009 |
[% END %] |
981 |
[% IF ( previssue.can_confirm ) %] |
1010 |
[% IF ( previssue.can_confirm ) %] |
982 |
</span> |
1011 |
</span> |
983 |
[% END %] |
1012 |
[% END %] |