Bug 35436: Copy is not translatable in OPAC Search History
Test plan
1 Enter in OPAC Search History in a language other than English and
check that Copy is not translated
2 Apply patch, restart services
3 Regenerate the templates for that language
4 Repeat step 1 and check that Copy appears now translated
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit e3f9617777
)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
ff292199a5
commit
118da7f0b3
1 changed files with 8 additions and 4 deletions
|
@ -2,6 +2,7 @@
|
||||||
[% USE Asset %]
|
[% USE Asset %]
|
||||||
[% USE Koha %]
|
[% USE Koha %]
|
||||||
[% USE KohaDates %]
|
[% USE KohaDates %]
|
||||||
|
[% USE TablesSettings %]
|
||||||
[% USE AdditionalContents %]
|
[% USE AdditionalContents %]
|
||||||
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
|
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
|
||||||
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
|
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
|
||||||
|
@ -284,16 +285,18 @@
|
||||||
|
|
||||||
[% BLOCK jsinclude %]
|
[% BLOCK jsinclude %]
|
||||||
[% INCLUDE 'datatables.inc' %]
|
[% INCLUDE 'datatables.inc' %]
|
||||||
|
[% INCLUDE 'columns_settings.inc' %]
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
var MSG_CONFIRM_DELETE_HISTORY = _("Are you sure you want to delete selected search history entries?");
|
var MSG_CONFIRM_DELETE_HISTORY = _("Are you sure you want to delete selected search history entries?");
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
// We show table ordered by descending dates by default
|
// We show table ordered by descending dates by default
|
||||||
// (so that the more recent query is shown first)
|
// (so that the more recent query is shown first)
|
||||||
$(".historyt").dataTable($.extend(true, {}, dataTablesDefaults, {
|
var columns_settings = []; // Empty because there are no columns we want to be configurable
|
||||||
|
var table = KohaTable(".historyt", {
|
||||||
"order": [[ 1, "desc" ]],
|
"order": [[ 1, "desc" ]],
|
||||||
"dom": '<"top"<"table_entries"><"table_controls"fB>>t',
|
"dom": '<"top"<"table_entries"><"table_controls"fB>>t',
|
||||||
"columnDefs": [
|
"aoColumnDefs": [
|
||||||
{ "targets": [ 0 ], "sortable": false, "searchable": false },
|
{ "targets": [ 0 ], "sortable": false, "searchable": false },
|
||||||
{ "className": 'dtr-control', "orderable": false, "targets": -1 }
|
{ "className": 'dtr-control', "orderable": false, "targets": -1 }
|
||||||
],
|
],
|
||||||
|
@ -305,11 +308,12 @@
|
||||||
"responsive": {
|
"responsive": {
|
||||||
"details": { "type": 'column',"target": -1 }
|
"details": { "type": 'column',"target": -1 }
|
||||||
},
|
},
|
||||||
}));
|
}, columns_settings);
|
||||||
|
|
||||||
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
||||||
$(".historyt").DataTable().responsive.recalc();
|
table.DataTable().responsive.recalc();
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".CheckNone").click(function(e){
|
$(".CheckNone").click(function(e){
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var form = $(this).parents("form").get(0);
|
var form = $(this).parents("form").get(0);
|
||||||
|
|
Loading…
Reference in a new issue