Bug 20456: (follow-up) Fix number of subscriptions and position display

TT variables needed to be adjusted because of changes from bug 20400.
Also: while we want logged_in_user in OPAC, we don't want that in staff.

1) Check the right number of subscriptions is displayed on top of the table
2) check the right position number is display for the routing list

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Katrin Fischer 2018-04-21 01:07:58 +00:00 committed by Martin Renvoize
parent cd16582acd
commit 64fc4809e9
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 4 additions and 4 deletions

View File

@ -26,19 +26,19 @@
</form>
<!-- Search Bar End -->
[% SET routinglists = patron.get_routing_lists %]
<h1>
[% UNLESS ( routinglists ) %]
0 subscription routing lists
[% ELSIF ( routinglists.size() == 1 ) %]
[% routinglists.size() %] subscription routing list
[% ELSIF ( routinglists.count == 1 ) %]
[% routinglists.count %] subscription routing list
[% ELSE %]
[% routinglists.size() %] subscription routing lists
[% routinglists.count %] subscription routing lists
[% END %]
</h1>
<div id="subscriptions">
[% SET routinglists = logged_in_user.get_routing_lists %]
[% IF ( routinglists ) %]
<table id="subscriptiont">
<thead>