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