[Bug 35383] New: Dragging and dropping subfield of repided tags doesn't work.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383 Bug ID: 35383 Summary: Dragging and dropping subfield of repided tags doesn't work. Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: trivial Priority: P5 - low Component: Cataloging Assignee: slavashishkin@gmail.com Reporter: slavashishkin@gmail.com QA Contact: testopia@bugs.koha-community.org CC: m.de.rooy@rijksmuseum.nl This does not work when editing an existing record or when creating a new record in basic editor mode. To test: 1. Open any Biblio and edit that record. (select "Edit record" from the "Edit" drop-down menu). 2. Repeat any tag that may be repeated and has more than one subfield (e.g. 050 or 082) (click "Repeat this tag") 3. that when you try dragging a subfield of the new repeated tag, the entire new tag moves. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383 Slava Shishkin <slavashishkin@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Dragging and dropping |Dragging and dropping |subfield of repided tags |subfield of repeated tags |doesn't work. |doesn't work. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383 Slava Shishkin <slavashishkin@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383 --- Comment #1 from Slava Shishkin <slavashishkin@gmail.com> --- Created attachment 159196 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=159196&action=edit Bug 35383: Make subfields of repeated tags draggable To reproduce: 1. Open any biblio and edit that record. (select "Edit record" from the "Edit" drop-down menu). 2. Repeat any tag that may be repeated and has more than one subfield (e.g. 050 or 082) (click "Repeat this tag") 3. Try dragging a subfield of the new repeated tag Apply the patch and make sure dragging a subfield works well. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383 Phil Ringnalda <phil@chetcolibrary.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #159196|0 |1 is obsolete| | --- Comment #2 from Phil Ringnalda <phil@chetcolibrary.org> --- Created attachment 159202 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=159202&action=edit Bug 35383: Make subfields of repeated tags draggable To reproduce: 1. Open any biblio and edit that record. (select "Edit record" from the "Edit" drop-down menu). 2. Repeat any tag that may be repeated and has more than one subfield (e.g. 050 or 082) (click "Repeat this tag") 3. Try dragging a subfield of the new repeated tag Apply the patch and make sure dragging a subfield works well. Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383 Phil Ringnalda <phil@chetcolibrary.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off CC| |phil@chetcolibrary.org -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |m.de.rooy@rijksmuseum.nl |y.org | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA Patch complexity|--- |Trivial patch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #159202|0 |1 is obsolete| | --- Comment #3 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 159233 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=159233&action=edit Bug 35383: Make subfields of repeated tags draggable To reproduce: 1. Open any biblio and edit that record. (select "Edit record" from the "Edit" drop-down menu). 2. Repeat any tag that may be repeated and has more than one subfield (e.g. 050 or 082) (click "Repeat this tag") 3. Try dragging a subfield of the new repeated tag Apply the patch and make sure dragging a subfield works well. Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383 --- Comment #4 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Thanks for your patch, Slava. My only concern would be the assumption that Sortable is defined. In the current codebase this seems to be the case (called from authorities.tt or addbiblio). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Dragging and dropping |Dragging and dropping |subfield of repeated tags |subfield of repeated tags |doesn't work. |doesn't work -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383 --- Comment #5 from Slava Shishkin <slavashishkin@gmail.com> --- (In reply to Marcel de Rooy from comment #4) thanks, that makes a sense, I can wrap up it in "if", if (typeof Sortable !== 'undefined') { $(clone).find("ul.sortable_subfield").each((i, e) => { Sortable.create(e, { animation: 150, }); }); } but the best then is to make a callback option for CloneSubfield and leave Sortable.create code in files where it resides, but that also leads to refactoring of onclick="CloneSubfield... to modern way how we doing that in our codebase by moving that listener to JS document ready block Marcel, what do you think? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383 Slava Shishkin <slavashishkin@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |35425 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35425 [Bug 35425] Sortable prevents mouse selection of text inside child input/textarea elements -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383 --- Comment #6 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Slava Shishkin from comment #5)
(In reply to Marcel de Rooy from comment #4)
thanks, that makes a sense,
I can wrap up it in "if",
if (typeof Sortable !== 'undefined') { $(clone).find("ul.sortable_subfield").each((i, e) => { Sortable.create(e, { animation: 150, }); }); }
but the best then is to make a callback option for CloneSubfield and leave Sortable.create code in files where it resides,
but that also leads to refactoring of onclick="CloneSubfield... to modern way how we doing that in our codebase by moving that listener to JS document ready block
Marcel, what do you think?
You are welcome to improve it. Please do so on a new report. I think that this patch can go in now in its current form. Your commitment is appreciated. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383 --- Comment #7 from Slava Shishkin <slavashishkin@gmail.com> --- (In reply to Marcel de Rooy from comment #6)
You are welcome to improve it. Please do so on a new report. I think that this patch can go in now in its current form. Your commitment is appreciated.
Ok, then I'll leave it in its current state and start working on refactoring. I will create a new ticket for that. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to master Version(s)| |24.05.00 released in| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383 --- Comment #8 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Pushed for 24.05! Well done everyone, thank you! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to master |Pushed to stable Version(s)|24.05.00 |24.05.00,23.11.01 released in| | CC| |fridolin.somers@biblibre.co | |m --- Comment #9 from Fridolin Somers <fridolin.somers@biblibre.com> --- Pushed to 23.11.x for 23.11.01 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com Status|Pushed to stable |RESOLVED Resolution|--- |FIXED --- Comment #10 from Lucas Gass <lucas@bywatersolutions.com> --- Cannot reproduce the problem in 23.05.x, no backport. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383 Andrii Nugged <nugged@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=36388 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383 Andrii Nugged <nugged@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=36324 -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org