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

Martin Renvoize (ashimema) <martin.renvo...@openfifth.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #180668|0                           |1
        is obsolete|                            |

--- Comment #3 from Martin Renvoize (ashimema) 
<martin.renvo...@openfifth.co.uk> ---
Created attachment 182189
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=182189&action=edit
Bug 39560: For authorities, hidded fields (but present in the record) will be
lost when editing and saving such a record

If a subfield is present in the authority record, but this subfield is
marked as 'Hide all', then if you edit and save such a record, the
data from hidden fields wil be lost forever.  This behavior differs
from bibliographic records editor, when even if a subfield is hidden
(not active) in the editor it will be activated and present in the
editor if present in the record.

The problem affect above all records imported from external agencies.

Test plan:
==========
1. Have any authority record. Note one present subfield (e.g. 100 $d).
2. Modify the record framework for this type of record
   (/cgi-bin/koha/admin/authtypes.pl), marking the subfield 'Hide all'.
3. Open the record in the editor and save.
4. Re-enable the subfield in the framework, marking it as 'Show all' now.
5. Reopen the record in the editor. Note that the previous content of
   the subfield you played with is gone. Enter any new value and save.
6. Apply the patch ; restart all.
7. Repeat p. 2, i.e. hide the subfield again. Open the record in
   the editor. You should see the content of the hidden field as you
   would for a bibliographic record with a subfield hidden in the editor
   but present in a record. (Note also that the content of this subfield
   is visible in record view).
8. Open the editor with an empty record (New authority) of the type
   in question. Control that the subfield is hidden (not accessible)
   for a new record.

BTW Note that the "hidden" but present subfields are visible in OPAC,
but not in the staff interface *before* applying the patch. The patch
changes nothing for OPAC.

Signed-off-by: Magnus Enger <mag...@libriotech.no>
Signed-off-by: Martin Renvoize <martin.renvo...@openfifth.co.uk>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to