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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-search-history.tt (-195 / +203 lines)
Lines 49-54 Link Here
49
49
50
                <div id="searchhistory" class="maincontent">
50
                <div id="searchhistory" class="maincontent">
51
                    <h1>Search history</h1>
51
                    <h1>Search history</h1>
52
52
                    [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]
53
                    [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]
53
                        <div id="tabs" class="toptabs">
54
                        <div id="tabs" class="toptabs">
54
                            <ul class="nav nav-tabs" role="tablist">
55
                            <ul class="nav nav-tabs" role="tablist">
Lines 59-265 Link Here
59
                                    <a class="nav-link" id="authority-tab-link" href="#authority_tab" aria-controls="authority_tab" role="tab" data-toggle="tab" aria-selected="false">Authority</a>
60
                                    <a class="nav-link" id="authority-tab-link" href="#authority_tab" aria-controls="authority_tab" role="tab" data-toggle="tab" aria-selected="false">Authority</a>
60
                                </li>
61
                                </li>
61
                            </ul>
62
                            </ul>
62
                        <div class="tab-content">
63
                            <div class="tab-content">
63
                    [% END %]
64
                                <div id="biblio_tab" role="tabpanel" class="tab-pane active" aria-labelledby="biblio-tab-link">
64
                        <div id="biblio_tab" role="tabpanel" class="tab-pane active" aria-labelledby="biblio-tab-link">
65
                                    [% PROCESS catalog_search_history %]
65
                            <div id="current_biblio">
66
                                </div> <!-- / #biblio_tab -->
66
                                [% IF ( current_biblio_searches ) %]
67
                                    <h2>Current session</h2>
68
                                    <form action="/cgi-bin/koha/opac-search-history.pl" method="post">
69
                                        <legend class="sr-only">Toolbar control</legend>
70
71
                                        [% INCLUDE 'toolbar_controls' %]
72
                                        <input type="hidden" name="action" value="delete" />
73
                                        <table class="historyt table table-bordered table-striped">
74
                                            <caption class="sr-only">Current session</caption>
75
                                            <thead>
76
                                                <tr>
77
                                                    <th></th>
78
                                                    <th>Date</th>
79
                                                    <th>Search</th>
80
                                                    <th>Results</th>
81
                                                    <th></th>
82
                                                </tr>
83
                                            </thead>
84
                                            <tbody>
85
                                                [% FOREACH s IN current_biblio_searches %]
86
                                                    <tr>
87
                                                        <td class="selectcol">
88
                                                            <input type="checkbox" name="id" value="[% s.id | html %]" id="result[% s.id | html %]" />
89
                                                        </td>
90
                                                        <td data-order="[% s.time | html %]">
91
                                                            <label for="result[% s.id | html %]">
92
                                                                [% s.time |$KohaDates  with_hours => 1 %]
93
                                                            </label>
94
                                                        </td>
95
                                                        <td>
96
                                                            <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&amp;[% s.query_cgi | $raw %]&amp;count=[% countrss | uri %]&amp;sort_by=acqdate_dsc&amp;format=rss" aria-label="Subscribe to this search" class="rsssearchlink">
97
                                                                <i class="fa fa-rss rsssearchicon" aria-hidden="true" title="Subscribe to this search"></i>
98
                                                            </a>
99
                                                            <a href="/cgi-bin/koha/opac-search.pl?[% s.query_cgi | $raw %]">[% s.query_desc | html %]</a>
100
                                                        </td>
101
                                                        <td>[% s.total | html %]</td>
102
                                                        <td></td>
103
                                                    </tr>
104
                                                [% END %]
105
                                            </tbody>
106
                                        </table>
107
                                        <input type="submit" class="btn btn-danger remove-selected" value="Remove selected searches">
108
                                    </form>
