Lines 28-33
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
Link Here
|
28 |
[% IF ( borrowernumber ) %]if($.cookie("holdfor") != [% borrowernumber %]){ $.cookie("holdfor",null, { path: "/", expires: 0 }); }[% ELSE %]$.cookie("holdfor",null, { path: "/", expires: 0 });[% END %] |
28 |
[% IF ( borrowernumber ) %]if($.cookie("holdfor") != [% borrowernumber %]){ $.cookie("holdfor",null, { path: "/", expires: 0 }); }[% ELSE %]$.cookie("holdfor",null, { path: "/", expires: 0 });[% END %] |
29 |
[% UNLESS ( borrowernumber ) %][% UNLESS ( CGIselectborrower ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %] |
29 |
[% UNLESS ( borrowernumber ) %][% UNLESS ( CGIselectborrower ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %] |
30 |
$(document).ready(function() { |
30 |
$(document).ready(function() { |
|
|
31 |
$(function(){ hiderenew() }); |
31 |
$('#patronlists').tabs([% IF ( UseTablesortForCirc ) %]{ |
32 |
$('#patronlists').tabs([% IF ( UseTablesortForCirc ) %]{ |
32 |
// Correct table sizing for tables hidden in tabs |
33 |
// Correct table sizing for tables hidden in tabs |
33 |
// http://www.datatables.net/examples/api/tabs_and_scrolling.html |
34 |
// http://www.datatables.net/examples/api/tabs_and_scrolling.html |
Lines 71-78
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
Link Here
|
71 |
$( '#override_limit' ).click( function () { |
72 |
$( '#override_limit' ).click( function () { |
72 |
if ( this.checked ) { |
73 |
if ( this.checked ) { |
73 |
$( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide(); |
74 |
$( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide(); |
|
|
75 |
$("input[name='renew_checked']").val('Renew or Return checked items'); |
76 |
$("input[name='renew_all']").css('display','inline'); |
74 |
} else { |
77 |
} else { |
75 |
$( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show(); |
78 |
$( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show(); |
|
|
79 |
hiderenew(); |
76 |
} |
80 |
} |
77 |
} ).attr( 'checked', false ); |
81 |
} ).attr( 'checked', false ); |
78 |
[% END %][% IF ( CircAutoPrintQuickSlip ) %] |
82 |
[% END %][% IF ( CircAutoPrintQuickSlip ) %] |
Lines 94-99
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
Link Here
|
94 |
[% END %] |
98 |
[% END %] |
95 |
[% END %] |
99 |
[% END %] |
96 |
}); |
100 |
}); |
|
|
101 |
|
102 |
function hiderenew () { |
103 |
var valid=false; |
104 |
$("input[name^=items]").parent().each(function(){ |
105 |
if($(this).css('display') !='none'){ |
106 |
valid = true; |
107 |
return; |
108 |
} |
109 |
}); |
110 |
if(!valid){ |
111 |
$("input[name='renew_checked']").val('Return checked items'); |
112 |
$("input[name='renew_all']").css('display','none'); |
113 |
} |
114 |
return; |
115 |
}; |
116 |
|
97 |
//]]> |
117 |
//]]> |
98 |
</script> |
118 |
</script> |
99 |
</head> |
119 |
</head> |
Lines 733-739
No patron matched <span class="ex">[% message %]</span>
Link Here
|
733 |
[% ELSE %] |
753 |
[% ELSE %] |
734 |
[% IF ( todayissue.can_confirm ) %]<span class="renewals-allowed" style="display: none"> |
754 |
[% IF ( todayissue.can_confirm ) %]<span class="renewals-allowed" style="display: none"> |
735 |
<input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" /> |
755 |
<input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" /> |
736 |
[% IF ( todayissue.od ) %] |
756 |
[% IF ( todayissue.od and !todayissue.blockrenewal ) %] |
737 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" /> |
757 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" /> |
738 |
[% ELSE %] |
758 |
[% ELSE %] |
739 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" /> |
759 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" /> |
Lines 744-752
No patron matched <span class="ex">[% message %]</span>
Link Here
|
744 |
[% IF ( todayissue.renew_error_on_reserve ) %] |
764 |
[% IF ( todayissue.renew_error_on_reserve ) %] |
745 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a> |
765 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a> |
746 |
[% END %] |
766 |
[% END %] |
747 |
[% IF ( todayissue.renew_error_too_many ) %] |
767 |
[% IF ( todayissue.renew_error_restriction ) %] |
748 |
Not renewable |
768 |
Renewal not allowed (restriction) |
749 |
[% END %] |
769 |
[% ELSIF ( todayissue.renew_error_overdue ) %] |
|
|
770 |
Renewal not allowed (overdue) |
771 |
[% ELSIF ( todayissue.renew_error_too_many ) %] |
772 |
Not renewable |
773 |
[% END %] |
750 |
[% IF ( todayissue.can_confirm ) %] |
774 |
[% IF ( todayissue.can_confirm ) %] |
751 |
</span> |
775 |
</span> |
752 |
[% END %] |
776 |
[% END %] |
Lines 822-828
No patron matched <span class="ex">[% message %]</span>
Link Here
|
822 |
[% ELSE %] |
846 |
[% ELSE %] |
823 |
[% IF ( previssue.can_confirm ) %]<span class="renewals-allowed" style="display: none"> |
847 |
[% IF ( previssue.can_confirm ) %]<span class="renewals-allowed" style="display: none"> |
824 |
<input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" /> |
848 |
<input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" /> |
825 |
[% IF ( previssue.od ) %] |
849 |
[% IF ( previssue.od and !previssue.blockrenewal ) %] |
826 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" /> |
850 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" /> |
827 |
[% ELSE %] |
851 |
[% ELSE %] |
828 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" /> |
852 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" /> |
Lines 833-841
No patron matched <span class="ex">[% message %]</span>
Link Here
|
833 |
[% IF ( previssue.renew_error_on_reserve ) %] |
857 |
[% IF ( previssue.renew_error_on_reserve ) %] |
834 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a> |
858 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a> |
835 |
[% END %] |
859 |
[% END %] |
836 |
[% IF ( previssue.renew_error_too_many ) %] |
860 |
[% IF ( previssue.renew_error_restriction ) %] |
837 |
Not renewable |
861 |
Renewal not allowed (restriction) |
838 |
[% END %] |
862 |
[% ELSIF ( previssue.renew_error_overdue ) %] |
|
|
863 |
Renewal not allowed (overdue) |
864 |
[% ELSIF ( previssue.renew_error_too_many ) %] |
865 |
Not renewable |
866 |
[% END %] |
839 |
[% IF ( previssue.can_confirm ) %] |
867 |
[% IF ( previssue.can_confirm ) %] |
840 |
</span> |
868 |
</span> |
841 |
[% END %] |
869 |
[% END %] |