From d4af0adf4562983b7d7246e922fc222785530fcb Mon Sep 17 00:00:00 2001 From: Pascal Uphaus <pascal.uphaus@gwdg.de> Date: Thu, 17 Aug 2023 11:58:24 +0000 Subject: [PATCH] Bug 34240: Added hint about having to use Koha-to-MARC mappings for Koha link in frameworks To test: 1. Go to administration > marc bibliographic framework > choose framework > marc structure choose any tag 2. go to actions and edit subfields 3. check that the koha link pulldown can not be edited => There is no hint 4. Apply patch 5. Refresh the page, the select box is replaced by text and there is a hint on how to edit Signed-off-by: Christina Fairlamb <cjf@wmu.se> --- .../prog/en/modules/admin/marc_subfields_structure.tt | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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 9c7bbdd163..7bf5363530 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 @@ -265,17 +265,10 @@ <li> <label for="kohafield[% loo.row | html %]">Koha link:</label> <!-- This select should be DISABLED; value is submitted by the following hidden input --> - <select name="kohafield_[% loo.row | html %]" id="kohafield[% loo.row | html %]" disabled> - [% FOREACH value IN loo.kohafields %] - [% IF ( value == loo.kohafield ) %] - <option value="[% value | html %]" selected="selected">[% value | html %]</option> - [% ELSE %] - <option value="[% value | html %]">[% value | html %]</option> - [% END %] - [% END %] - </select> + [% loo.kohafield | html %] <!-- Do NOT remove this next hidden input! We need it to save kohafield. --> <input type="hidden" name="kohafield_[% loo.row | html %]" value="[% loo.kohafield | html %]"/> + <div class="hint">Edit in 'Koha to MARC mapping'</div> </li> </ol> </fieldset> <!-- /.rows --> -- 2.30.2