Lines 230-236
Link Here
|
230 |
[% END %] |
230 |
[% END %] |
231 |
|
231 |
|
232 |
[% IF ( RESERVES.count ) %]<li><a href="#opac-user-holds">Holds ([% RESERVES.count | html %])</a></li>[% END %] |
232 |
[% IF ( RESERVES.count ) %]<li><a href="#opac-user-holds">Holds ([% RESERVES.count | html %])</a></li>[% END %] |
233 |
[% 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 %] |
233 |
[% IF Koha.Preference('ArticleRequests') %]<li><a href="#opac-user-article-requests">Article requests ([% current_article_requests_count || 0 | html %])</a></li>[% END %] |
234 |
[% IF ( OverDriveCirculation ) %] |
234 |
[% IF ( OverDriveCirculation ) %] |
235 |
<li><a href="#opac-user-overdrive">OverDrive account</a></li> |
235 |
<li><a href="#opac-user-overdrive">OverDrive account</a></li> |
236 |
[% END %] |
236 |
[% END %] |
Lines 765-771
Link Here
|
765 |
|
765 |
|
766 |
[% IF Koha.Preference('ArticleRequests') %] |
766 |
[% IF Koha.Preference('ArticleRequests') %] |
767 |
<div id="opac-user-article-requests"> |
767 |
<div id="opac-user-article-requests"> |
768 |
[% IF logged_in_user.article_requests_current.count %] |
768 |
[% IF current_article_requests_count %] |
769 |
<table id="article-requests-table" class="table table-bordered table-striped"> |
769 |
<table id="article-requests-table" class="table table-bordered table-striped"> |
770 |
<caption>Article requests <span class="count"></span></caption> |
770 |
<caption>Article requests <span class="count"></span></caption> |
771 |
<thead> |
771 |
<thead> |
Lines 788-794
Link Here
|
788 |
</thead> |
788 |
</thead> |
789 |
|
789 |
|
790 |
<tbody> |
790 |
<tbody> |
791 |
[% FOREACH ar IN logged_in_user.article_requests_current %] |
791 |
[% FOREACH ar IN current_article_requests %] |
792 |
<td class="article-request-record-title"> |
792 |
<td class="article-request-record-title"> |
793 |
<a class="article-request-title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ar.biblionumber | html %]"> |
793 |
<a class="article-request-title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ar.biblionumber | html %]"> |
794 |
[% INCLUDE 'biblio-title.inc' biblio=ar.biblio %] |
794 |
[% INCLUDE 'biblio-title.inc' biblio=ar.biblio %] |
Lines 904-910
Link Here
|
904 |
} |
904 |
} |
905 |
} |
905 |
} |
906 |
$(document).ready(function(){ |
906 |
$(document).ready(function(){ |
907 |
$('#opac-user-article-requests caption .count').html(AR_CAPTION_COUNT.format('[% logged_in_user.article_requests_current.count | html %]')); |
907 |
$('#opac-user-article-requests caption .count').html(AR_CAPTION_COUNT.format('[% current_article_requests_count | html %]')); |
908 |
$('#opac-user-views').tabs(); |
908 |
$('#opac-user-views').tabs(); |
909 |
$(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs"); |
909 |
$(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs"); |
910 |
$(".suspend-until").prop("readonly",1); |
910 |
$(".suspend-until").prop("readonly",1); |