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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-search-history.tt (-11 / +42 lines)
Lines 73-80 Link Here
73
                                            <tbody>
73
                                            <tbody>
74
                                                [% FOREACH s IN current_biblio_searches %]
74
                                                [% FOREACH s IN current_biblio_searches %]
75
                                                    <tr>
75
                                                    <tr>
76
                                                        <td class="selectcol"><input type="checkbox" name="id" value="[% s.id | html %]" /></td>
76
                                                        <td class="selectcol">
77
                                                        <td><span title="[% s.time | html %]">[% s.time |$KohaDates  with_hours => 1 %]</span></td>
77
                                                            <input type="checkbox" name="id" value="[% s.id | html %]" id="result[% s.id | html %]" />
78
                                                        </td>
79
                                                        <td>
80
                                                            <label for="result[% s.id | html %]">
81
                                                                <span title="[% s.time | html %]">[% s.time |$KohaDates  with_hours => 1 %]</span>
82
                                                            </label>
83
                                                        </td>
78
                                                        <td>
84
                                                        <td>
79
                                                            <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">
85
                                                            <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">
80
                                                                <i class="fa fa-rss rsssearchicon" aria-hidden="true" title="Subscribe to this search"></i>
86
                                                                <i class="fa fa-rss rsssearchicon" aria-hidden="true" title="Subscribe to this search"></i>
Lines 90-96 Link Here
90
                                    </form>
96
                                    </form>
