[Koha-bugs] [Bug 19361] Linking an authorised value category to a field in a framework can lose data

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Sep 26 23:43:21 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19361

--- Comment #1 from Alex Buckley <alexbuckley at catalyst.net.nz> ---
Created attachment 67385
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=67385&action=edit
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 (<subfield_code="e") still exists

5. Submit the form

6. Repeat step 4 and notice that <subfield_code="e" line no longer exists
as the existing data for the edition MARC subfield has been lost by
linking a new authorised value category to the edition subfield

7. Apply patch

8. Repeat steps 1 but this time write a value into the Classification
part MARC subfield

9. Repeat step 2 but link the new authorised value category to the
Classification part MARC subfield

10. Repeat step 3 and notice that the value you wrote into the
Classification part subfield is displayed in the dropdown box (selected by
default), along with a message in
brackets informing you that this value is not an authorised value

11. Note that the other dropdown boxes 942$2 and 942$c both display the
same values as in step 3

12. Submit the form

13. Query the biblio_metadata table and notice that the
<subfield_code="h" line still exists with the value you entered  and
that was shown in the dropdown box

As this is quite a complex test plan, I have done my best to keep it as
simple as possible, however if you are confused please let me
know and I am more than happy to clarify

Sponsored-By: Catalyst IT

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list