Description
Marcel de Rooy
2020-02-13 08:42:13 UTC
Created attachment 98794 [details] [review] Bug 24649: Cloning item subfields misses a <li> tag Instead of the parentNode (which is a div), we need the parent of the div (which is a li). So a simple fix. Test plan: Mark item subfield URI repeatable. Clone the subfield. Notice the difference between patch applied or not applied. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Created attachment 98795 [details]
Spacing between cloned subfields
Created attachment 98797 [details] [review] Bug 24649: Fix missing <li> tag on item editor for cloned subfield Instead of the parentNode (which is a div), we need the parent of the div (which is a li). So a simple fix. Test plan: To see the difference, test first without patch applied: Mark item subfield, say URI, as repeatable. Clone that subfield in item editor. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Created attachment 98798 [details] [review] Bug 24649: Fix missing <li> tag on batch mod item for cloned subfield Same problem as previous patch. Test plan: Go to Tools/Batch item modification. Test cloning subfield on batchMod-edit. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Left one small thing on serials/serials-edit. Cloning on serial edit works, but the spacing between the original and cloned subfield is different from normal. See the attached image. Owen: Any chance to add a patch here for styling? Marcel I don't think it's a styling issue. I think serials-edit.tt needs the same correction you made to additem.tt and batchMod-edit.tt. Created attachment 98829 [details] [review] Bug 24649: Fix two other missing <li> tags for cloned subfields Same problem as previous patch in Batch item modification as well as serial-edit.pl. Test plan: [1] Go to Tools/Batch item modification. Test cloning subfield on batchMod-edit. [2] Go to a serial with "Create item when receiving". Receive an issue. Click add item. Test cloning subfield. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> (In reply to Owen Leonard from comment #6) > Marcel I don't think it's a styling issue. I think serials-edit.tt needs the > same correction you made to additem.tt and batchMod-edit.tt. Thanks. You are right. Created attachment 98887 [details] [review] Bug 24649: Fix missing <li> tag on item editor for cloned subfield Instead of the parentNode (which is a div), we need the parent of the div (which is a li). So a simple fix. Test plan: To see the difference, test first without patch applied: Mark item subfield, say URI, as repeatable. Clone that subfield in item editor. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> Created attachment 98888 [details] [review] Bug 24649: Fix two other missing <li> tags for cloned subfields Same problem as previous patch in Batch item modification as well as serial-edit.pl. Test plan: [1] Go to Tools/Batch item modification. Test cloning subfield on batchMod-edit. [2] Go to a serial with "Create item when receiving". Receive an issue. Click add item. Test cloning subfield. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> Created attachment 98949 [details] [review] Bug 24649: Fix two other missing <li> tags for cloned subfields Same problem as previous patch in Batch item modification as well as serial-edit.pl. Test plan: [1] Go to Tools/Batch item modification. Test cloning subfield on batchMod-edit. [2] Go to a serial with "Create item when receiving". Receive an issue. Click add item. Test cloning subfield. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Created attachment 98958 [details] [review] Bug 24649: Fix missing <li> tag on item editor for cloned subfield Instead of the parentNode (which is a div), we need the parent of the div (which is a li). So a simple fix. Test plan: To see the difference, test first without patch applied: Mark item subfield, say URI, as repeatable. Clone that subfield in item editor. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Created attachment 98959 [details] [review] Bug 24649: Fix two other missing <li> tags for cloned subfields Same problem as previous patch in Batch item modification as well as serial-edit.pl. Test plan: [1] Go to Tools/Batch item modification. Test cloning subfield on batchMod-edit. [2] Go to a serial with "Create item when receiving". Receive an issue. Click add item. Test cloning subfield. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> (In reply to Katrin Fischer from comment #13) > Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> > Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Thx Aleisha and Katrin Nice work everyone! Pushed to master for 20.05 Pushed to 19.11.x branch for 19.11.04 backported to 19.05.x for 19.05.09 |