Lines 20-29
Link Here
|
20 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery-ui-timepicker-addon.js"></script> |
20 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery-ui-timepicker-addon.js"></script> |
21 |
<script type="text/javascript"> |
21 |
<script type="text/javascript"> |
22 |
//<![CDATA[ |
22 |
//<![CDATA[ |
|
|
23 |
|
23 |
[% IF ( UseTablesortForCirc && dateformat == 'metric' ) %]dt_add_type_uk_date();[% END %] |
24 |
[% IF ( UseTablesortForCirc && dateformat == 'metric' ) %]dt_add_type_uk_date();[% END %] |
24 |
[% 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 %] |
25 |
[% UNLESS ( borrowernumber ) %][% UNLESS ( CGIselectborrower ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %] |
26 |
[% UNLESS ( borrowernumber ) %][% UNLESS ( CGIselectborrower ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %] |
26 |
$(document).ready(function() { |
27 |
$(document).ready(function() { |
|
|
28 |
$(function(){ hiderenew() }); |
27 |
$('#patronlists').tabs([% IF ( UseTablesortForCirc ) %]{ |
29 |
$('#patronlists').tabs([% IF ( UseTablesortForCirc ) %]{ |
28 |
// Correct table sizing for tables hidden in tabs |
30 |
// Correct table sizing for tables hidden in tabs |
29 |
// http://www.datatables.net/examples/api/tabs_and_scrolling.html |
31 |
// http://www.datatables.net/examples/api/tabs_and_scrolling.html |
Lines 67-74
Link Here
|
67 |
$( '#override_limit' ).click( function () { |
69 |
$( '#override_limit' ).click( function () { |
68 |
if ( this.checked ) { |
70 |
if ( this.checked ) { |
69 |
$( '.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'); |
74 |
|
70 |
} else { |
75 |
} else { |
71 |
$( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show(); |
76 |
$( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show(); |
|
|
77 |
hiderenew(); |
72 |
} |
78 |
} |
73 |
} ).attr( 'checked', false ); |
79 |
} ).attr( 'checked', false ); |
74 |
[% END %][% IF ( CircAutoPrintQuickSlip ) %] |
80 |
[% END %][% IF ( CircAutoPrintQuickSlip ) %] |
Lines 78-84
Link Here
|
78 |
return printx_window('qslip'); } |
84 |
return printx_window('qslip'); } |
79 |
});[% END %] |
85 |
});[% END %] |
80 |
|
86 |
|
81 |
|
|
|
82 |
var allcheckboxes = $(".checkboxed"); |
87 |
var allcheckboxes = $(".checkboxed"); |
83 |
$("#renew_all").click(function(){ |
88 |
$("#renew_all").click(function(){ |
84 |
$(allcheckboxes).checkCheckboxes(":input[name*=items]"); |
89 |
$(allcheckboxes).checkCheckboxes(":input[name*=items]"); |
Lines 235-240
function validate1(date) {
Link Here
|
235 |
return false; |
240 |
return false; |
236 |
} |
241 |
} |
237 |
}; |
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 |
|
238 |
//]]> |
259 |
//]]> |
239 |
</script> |
260 |
</script> |
240 |
</head> |
261 |
</head> |
Lines 841-855
No patron matched <span class="ex">[% message %]</span>
Link Here
|
841 |
<td><span style="padding: 0 1em;">[% IF ( todayissue.renewals ) %][% todayissue.renewals %][% ELSE %]0[% END %]</span> |
862 |
<td><span style="padding: 0 1em;">[% IF ( todayissue.renewals ) %][% todayissue.renewals %][% ELSE %]0[% END %]</span> |
842 |
[% IF ( todayissue.can_renew ) %] |
863 |
[% IF ( todayissue.can_renew ) %] |
843 |
<input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" /> |
864 |
<input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" /> |
844 |
[% IF ( todayissue.od ) %] |
865 |
[% IF ( todayissue.od) %] |
845 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" /> |
866 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" /> |
846 |
[% ELSE %] |
|
|
847 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" /> |
848 |
[% END %] |
867 |
[% END %] |
849 |
[% ELSE %] |
868 |
[% ELSE %] |
850 |
[% IF ( todayissue.can_confirm ) %]<span class="renewals-allowed" style="display: none"> |
869 |
[% IF ( todayissue.can_confirm ) %]<span class="renewals-allowed" style="display: none"> |
851 |
<input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" /> |
870 |
<input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" /> |
852 |
[% IF ( todayissue.od ) %] |
871 |
[% IF ( todayissue.od and !todayissue.blockrenewal ) %] |
853 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" /> |
872 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" /> |
854 |
[% ELSE %] |
873 |
[% ELSE %] |
855 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" /> |
874 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" /> |
Lines 860-868
No patron matched <span class="ex">[% message %]</span>
Link Here
|
860 |
[% IF ( todayissue.renew_error_on_reserve ) %] |
879 |
[% IF ( todayissue.renew_error_on_reserve ) %] |
861 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a> |
880 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a> |
862 |
[% END %] |
881 |
[% END %] |
863 |
[% IF ( todayissue.renew_error_too_many ) %] |
882 |
[% IF ( todayissue.renew_error_restriction ) %] |
864 |
Not renewable |
883 |
Renewal not allowed (restriction) |
865 |
[% END %] |
884 |
[% ELSIF ( todayissue.renew_error_overdue ) %] |
|
|
885 |
Renewal not allowed (overdue) |
886 |
[% ELSIF ( todayissue.renew_error_too_many ) %] |
887 |
Not renewable |
888 |
[% END %] |
866 |
[% IF ( todayissue.can_confirm ) %] |
889 |
[% IF ( todayissue.can_confirm ) %] |
867 |
</span> |
890 |
</span> |
868 |
[% END %] |
891 |
[% END %] |
Lines 932-944
No patron matched <span class="ex">[% message %]</span>
Link Here
|
932 |
<input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" /> |
955 |
<input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" /> |
933 |
[% IF ( previssue.od ) %] |
956 |
[% IF ( previssue.od ) %] |
934 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" /> |
957 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" /> |
935 |
[% ELSE %] |
|
|
936 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" /> |
937 |
[% END %] |
958 |
[% END %] |
938 |
[% ELSE %] |
959 |
[% ELSE %] |
939 |
[% IF ( previssue.can_confirm ) %]<span class="renewals-allowed" style="display: none"> |
960 |
[% IF ( previssue.can_confirm ) %]<span class="renewals-allowed" style="display: none"> |
940 |
<input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" /> |
961 |
<input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" /> |
941 |
[% IF ( previssue.od ) %] |
962 |
[% IF ( previssue.od and !previssue.blockrenewal ) %] |
942 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" /> |
963 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" /> |
943 |
[% ELSE %] |
964 |
[% ELSE %] |
944 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" /> |
965 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" /> |
Lines 949-957
No patron matched <span class="ex">[% message %]</span>
Link Here
|
949 |
[% IF ( previssue.renew_error_on_reserve ) %] |
970 |
[% IF ( previssue.renew_error_on_reserve ) %] |
950 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a> |
971 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a> |
951 |
[% END %] |
972 |
[% END %] |
952 |
[% IF ( previssue.renew_error_too_many ) %] |
973 |
[% IF ( previssue.renew_error_restriction ) %] |
953 |
Not renewable |
974 |
Renewal not allowed (restriction) |
954 |
[% END %] |
975 |
[% ELSIF ( previssue.renew_error_overdue ) %] |
|
|
976 |
Renewal not allowed (overdue) |
977 |
[% ELSIF ( previssue.renew_error_too_many ) %] |
978 |
Not renewable |
979 |
[% END %] |
955 |
[% IF ( previssue.can_confirm ) %] |
980 |
[% IF ( previssue.can_confirm ) %] |
956 |
</span> |
981 |
</span> |
957 |
[% END %] |
982 |
[% END %] |