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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/usermenu.inc (-1 / +1 lines)
Lines 73-79 Link Here
73
                    [% ELSE %]
73
                    [% ELSE %]
74
                        <li>
74
                        <li>
75
                    [% END %]
75
                    [% END %]
76
                    <a href="/cgi-bin/koha/opac-holdsrecord.pl">your holds history</a></li>
76
                    <a href="/cgi-bin/koha/opac-holdshistory.pl">your holds history</a></li>
77
                [% END %]
77
                [% END %]
78
                [% IF ( OPACPrivacy || Koha.Preference('OPACHoldsPrivacy') == 1 ) %]
78
                [% IF ( OPACPrivacy || Koha.Preference('OPACHoldsPrivacy') == 1 ) %]
79
                    [% IF ( privacyview ) %]
79
                    [% IF ( privacyview ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-holdsrecord.tt (-7 / +8 lines)
Lines 35-41 Link Here
35
    </style>
35
    </style>
36
[% END %]
36
[% END %]
37
</head>
37
</head>
38
[% INCLUDE 'bodytag.inc' bodyid='opac-holdsrecord' %]
38
[% INCLUDE 'bodytag.inc' bodyid='opac-holdshistory' %]
39
[% INCLUDE 'masthead.inc' %]
39
[% INCLUDE 'masthead.inc' %]
40
40
41
<div class="main">
41
<div class="main">
Lines 53-59 Link Here
53
                </div>
53
                </div>
54
            </div>
54
            </div>
55
            <div class="span10">
55
            <div class="span10">
56
                <div id="userholdsrecord">
56
                <div id="userholdshistory">
57
                    <h3>Holds history</h3>
57
                    <h3>Holds history</h3>
58
58
59
                    [% IF READING_RECORD.size == 0 %]
59
                    [% IF READING_RECORD.size == 0 %]
Lines 133-138 Link Here
133
                "biblio",
133
                "biblio",
134
                "branch"
134
                "branch"
135
            ],
135
            ],
136
            'pageLength': 20,
136
            'order': [[ 4, "desc" ]],
137
            'order': [[ 4, "desc" ]],
137
            "columnDefs": [
138
            "columnDefs": [
138
                { "targets": [ "nosort" ],"sortable": false,"searchable": false },
139
                { "targets": [ "nosort" ],"sortable": false,"searchable": false },
Lines 184-194 Link Here
184
                    "data": "status",
185
                    "data": "status",
185
                    "render": function(data, type, row, meta) {
186
                    "render": function(data, type, row, meta) {
186
                        if (type != 'display') return data;
187
                        if (type != 'display') return data;
187
                        if(row.cancelation_date) return 'Canceled';
188
                        if(row.cancelation_date) return _('Canceled');
188
                        if (data == 'F') return 'Fulfilled';
189
                        if (data == 'F') return _('Fulfilled');
189
                        if (data == 'W') return 'Waiting';
190
                        if (data == 'W') return _('Waiting');
190
                        if (data == 'T') return 'In Transit';
191
                        if (data == 'T') return _('In Transit');
191
                        return 'Pending';
192
                        return _('Pending');
192
                    }
193
                    }
193
                }
194
                }
194
            ]
195
            ]
(-)a/opac/opac-holdsrecord.pl (-2 / +1 lines)
Lines 45-51 if ( ! C4::Context->preference('OPACHoldsHistory') ) { Link Here
45
45
46
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
46
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
47
    {
47
    {
48
        template_name   => "opac-holdsrecord.tt",
48
        template_name   => "opac-holdshistory.tt",
49
        query           => $query,
49
        query           => $query,
50
        type            => "opac",
50
        type            => "opac",
51
        debug           => 1,
51
        debug           => 1,
52
- 

Return to bug 20936