From 22ee8c982bdee792bbe90a8e0b7fb12a6832030d Mon Sep 17 00:00:00 2001 From: Alex Buckley Date: Mon, 25 Sep 2017 08:00:39 +0000 Subject: [PATCH] Bug 19361 - Display the value of a MARC field in dropdown box after it is linked to an authorised value This patch displays the previously entered input of a MARC subfield (inputted before an authorised value was linked to the MARC field) in the new authorised value dropdown so that it can be resubmitted and not lost from the database. Test plan: 1. Create a record and write a value into the Edition 942$e MARC field and submit form 2. Create a new authorised value category and link it to the same Edition MARC subfield 3. Load the MARC record again and notice that the Edition field is now an empty dropdown box. Also for future reference in this test note the values in the 942$2 and 942$c dropdown boxes 4. Query the biblio_metadata table with the biblionumber of the record that you created in step 1 and notice that the value you entered in step 1 into the Edition ( [% FOREACH aval IN mv.values %] [% IF aval == mv.default %] - + [% ELSE %] - + [% IF mv.labels.$aval %] + + [% ELSIF mv.default != 'ddc' %] + + [% END %] [% END %] [% END %] [% END %] - + [% IF ( subfield_loo.repeatable ) %] @@ -713,7 +717,6 @@ function Changefwk() { [% END %] - [% END %] -- 2.1.4