From 08530cd5390675ce319bde40ee9a6142dd57e429 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sun, 30 Aug 2020 22:31:32 +0200 Subject: [PATCH] Bug 26007: Add/fix warning for changes to the Koha to MARC mappings MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=utf-8 There are 2 pages where one can change the Koha to MARC mappings in Koha: - When editing the configuration for a MARC subfield - On administration > Koha 2 MARC mappings This patch adds a warning that the batchRebuildBiblioTables script must be run if the mapping is changed. To test: - Go to Administration > MARC bibliographic frameworks > Any framework > MARC structure > Any field > Edit subfield - ÃThe hint about the batchRebuildBiblioTables will be on "Link" instead of "Koha Link". This is wrong as the link doesn't care about the mappings. - Go to Administration > Koha to MARC mappings - Verify there is no hint - Apply patch - Verify both pages now show an appropriate message Signed-off-by: David Nind Signed-off-by: Marcel de Rooy This commit message is not completely accurate. See the follow-ups. --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt | 1 + .../prog/en/modules/admin/marc_subfields_structure.tt | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt index 8dbadc49e8..8441157450 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt @@ -19,6 +19,7 @@

Koha to MARC mapping


+
If you make any change to the mappings, you must ask your administrator to run misc/batchRebuildBiblioTables.pl.
[% IF error_add %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt index bf9c77095d..bd47cb9898 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt @@ -156,7 +156,11 @@ [% END %] (if checked, it means that the subfield is a URL and can be clicked) -
  • (e.g., Title or Local-Number) NOTE: If you change this value you must ask your administrator to run misc/batchRebuildBiblioTables.pl.
  • +
  • + + + (an index name, e.g. title or Local-Number) +
  • @@ -169,6 +173,7 @@ [% END %] [% END %] + (If you change this value, you must ask your administrator to run misc/batchRebuildBiblioTables.pl.)
  • -- 2.11.0