Lines 217-223
Link Here
|
217 |
[% END %] |
217 |
[% END %] |
218 |
|
218 |
|
219 |
[% IF ( RESERVES.count ) %]<li><a href="#opac-user-holds">Holds ([% RESERVES.count | html %])</a></li>[% END %] |
219 |
[% IF ( RESERVES.count ) %]<li><a href="#opac-user-holds">Holds ([% RESERVES.count | html %])</a></li>[% END %] |
220 |
[% IF Koha.Preference('ArticleRequests') && logged_in_user.article_requests_current %]<li><a href="#opac-user-article-requests">Article requests ([% logged_in_user.article_requests_current.count | html %])</a></li>[% END %] |
220 |
[% IF Koha.Preference('ArticleRequests') %]<li><a href="#opac-user-article-requests">Article requests ([% current_article_requests_count || 0 | html %])</a></li>[% END %] |
221 |
[% IF ( OverDriveCirculation ) %] |
221 |
[% IF ( OverDriveCirculation ) %] |
222 |
<li><a href="#opac-user-overdrive">OverDrive account</a></li> |
222 |
<li><a href="#opac-user-overdrive">OverDrive account</a></li> |
223 |
[% END %] |
223 |
[% END %] |
Lines 714-720
Link Here
|
714 |
|
714 |
|
715 |
[% IF Koha.Preference('ArticleRequests') %] |
715 |
[% IF Koha.Preference('ArticleRequests') %] |
716 |
<div id="opac-user-article-requests"> |
716 |
<div id="opac-user-article-requests"> |
717 |
[% IF logged_in_user.article_requests_current.count %] |
717 |
[% IF current_article_requests_count %] |
718 |
<table id="article-requests-table" class="table table-bordered table-striped"> |
718 |
<table id="article-requests-table" class="table table-bordered table-striped"> |
719 |
<caption>Article requests <span class="count"></span></caption> |
719 |
<caption>Article requests <span class="count"></span></caption> |
720 |
<thead> |
720 |
<thead> |
Lines 737-743
Link Here
|
737 |
</thead> |
737 |
</thead> |
738 |
|
738 |
|
739 |
<tbody> |
739 |
<tbody> |
740 |
[% FOREACH ar IN logged_in_user.article_requests_current %] |
740 |
[% FOREACH ar IN current_article_requests %] |
741 |
<td class="article-request-record-title"> |
741 |
<td class="article-request-record-title"> |
742 |
<a class="article-request-title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ar.biblionumber | html %]"> |
742 |
<a class="article-request-title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ar.biblionumber | html %]"> |
743 |
[% INCLUDE 'biblio-title.inc' biblio=ar.biblio %] |
743 |
[% INCLUDE 'biblio-title.inc' biblio=ar.biblio %] |
Lines 853-859
Link Here
|
853 |
} |
853 |
} |
854 |
} |
854 |
} |
855 |
$(document).ready(function(){ |
855 |
$(document).ready(function(){ |
856 |
$('#opac-user-article-requests caption .count').html(AR_CAPTION_COUNT.format('[% logged_in_user.article_requests_current.count | html %]')); |
856 |
$('#opac-user-article-requests caption .count').html(AR_CAPTION_COUNT.format('[% current_article_requests_count | html %]')); |
857 |
$('#opac-user-views').tabs(); |
857 |
$('#opac-user-views').tabs(); |
858 |
$(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs"); |
858 |
$(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs"); |
859 |
$(".suspend-until").prop("readonly",1); |
859 |
$(".suspend-until").prop("readonly",1); |