109
                                [% END # IF ( current_biblio_searches ) %]
110
                            </div> <!-- / #current_biblio -->
111
                            <hr />
112
                            <div id="previous_biblio">
113
                                [% IF ( previous_biblio_searches ) %]
114
                                    <h2>Previous sessions</h2>
115
                                    <form action="/cgi-bin/koha/opac-search-history.pl" method="post">
116
                                        <legend class="sr-only">Toolbar control</legend>
117
                                        [% INCLUDE 'toolbar_controls' %]
118
119
                                        <input type="hidden" name="action" value="delete" />
120
                                        <table class="historyt table table-bordered table-striped">
121
                                            <caption class="sr-only">Previous sessions</caption>
122
                                            <thead>
123
                                                <tr>
124
                                                    <th></th>
125
                                                    <th>Date</th>
126
                                                    <th>Search</th>
127
                                                    <th>Results</th>
128
                                                    <th></th>
129
                                                </tr>
130
                                            </thead>
131
                                            <tbody>
132
                                            [% FOREACH s IN previous_biblio_searches %]
133
                                                <tr>
134
                                                    <td class="selectcol">
135
                                                        <input type="checkbox" name="id" value="[% s.id | html %]" id="result[% s.id | html %]" />
136
                                                    </td>
137
                                                    <td data-order="[% s.time | html %]">
138
                                                        <label for="result[% s.id | html %]">
139
                                                            [% s.time |$KohaDates  with_hours => 1 %]
140
                                                        </label>
141
                                                    </td>
142
                                                    <td>
143
                                                        <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&amp;[% s.query_cgi | $raw %]&amp;count=[% countrss | uri %]&amp;sort_by=acqdate_dsc&amp;format=rss" aria-label="Subscribe to this search" class="rsssearchlink">
144
                                                            <i class="fa fa-rss rsssearchicon" aria-hidden="true" title="Subscribe to this search"></i>
145
                                                        </a>
146
                                                        <a href="/cgi-bin/koha/opac-search.pl?[% s.query_cgi | $raw %]">
147
                                                            [% s.query_desc | html %]
148
                                                        </a>
149
                                                    </td>
150
                                                    <td>[% s.total | html %]</td>
151
                                                    <td></td>
152
                                                </tr>
153
                                            [% END %]
154
                                            </tbody>
155
                                        </table>
156
                                        <input type="submit" class="btn btn-danger remove-selected" value="Remove selected searches">
157
                                    </form>
158
                                [% END # IF ( previous_biblio_searches ) %]
159
                            </div> <!-- / #previous_biblio -->
160
161
                            [% IF !current_biblio_searches && !previous_biblio_searches %]
162
                                <p>Your catalog search history is empty.</p>
163
                            [% END %]
164
                        </div> <!-- / #biblio_tab -->
165
67
166
                        [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]
68
                                <div id="authority_tab" role="tabpanel" class="tab-pane" aria-labelledby="authority-tab-link">
167
                            <div id="authority_tab" role="tabpanel" class="tab-pane" aria-labelledby="authority-tab-link">
69
                                    [% PROCESS authority_search_history %]
168
                                <div id="current_authority">
70
                                </div> <!-- / #authority_tab -->
169
                                    [% IF ( current_authority_searches ) %]
71
                            </div> <!-- /.tab-content -->
170
                                        <h2>Current session</h2>
72
                        </div> <!-- / #tabs -->
171
                                        <form action="/cgi-bin/koha/opac-search-history.pl" method="post">
73
                    [% ELSE %]
172
                                            <legend class="sr-only">Toolbar control</legend>
74
                        [% PROCESS catalog_search_history %]
173
                                            [% INCLUDE 'toolbar_controls' %]
75
                    [% END %]
174
                                            <input type="hidden" name="action" value="delete" />
175
                                            <table class="historyt table table-bordered table-striped">
176
                                                <caption class="sr-only">Current session</caption>
177
                                                <thead>
178
                                                    <tr>
179
                                                        <th></th>
180
                                                        <th>Date</th>
181
                                                        <th>Search</th>
182
                                                        <th>Results</th>
183
                                                        <th></th>
184
                                                    </tr>
185
                                                </thead>
186
                                                <tbody>
187
                                                    [% FOREACH s IN current_authority_searches %]
188
                                                        <tr>
189
                                                            <td class="selectcol">
190
                                                                <input type="checkbox" name="id" value="[% s.id | html %]" id="result[% s.id | html %]" />
191
                                                            </td>
192
                                                            <td data-order="[% s.time | html %]">
193
                                                                <label for="result[% s.id | html %]">
194
                                                                    [% s.time |$KohaDates  with_hours => 1 %]
195
                                                                </label>
196
                                                            </td>
197
                                                            <td><a href="/cgi-bin/koha/opac-authorities-home.pl?[% s.query_cgi | $raw %]">[% s.query_desc | html %]</a></td>
198
                                                            <td>[% s.total | html %]</td>
199
                                                            <td></td>
200
                                                        </tr>
201
                                                    [% END %]
202
                                                </tbody>
203
                                            </table>
204
                                            <input type="submit" class="btn btn-danger remove-selected" value="Remove selected searches">
205
                                        </form>
206
                                    [% END # / IF ( current_authority_searches ) %]
207
                                </div> <!-- / #current_authority -->
208
                                <hr />
209
                                <div id="previous_authority">
210
                                    [% IF ( previous_authority_searches ) %]
211
                                        <h2>Previous sessions</h2>
212
                                        <form action="/cgi-bin/koha/opac-search-history.pl" method="post">
213
                                            <legend class="sr-only">Toolbar control</legend>
214
                                            [% INCLUDE 'toolbar_controls' %]
215
                                            <input type="hidden" name="action" value="delete" />
216
                                            <table class="historyt table table-bordered table-striped">
217
                                                <caption class="sr-only">Previous sessions</caption>
218
                                                <thead>
219
                                                    <tr>
220
                                                        <th></th>
221
                                                        <th>Date</th>
222
                                                        <th>Search</th>
223
                                                        <th>Results</th>
224
                                                        <th></th>
225
                                                    </tr>
226
                                                </thead>
227
                                                <tbody>
228
                                                    [% FOREACH s IN previous_authority_searches %]
229
                                                        <tr>
230
                                                            <td class="selectcol">
231
                                                                <input type="checkbox" name="id" value="[% s.id | html %]" id="result[% s.id | html %]" />
232
                                                            </td>
233
                                                            <td data-order="[% s.time | html %]">
234
                                                                <label for="result[% s.id | html %]">
235
                                                                    [% s.time |$KohaDates  with_hours => 1 %]
236
                                                                </label>
237
                                                            </td>
238
                                                            <td><a href="/cgi-bin/koha/opac-authorities-home.pl?[% s.query_cgi | $raw %]">[% s.query_desc | html %]</a></td>
239
                                                            <td>[% s.total | html %]</td>
240
                                                            <td></td>
241
                                                        </tr>
242
                                                    [% END %]
243
                                                </tbody>
244
                                            </table>
245
                                            <input type="submit" class="btn btn-danger remove-selected" value="Remove selected searches">
246
                                        </form>
247
                                    [% END # / IF ( previous_authority_searches )%]
248
                                </div>
249
250
                                [% IF !current_authority_searches && !previous_authority_searches %]
251
                                    <p>Your authority search history is empty.</p>
252
                                [% END %]
253
                            </div> <!-- / #authority_tab -->
254
                        </div> <!-- /.tab-content -->
255
                        [% END # / IF Koha.Preference( 'OpacAuthorities' ) %]
256
                    </div> <!-- / #tabs -->
257
                </div> <!-- / #searchhistory -->
76
                </div> <!-- / #searchhistory -->
258
            </div> <!-- / .col-lg-10/12 -->
77
            </div> <!-- / .col-lg-10/12 -->
259
        </div> <!-- / .row -->
78
        </div> <!-- / .row -->
260
    </div> <!-- / .container-fluid -->
79
    </div> <!-- / .container-fluid -->
261
</div> <!-- / #main -->
80
</div> <!-- / #main -->
262
81
82
[% BLOCK catalog_search_history %]
83
    <div id="current_biblio">
84
        [% IF ( current_biblio_searches ) %]
85
            <h2>Current session</h2>
86
            <form action="/cgi-bin/koha/opac-search-history.pl" method="post">
87
                <legend class="sr-only">Toolbar control</legend>
88
89
                [% INCLUDE 'toolbar_controls' %]
90
                <input type="hidden" name="action" value="delete" />
91
                <table class="historyt table table-bordered table-striped">
92
                    <caption class="sr-only">Current session</caption>
93
                    <thead>
94
                        <tr>
95
                            <th></th>
96
                            <th>Date</th>
97
                            <th>Search</th>
98
                            <th>Results</th>
99
                            <th></th>
100
                        </tr>
101
                    </thead>
102
                    <tbody>
103
                        [% FOREACH s IN current_biblio_searches %]
104
                            <tr>
105
                                <td class="selectcol">
106
                                    <input type="checkbox" name="id" value="[% s.id | html %]" id="result[% s.id | html %]" />
107
                                </td>
108
                                <td data-order="[% s.time | html %]">
109
                                    <label for="result[% s.id | html %]">
110
                                        [% s.time |$KohaDates  with_hours => 1 %]
111
                                    </label>
112
                                </td>
113
                                <td>
114
                                    <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&amp;[% s.query_cgi | $raw %]&amp;count=[% countrss | uri %]&amp;sort_by=acqdate_dsc&amp;format=rss" aria-label="Subscribe to this search" class="rsssearchlink">
115
                                        <i class="fa fa-rss rsssearchicon" aria-hidden="true" title="Subscribe to this search"></i>
116
                                    </a>
117
                                    <a href="/cgi-bin/koha/opac-search.pl?[% s.query_cgi | $raw %]">[% s.query_desc | html %]</a>
118
                                </td>
119
                                <td>[% s.total | html %]</td>
120
                                <td></td>
121
                            </tr>
122
                        [% END %]
123
                    </tbody>
124
                </table>
125
                <input type="submit" class="btn btn-danger remove-selected" value="Remove selected searches">
126
            </form>
127
        [% END # IF ( current_biblio_searches ) %]
128
    </div> <!-- / #current_biblio -->
129
    <hr />
130
    <div id="previous_biblio">
131
        [% IF ( previous_biblio_searches ) %]
132
            <h2>Previous sessions</h2>
133
            <form action="/cgi-bin/koha/opac-search-history.pl" method="post">
134
                <legend class="sr-only">Toolbar control</legend>
135
                [% INCLUDE 'toolbar_controls' %]
136
137
                <input type="hidden" name="action" value="delete" />
138
                <table class="historyt table table-bordered table-striped">
139
                    <caption class="sr-only">Previous sessions</caption>
140
                    <thead>
141
                        <tr>
142
                            <th></th>
143
                            <th>Date</th>
144
                            <th>Search</th>
145
                            <th>Results</th>
146
                            <th></th>
147
                        </tr>
148
                    </thead>
149
                    <tbody>
150
                    [% FOREACH s IN previous_biblio_searches %]
151
                        <tr>
152
                            <td class="selectcol">
153
                                <input type="checkbox" name="id" value="[% s.id | html %]" id="result[% s.id | html %]" />
154
                            </td>
155
                            <td data-order="[% s.time | html %]">
156
                                <label for="result[% s.id | html %]">
157
                                    [% s.time |$KohaDates  with_hours => 1 %]
158
                                </label>
159
                            </td>
160
                            <td>
161
                                <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&amp;[% s.query_cgi | $raw %]&amp;count=[% countrss | uri %]&amp;sort_by=acqdate_dsc&amp;format=rss" aria-label="Subscribe to this search" class="rsssearchlink">
162
                                    <i class="fa fa-rss rsssearchicon" aria-hidden="true" title="Subscribe to this search"></i>
163
                                </a>
164
                                <a href="/cgi-bin/koha/opac-search.pl?[% s.query_cgi | $raw %]">
165
                                    [% s.query_desc | html %]
166
                                </a>
167
                            </td>
168
                            <td>[% s.total | html %]</td>
169
                            <td></td>
170
                        </tr>
171
                    [% END %]
172
                    </tbody>
173
                </table>
174
                <input type="submit" class="btn btn-danger remove-selected" value="Remove selected searches">
175
            </form>
176
        [% END # IF ( previous_biblio_searches ) %]
177
    </div> <!-- / #previous_biblio -->
178
179
    [% IF !current_biblio_searches && !previous_biblio_searches %]
180
        <p>Your catalog search history is empty.</p>
181
    [% END %]
182
[% END %]
183
184
[% BLOCK authority_search_history %]
185
    <div id="current_authority">
186
        [% IF ( current_authority_searches ) %]
187
            <h2>Current session</h2>
188
            <form action="/cgi-bin/koha/opac-search-history.pl" method="post">
189
                <legend class="sr-only">Toolbar control</legend>
190
                [% INCLUDE 'toolbar_controls' %]
191
                <input type="hidden" name="action" value="delete" />
192
                <table class="historyt table table-bordered table-striped">
193
                    <caption class="sr-only">Current session</caption>
194
                    <thead>
195
                        <tr>
196
                            <th></th>
197
                            <th>Date</th>
198
                            <th>Search</th>
199
                            <th>Results</th>
200
                            <th></th>
201
                        </tr>
202
                    </thead>
203
                    <tbody>
204
                        [% FOREACH s IN current_authority_searches %]
205
                            <tr>
206
                                <td class="selectcol">
207
                                    <input type="checkbox" name="id" value="[% s.id | html %]" id="result[% s.id | html %]" />
208
                                </td>
209
                                <td data-order="[% s.time | html %]">
210
                                    <label for="result[% s.id | html %]">
211
                                        [% s.time |$KohaDates  with_hours => 1 %]
212
                                    </label>
213
                                </td>
214
                                <td><a href="/cgi-bin/koha/opac-authorities-home.pl?[% s.query_cgi | $raw %]">[% s.query_desc | html %]</a></td>
215
                                <td>[% s.total | html %]</td>
216
                                <td></td>
217
                            </tr>
218
                        [% END %]
219
                    </tbody>
220
                </table>
221
                <input type="submit" class="btn btn-danger remove-selected" value="Remove selected searches">
222
            </form>
223
        [% END # / IF ( current_authority_searches ) %]
224
    </div> <!-- / #current_authority -->
225
    <hr />
226
    <div id="previous_authority">
227
        [% IF ( previous_authority_searches ) %]
228
            <h2>Previous sessions</h2>
229
            <form action="/cgi-bin/koha/opac-search-history.pl" method="post">
230
                <legend class="sr-only">Toolbar control</legend>
231
                [% INCLUDE 'toolbar_controls' %]
232
                <input type="hidden" name="action" value="delete" />
233
                <table class="historyt table table-bordered table-striped">
234
                    <caption class="sr-only">Previous sessions</caption>
235
                    <thead>
236
                        <tr>
237
                            <th></th>
238
                            <th>Date</th>
239
                            <th>Search</th>
240
                            <th>Results</th>
241
                            <th></th>
242
                        </tr>
243
                    </thead>
244
                    <tbody>
245
                        [% FOREACH s IN previous_authority_searches %]
246
                            <tr>
247
                                <td class="selectcol">
248
                                    <input type="checkbox" name="id" value="[% s.id | html %]" id="result[% s.id | html %]" />
249
                                </td>
250
                                <td data-order="[% s.time | html %]">
251
                                    <label for="result[% s.id | html %]">
252
                                        [% s.time |$KohaDates  with_hours => 1 %]
253
                                    </label>
254
                                </td>
255
                                <td><a href="/cgi-bin/koha/opac-authorities-home.pl?[% s.query_cgi | $raw %]">[% s.query_desc | html %]</a></td>
256
                                <td>[% s.total | html %]</td>
257
                                <td></td>
258
                            </tr>
259
                        [% END %]
260
                    </tbody>
261
                </table>
262
                <input type="submit" class="btn btn-danger remove-selected" value="Remove selected searches">
263
            </form>
264
        [% END # / IF ( previous_authority_searches )%]
265
    </div>
266
267
    [% IF !current_authority_searches && !previous_authority_searches %]
268
        <p>Your authority search history is empty.</p>
269
    [% END %]
270
[% END %]
271
263
[% INCLUDE 'opac-bottom.inc' %]
272
[% INCLUDE 'opac-bottom.inc' %]
264
273
265
[% BLOCK toolbar_controls %]
274
[% BLOCK toolbar_controls %]
266
- 

Return to bug 33894