From 317f29a00d879dff8c151e3f4ae76365aa3e17bf Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Fri, 12 Apr 2019 11:18:50 +0200 Subject: [PATCH] Bug 18823: Add pod for UpdateMarcTimestamp and template filters --- C4/Biblio.pm | 4 ++-- koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 413179b..1d8b3c3 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -3266,9 +3266,9 @@ sub _koha_delete_biblio_metadata { =head1 UNEXPORTED FUNCTIONS -=head2 Update005Time +=head2 UpdateMarcTimestamp - &Update005Time( $record ); + &UpdateMarcTimestamp( $record ); Updates the 005 timestamp of the given record to the current time. diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc index 2297d69..fb6255a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc @@ -41,8 +41,8 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr checked: false, }, [%- FOREACH batch = editable_batches -%] - 'batch:[% batch.import_batch_id %]': { - name: _("Batch: ") + `[% batch.file_name %]`, + 'batch:[% batch.import_batch_id | $raw %]': { + name: _("Batch: ") + `[% batch.file_name | html %]`, recordtype: 'biblio', checked: false, }, @@ -324,8 +324,8 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr var editable_batches = { [%- FOREACH batch = editable_batches -%] - [% batch.import_batch_id %]: { - 'name': `[% batch.file_name %]`, + [% batch.import_batch_id | $raw %]: { + 'name': `[% batch.file_name | html %]`, }, [%- END -%] }; @@ -804,7 +804,7 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr $( document ).on( 'change', 'input.save-toggle-target', function() { var target_id = $( this ).data('target-id'); Preferences.user.selected_save_targets[target_id] = this.checked; - Preferences.Save( [% loggelogged_in_user.borrowernumber %] ); + Preferences.Save( [% loggelogged_in_user.borrowernumber | $raw %] ); } ); break; case 'selected_search_targets': -- 2.7.4