91
                                [% END # IF ( current_biblio_searches ) %]
97
                                [% END # IF ( current_biblio_searches ) %]
92
                            </div> <!-- / #current_biblio -->
98
                            </div> <!-- / #current_biblio -->
93
99
                            <hr />
94
                            <div id="previous_biblio">
100
                            <div id="previous_biblio">
95
                                [% IF ( previous_biblio_searches ) %]
101
                                [% IF ( previous_biblio_searches ) %]
96
                                    <h2>Previous sessions</h2>
102
                                    <h2>Previous sessions</h2>
Lines 110-117 Link Here
110
                                            <tbody>
116
                                            <tbody>
111
                                            [% FOREACH s IN previous_biblio_searches %]
117
                                            [% FOREACH s IN previous_biblio_searches %]
112
                                                <tr>
118
                                                <tr>
113
                                                    <td class="selectcol"><input type="checkbox" name="id" value="[% s.id | html %]" /></td>
119
                                                    <td class="selectcol">
114
                                                    <td><span title="[% s.time | html %]">[% s.time |$KohaDates  with_hours => 1 %]</span></td>
120
                                                        <input type="checkbox" name="id" value="[% s.id | html %]" id="result[% s.id | html %]" />
121
                                                    </td>
122
                                                    <td>
123
                                                        <label for="result[% s.id | html %]">
124
                                                            <span title="[% s.time | html %]">[% s.time |$KohaDates  with_hours => 1 %]</span>
125
                                                        </label>
126
                                                    </td>
115
                                                    <td>
127
                                                    <td>
116
                                                        <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">
128
                                                        <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">
117
                                                            <i class="fa fa-rss rsssearchicon" aria-hidden="true" title="Subscribe to this search"></i>
129
                                                            <i class="fa fa-rss rsssearchicon" aria-hidden="true" title="Subscribe to this search"></i>
Lines 154-161 Link Here
154
                                            <tbody>
166
                                            <tbody>
155
                                                [% FOREACH s IN current_authority_searches %]
167
                                                [% FOREACH s IN current_authority_searches %]
156
                                                    <tr>
168
                                                    <tr>
157
                                                        <td class="selectcol"><input type="checkbox" name="id" value="[% s.id | html %]" /></td>
169
                                                        <td class="selectcol">
158
                                                        <td><span title="[% s.time | html %]">[% s.time |$KohaDates  with_hours => 1 %]</span></td>
170
                                                            <input type="checkbox" name="id" value="[% s.id | html %]" id="result[% s.id | html %]" />
171
                                                        </td>
172
                                                        <td>
173
                                                            <label for="result[% s.id | html %]">
174
                                                                <span title="[% s.time | html %]">[% s.time |$KohaDates  with_hours => 1 %]</span>
175
                                                            </label>
176
                                                        </td>
159
                                                        <td><a href="/cgi-bin/koha/opac-authorities-home.pl?[% s.query_cgi | $raw %]">[% s.query_desc | html %]</a></td>
177
                                                        <td><a href="/cgi-bin/koha/opac-authorities-home.pl?[% s.query_cgi | $raw %]">[% s.query_desc | html %]</a></td>
160
                                                        <td>[% s.total | html %]</td>
178
                                                        <td>[% s.total | html %]</td>
161
                                                    </tr>
179
                                                    </tr>
Lines 183-190 Link Here
183
                                            <tbody>
201
                                            <tbody>
184
                                                [% FOREACH s IN previous_authority_searches %]
202
                                                [% FOREACH s IN previous_authority_searches %]
185
                                                    <tr>
203
                                                    <tr>
186
                                                        <td class="selectcol"><input type="checkbox" name="id" value="[% s.id | html %]" /></td>
204
                                                        <td class="selectcol">
187
                                                        <td><span title="[% s.time | html %]">[% s.time |$KohaDates  with_hours => 1 %]</span></td>
205
                                                            <input type="checkbox" name="id" value="[% s.id | html %]" id="result[% s.id | html %]" />
206
                                                        </td>
207
                                                        <td>
208
                                                            <label for="result[% s.id | html %]">
209
                                                                <span title="[% s.time | html %]">[% s.time |$KohaDates  with_hours => 1 %]</span>
210
                                                            </label>
211
                                                        </td>
188
                                                        <td><a href="/cgi-bin/koha/opac-authorities-home.pl?[% s.query_cgi | $raw %]">[% s.query_desc | html %]</a></td>
212
                                                        <td><a href="/cgi-bin/koha/opac-authorities-home.pl?[% s.query_cgi | $raw %]">[% s.query_desc | html %]</a></td>
189
                                                        <td>[% s.total | html %]</td>
213
                                                        <td>[% s.total | html %]</td>
190
                                                    </tr>
214
                                                    </tr>
Lines 233-242 Link Here
233
        // (so that the more recent query is shown first)
257
        // (so that the more recent query is shown first)
234
        $(".historyt").dataTable($.extend(true, {}, dataTablesDefaults, {
258
        $(".historyt").dataTable($.extend(true, {}, dataTablesDefaults, {
235
            "order": [[ 1, "desc" ]],
259
            "order": [[ 1, "desc" ]],
260
            "dom": '<"top"<"table_entries"><"table_controls"fB>>t',
236
            "columnDefs": [
261
            "columnDefs": [
237
                { "targets": [ 0 ], "sortable": false, "searchable": false },
262
                { "targets": [ 0 ], "sortable": false, "searchable": false },
238
                { "targets": [ 1 ], "type": "title-string" },
263
                { "targets": [ 1 ], "type": "title-string" },
239
            ]
264
            ],
265
            "language": {
266
                "search": "_INPUT_",
267
                "searchPlaceholder": _("Search")
268
            }
240
        }));
269
        }));
241
270
242
        [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]$('#tabs').tabs();[% END %]
271
        [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]$('#tabs').tabs();[% END %]
Lines 271-276 Link Here
271
            }
300
            }
272
            return false;
301
            return false;
273
        });
302
        });
303
        $(".remove-selected").addClass("disabled");
274
    });
304
    });
275
305
276
    function enableCheckboxActions(form){
306
    function enableCheckboxActions(form){
Lines 279-287 Link Here
279
        if ($(checkedBoxes).size()) {
309
        if ($(checkedBoxes).size()) {
280
            $(form).find(".selections").html(_("With selected searches: "));
310
            $(form).find(".selections").html(_("With selected searches: "));
281
            $(form).find(".selections-toolbar .links a").removeClass("disabled");
311
            $(form).find(".selections-toolbar .links a").removeClass("disabled");
312
            $(form).find(".remove-selected").removeClass("disabled");
282
        } else {
313
        } else {
283
            $(form).find(".selections").html(_("Select searches to: "));
314
            $(form).find(".selections").html(_("Select searches to: "));
284
            $(form).find(".selections-toolbar .links a").addClass("disabled");
315
            $(form).find(".selections-toolbar .links a").addClass("disabled");
316
            $(form).find(".remove-selected").addClass("disabled");
285
        }
317
        }
286
    }
318
    }
287
319
288
- 

Return to bug 27728