Placing a hold
[% IF ( message ) %] -
-
Sorry, you cannot place holds.
+
+
Sorry, you cannot place holds.
-
[% IF ( GNA ) %]
- @@ -49,41 +49,7 @@ [% END %] [% IF ( debarred ) %] -
-
- Your account has been frozen.
- [% IF debarred_comment %]
- Comment:
- - - [% IF debarred_comment.search('OVERDUES_PROCESS') %] - Restriction added by overdues process [% debarred_comment.remove('OVERDUES_PROCESS ') | html_line_break %] - [% ELSE %] - [% FOR restriction IN logged_in_user.restrictions %] -- [%- restriction.type.display_text | html -%][%- IF restriction.comment -%] - : [% restriction.comment | html_line_break %], frozen until: - - [%- IF restriction.expiration -%] - [%- restriction.expiration | $KohaDates -%] - [%- ELSE -%] - Indefinite - [%- END -%] - - [% END %] -- [% END %] - [% END %] - - - [% END %] - - [% IF debarred_date && debarred_date != '9999-12-31' %] - End date: - [% debarred_date | $KohaDates %] - [% END %] -
Usually the reason for freezing an account is old overdues or damage fees. If shows your account to be clear, please contact the library. - Go to your charges page -
+ [% INCLUDE "patron-restrictions.inc" %]
[% END %]
[% IF ( too_much_oweing ) %]
@@ -273,9 +239,9 @@
[% END %]
[% IF at_least_one_library_not_available_for_pickup %]
- - Please note: Your account is frozen because it has been discharged. Get your discharge [% ELSE %] -
-
- Please note: Your account has been frozen.
- [% IF ( borrower.debarredcomment ) %]
- Comment:
--
- [% FOREACH restriction IN logged_in_user.restrictions %]
-
- - [%- restriction.type.display_text | html -%]: - [% IF restriction.comment.search('OVERDUES_PROCESS') %] - Restriction added by overdues process [% restriction.comment.remove('OVERDUES_PROCESS ') | html_line_break %] - [% ELSE %] - [%- IF restriction.comment -%] - [% restriction.comment | html_line_break %]. - [%- END -%] - [% END %] - [%- IF restriction.expiration -%] - Account frozen until [%- restriction.expiration | $KohaDates -%] - [%- ELSE -%] - Account frozen indefinitely - [%- END -%] - - [% END %] -
Usually the reason for freezing an account is old overdues or damage fees. If your account shows to be clear, please contact the library. - Go to your charges page
-
+ [% INCLUDE "patron-restrictions.inc" %]
[% END %]
[% END %]
[% IF ( borrower.gonenoaddress ) %]
@@ -1093,8 +1064,9 @@
$(document).ready(function(){
[% IF ( opac_user_holds ) %]
$("#opac-user-views a[href='#opac-user-holds_panel']").tab("show");
- [% END %]
- [% IF ( opac_user_article_requests ) %]
+ [% ELSIF ( opac_user_overdues ) %]
+ $("#opac-user-views a[href='#opac-user-overdues_panel']").tab("show");
+ [% ELSIF ( opac_user_article_requests ) %]
$("#opac-user-views a[href='#opac-user-article-requests_panel']").tab("show");
[% END %]
$('#article-requests-table caption .count').html(AR_CAPTION_COUNT.format('[% current_article_requests.size | html %]'));
diff --git a/opac/opac-user.pl b/opac/opac-user.pl
index 9d7109bcac..be5f63896b 100755
--- a/opac/opac-user.pl
+++ b/opac/opac-user.pl
@@ -430,6 +430,7 @@ $template->param(
OpacHoldNotes => C4::Context->preference('OpacHoldNotes'),
failed_holds => scalar $query->param('failed_holds'),
opac_user_holds => scalar $query->param('opac-user-holds') || 0,
+ opac_user_overdues => scalar $query->param('opac-user-overdues') || 0,
opac_user_article_requests => scalar $query->param('opac-user-article-requests') || 0,
);
Note: Library policy does not allow hold/pickup of an item available locally. Please come to the library to retrieve these items
+
+ Note: Library policy does not allow hold/pickup of an item available locally. Please come to the library to retrieve these items
+
[% END %]
[% END # / UNLESS bibitemloo.holdable %]
diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt
index 2bc2eb3631..1c63a78d03 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt
@@ -167,36 +167,7 @@
[% IF ( discharge_available ) %]