[Koha-bugs] [Bug 3264] New: UnCloneField() / minus button in MARC authorities editor can clear all subfields.

bugzilla-daemon at liblime.com bugzilla-daemon at liblime.com
Thu May 28 01:06:30 CEST 2009


http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3264

           Summary: UnCloneField() / minus button  in MARC authorities
                    editor can clear all subfields.
           Product: Koha
           Version: HEAD
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Templates
        AssignedTo: oleonard at myacpl.org
        ReportedBy: rch at liblime.com
   Estimated Hours: 0.0
 Change sponsored?: ---


When EDITING and existing authority record:

UnCloneField(), aka 'the minus button' should clear contents from a subfield,
and, if that subfield was not in the original record, it should remove the
input for that subfield from the DOM.  However, when editing an existing
record, the clear function incorrectly clears all subfields with data from the
record, forcing the user to reload the authority record.

Steps to reproduce:
  * load an authority record into the editor.
  * Click on the '-' button in any subfield that has saved data in it.
  * See all the data in your record disappear.

This does not happen in the biblio editor, despite being copy-paste code.
I'm also seeing some bad behavior when adding and removing subfields from the
DOM in the authorities editor that does not happen in the bibliographic editor
(again, same code).

Second issue to reproduce:
  * pick an empty subfield in your record.
  * add some text to the input.
  * Clone the subfield three consecutive times.
  * Change the text in each of your four repeatable subfields so you can tell
which one gets removed when you try to UnClone one.
  * UnClone the second subfield, and watch the first subfield disappear.

Ultimately, these functions should move to a library and not be duplicated in
the two MARC editors.


-- 
Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the Koha-bugs mailing list