Bug 26007: Add/fix warning for changes to the Koha to MARC mappings
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 <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
This commit message is not completely accurate. See the follow-ups.
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 54941f8dc5)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
6347ad75c8
commit
f5aa165c6e
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
<h1>Koha to MARC mapping</h1>
|
||||
<br/>
|
||||
<div class="dialog message">If you make any change to the mappings, you must ask your administrator to run misc/batchRebuildBiblioTables.pl.</div>
|
||||
<form action="/cgi-bin/koha/admin/koha2marclinks.pl" method="post" id="koha2marc">
|
||||
|
||||
[% IF error_add %]
|
||||
|
|
|
|||
|
|
@ -151,7 +151,11 @@
|
|||
[% END %]
|
||||
(if checked, it means that the subfield is a URL and can be clicked)
|
||||
</li>
|
||||
<li><label for="link[% loo.row | html %]">Link:</label><input type="text" id="link[% loo.row | html %]" name="link" value="[% loo.link | html %]" size="10" maxlength="80" /> (e.g., Title or Local-Number) <span class="error"><em>NOTE: If you change this value you must ask your administrator to run misc/batchRebuildBiblioTables.pl.</em></span></li>
|
||||
<li>
|
||||
<label for="link[% loo.row | html %]">Link:</label>
|
||||
<input type="text" id="link[% loo.row | html %]" name="link" value="[% loo.link | html %]" size="10" maxlength="80" />
|
||||
(an index name, e.g. title or Local-Number)
|
||||
</li>
|
||||
<li>
|
||||
<label for="kohafield[% loo.row | html %]">Koha link:</label>
|
||||
<!-- This select should be DISABLED; value is submitted by the following hidden input -->
|
||||
|
|
@ -164,6 +168,7 @@
|
|||
[% END %]
|
||||
[% END %]
|
||||
</select>
|
||||
<span class="error">(If you change this value, you must ask your administrator to run misc/batchRebuildBiblioTables.pl.)</span>
|
||||
<!-- Do NOT remove this next hidden input! We need it to save kohafield. -->
|
||||
<input type="hidden" name="kohafield" value="[% loo.kohafield | html %]"/>
|
||||
</li>
|
||||
|
|
|
|||
Loading…
Reference in New Issue