From de954a995fe720e0dd972f0102dd38f0480e44e4 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 11 Jan 2021 14:08:35 +0000 Subject: [PATCH] Bug 24108: (QA follow-up) Adjust wording and use perl for update file Signed-off-by: David Nind Signed-off-by: Katrin Fischer --- ...bug_24108-add_SaveRecordbyControlNumber_syspref.sql | 10 +++++++++- .../prog/en/modules/admin/preferences/cataloguing.pref | 8 ++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug_24108-add_SaveRecordbyControlNumber_syspref.sql b/installer/data/mysql/atomicupdate/bug_24108-add_SaveRecordbyControlNumber_syspref.sql index fe5e48798e..de105c3d54 100644 --- a/installer/data/mysql/atomicupdate/bug_24108-add_SaveRecordbyControlNumber_syspref.sql +++ b/installer/data/mysql/atomicupdate/bug_24108-add_SaveRecordbyControlNumber_syspref.sql @@ -1 +1,9 @@ -NSERT IGNORE INTO systempreferences (variable, value, explanation, options, type) VALUES ('SaveRecordbyControlNumber', '0', 'If set, advanced editor (Rancor) will use the control number field to populate the name of the save file, otherwise it uses the biblionumber.', NULL, 'YesNo'); +$DBversion = 'XXX'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences + (variable, value, explanation, options, type) VALUES + ('SaveRecordbyControlNumber', '0', 'If set, advanced cataloging editor will use the control number field to populate the name of the save file, otherwise it uses the biblionumber.', NULL, 'YesNo') + }); + NewVersion( $DBversion, 24108, "Add system preference SaveRecordbyControlNumber"); +} diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref index 9988ae47d7..9514784262 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref @@ -28,14 +28,14 @@ Cataloging: - "
NOTE:" - Currently does not include support for UNIMARC or NORMARC fixed fields. - - - "When saving in a MARC/MARCXML file in the advanced editor (Rancor), use the" + - "When saving in a MARC/MARCXML file in the advanced cataloging editor, use the" - pref: SaveRecordbyControlNumber default: 0 choices: yes: Enable - yes: "Save by controlnumber" - no: "Save by biblionumber" - - "in the file name. Default is by biblionumer." + yes: "control number" + no: "record number" + - "in the file name. The default is to use the bibliographic record number." Spine labels: - - When using the quick spine label printer, -- 2.20.1