View | Details | Raw Unified | Return to bug 30915
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc (-3 / +1 lines)
Lines 1-4 Link Here
1
[% USE Context %]
2
[% USE Biblio %]
1
[% USE Biblio %]
3
2
4
[%# Parameters: %]
3
[%# Parameters: %]
Lines 259-266 Link Here
259
    >
258
    >
260
259
261
    [% IF ( CAN_user_reserveforothers ) %]
260
    [% IF ( CAN_user_reserveforothers ) %]
262
        [% SET items = biblio.items %]
261
        [% IF biblio.items.filter_by_for_hold.count %]
263
        [% IF Context.Scalar(Context.Scalar(items, "filter_by_for_hold"), "count") %]
264
            [% IF ( holdfor ) %]
262
            [% IF ( holdfor ) %]
265
                <div class="btn-group">
263
                <div class="btn-group">
266
                    <button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
264
                    <button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/catalog-strings.inc (-3 / +2 lines)
Lines 1-4 Link Here
1
[% USE Context %]
2
<!-- catalog-strings.inc -->
1
<!-- catalog-strings.inc -->
3
<script>
2
<script>
4
    /* Some required variables from the template */
3
    /* Some required variables from the template */
Lines 6-13 Link Here
6
    var count = [% count || 0 | html %];
5
    var count = [% count || 0 | html %];
7
    var holdcount = [% holdcount || 0 | html %];
6
    var holdcount = [% holdcount || 0 | html %];
8
    [% SET orders = biblio.orders %]
7
    [% SET orders = biblio.orders %]
9
    [% SET current   = Context.Scalar(orders, "filter_out_cancelled") %]
8
    [% SET current   = orders.filter_out_cancelled %]
10
    [% SET cancelled = Context.Scalar(orders, "filter_by_cancelled") %]
9
    [% SET cancelled = orders.filter_by_cancelled %]
11
    var countorders = [% current.count || 0 | html %];
10
    var countorders = [% current.count || 0 | html %];
12
    var countdeletedorders = [% cancelled.count || 0 | html %];
11
    var countdeletedorders = [% cancelled.count || 0 | html %];
13
    var subscriptionscount = [% biblio.subscriptions.count || 0 | html %];
12
    var subscriptionscount = [% biblio.subscriptions.count || 0 | html %];
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-article-requests.inc (-2 / +1 lines)
Lines 1-5 Link Here
1
[% USE Context %]
1
[% SET current_article_requests = patron.article_requests.filter_by_current %]
2
[% SET current_article_requests = Context.Scalar( Context.Scalar( patron, 'article_requests' ), 'filter_by_current' ) %]
3
[% IF current_article_requests.count > 0 %]
2
[% IF current_article_requests.count > 0 %]
4
    <table id="article-requests-table" class="table table-bordered table-striped">
3
    <table id="article-requests-table" class="table table-bordered table-striped">
5
        <thead>
4
        <thead>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc (-1 / +1 lines)
Lines 37-43 Link Here
37
        [% END %]
37
        [% END %]
38
38
39
        [% IF Koha.Preference('ArticleRequests') %]
39
        [% IF Koha.Preference('ArticleRequests') %]
40
            [% SET article_requests = Context.Scalar( Context.Scalar( patron, 'article_requests' ), 'filter_by_current') %]
40
            [% SET article_requests = patron.article_requests.filter_by_current %]
41
            [% WRAPPER tab_item tabname= "article-requests" %]
41
            [% WRAPPER tab_item tabname= "article-requests" %]
42
                <span>Article requests</span> ([% article_requests.count || 0 | html %])
42
                <span>Article requests</span> ([% article_requests.count || 0 | html %])
43
            [% END %]
43
            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-1 lines)
Lines 1-6 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE Context %]
4
[% USE Koha %]
3
[% USE Koha %]
5
[% USE Branches %]
4
[% USE Branches %]
6
[% USE KohaDates %]
5
[% USE KohaDates %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/request-article.tt (-2 / +1 lines)
Lines 1-6 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE Context %]
4
[% USE KohaDates %]
3
[% USE KohaDates %]
5
[% USE Branches %]
4
[% USE Branches %]
6
[% USE Categories %]
5
[% USE Categories %]
Lines 252-258 Link Here
252
        [% END %]
251
        [% END %]
253
    [% END %]
252
    [% END %]
254
253
255
    [% SET biblio_current_article_requests = Context.Scalar( Context.Scalar( biblio, 'article_requests' ), 'filter_by_current' ) %]
254
    [% SET biblio_current_article_requests = biblio.article_requests.filter_by_current %]
256
    [% IF biblio_current_article_requests.count > 0 && !patron %]
255
    [% IF biblio_current_article_requests.count > 0 && !patron %]
257
        <fieldset class="rows left" id="current-article-requests-fieldset">
256
        <fieldset class="rows left" id="current-article-requests-fieldset">
258
            <legend>Current article requests</legend>
257
            <legend>Current article requests</legend>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-2 lines)
Lines 1-6 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE Context %]
4
[% USE Koha %]
3
[% USE Koha %]
5
[% USE Branches %]
4
[% USE Branches %]
6
[% USE ItemTypes %]
5
[% USE ItemTypes %]
7
- 

Return to bug 30915