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

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

Return to bug 33894