Summary: | cannot clone subfields in marc editor, other clone/unclone weirdness | ||
---|---|---|---|
Product: | Koha | Reporter: | Cindy Murdock Ames <cmurdock> |
Component: | Cataloging | Assignee: | Chris Nighswonger <cnighswonger> |
Status: | CLOSED FIXED | QA Contact: | Bugs List <koha-bugs> |
Severity: | major | ||
Priority: | PATCH-Sent (DO NOT USE) | CC: | brendan, chris, cnighswonger, herrkandera, koha.sekjal, nengard, oleonard |
Version: | rel_3_2 | Keywords: | regression |
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | Sponsored | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: | Proposed patch |
Description
Cindy Murdock Ames
2010-06-09 17:04:08 UTC
When I tried it in Chrome in developer mode, I got this error: Uncaught TypeError: Cannot call method 'getAttribute' of undefined Owen said he gets a javascript error: "link is undefined" On further testing, the patch for 4868, makes it better, but there's still some odd behavior. You can clone the subfield, but sometimes after clicking delete it won't let you clone the subfield again. Also the delete won't always delete the subfield; it only seems to work once for me, so if you clone the subfield twice, and then try to delete them, it will only delete one but not both. Created attachment 2389 [details] [review] Proposed patch add existence test on link after subfield When the clone/unclone plus/minus were replaced with images the <span> tags were inadvertantly deleted causing the js to loose its ability to identify the clone/unclone links and properly udpate the indexes. The resulting incorrect indexes caused various weirdnesses to result when one attempted to clone/unclone subfields. The solution is to add classes to the two links and update the js to identify the links based on class. Thanks to Owen for his help in chasing this down. The patch is available here: http://git.koha-community.org/gitweb/?p=wip/koha-fbc.git;a=shortlog;h=refs/heads/k_bug_4867 Be sure to pick up the associated tidy patch before it as well. The supplied patch: http://git.koha-community.org/gitweb/?p=wip/koha-fbc.git;a=blob;f=koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl;h=084823a4544cf5fd71172757ad16dc7a957a0160;hb=0e3eb47132d61372b993dfe4e9a0b5267a32edb4 does not work for IE 7. When clicking on clone-subfield.png or delete-subfield.png the MARC editor site jumps to the bottom, but fields don't collapse/uncollapse. Changing status back to assigned (In reply to comment #6) > The supplied patch: > > http://git.koha-community.org/gitweb/?p=wip/koha-fbc.git;a=blob;f=koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl;h=084823a4544cf5fd71172757ad16dc7a957a0160;hb=0e3eb47132d61372b993dfe4e9a0b5267a32edb4 > > does not work for IE 7. When clicking on clone-subfield.png or > delete-subfield.png the MARC editor site jumps to the bottom, but fields don't > collapse/uncollapse. Testing in IE 7.0.5730.13 shows that deleting subfields works as expected, but cloning subfields does not. This is probably due to some quark with IE. Since we basically state that FF is the browser supported in the staff client, I'm not sure how much of a priority this will be. However, I'm adding Owen to the cc list in case the fix is something obvious. This is already in master |