From f5aa165c6e3fb2dce71c3943149b0a2fef611ca5 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=utf8 Content-Transfer-Encoding: 8bit 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. Signed-off-by: Jonathan Druart (cherry picked from commit 54941f8dc558911e4222f7325609839b7c6bae81) Signed-off-by: Lucas Gass --- .../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 7736f1f248..669a6448f5 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 @@ -151,7 +151,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) +
  • @@ -164,6 +168,7 @@ [% END %] [% END %] + (If you change this value, you must ask your administrator to run misc/batchRebuildBiblioTables.pl.)
  • -- 2.39.5