Bug 33876

Summary: item-note-nonpublic and item-note-public are difficult to customize in the checkout table
Product: Koha Reporter: Lucas Gass (lukeg) <lucas>
Component: CirculationAssignee: Lucas Gass (lukeg) <lucas>
Status: CLOSED FIXED QA Contact: Katrin Fischer <katrin.fischer>
Severity: enhancement    
Priority: P5 - low CC: fridolin.somers, gmcharlt, kyle.m.hall
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
23.11.00,23.05.04,22.11.11
Circulation function:
Attachments: Bug 33876: Add class for styling
Bug 33876: Add class for styling
Bug 33876: Add class for styling
Bug 33876: Add class for styling

Description Lucas Gass (lukeg) 2023-05-31 22:30:08 UTC
The item-note-nonpublic item-note-public elements in the checkout table are both prepended with a '-' when they are displayed. However those dashes are outside of any HTML element, making them hard to style.

We should either remove them or put them inside of HTML element.
Comment 1 Lucas Gass (lukeg) 2023-05-31 22:41:18 UTC
Created attachment 151891 [details] [review]
Bug 33876: Add class for styling

To test:
1. Checkout and item that has a public and nonpublic note.
2. In the checkout table ( Title column ) notice the notes display. If you use the browser dev tools to inspect you'll notice a "-" outside of any HTML element.
3. Apply patch.
4. See the '-' is now inside of a html element with class of seperator.
Comment 2 Sam Lau 2023-06-01 16:20:58 UTC
Created attachment 151949 [details] [review]
Bug 33876: Add class for styling

To test:
1. Checkout and item that has a public and nonpublic note.
2. In the checkout table ( Title column ) notice the notes display. If you use the browser dev tools to inspect you'll notice a "-" outside of any HTML element.
3. Apply patch.
4. See the '-' is now inside of a html element with class of seperator.

Signed-off-by: Sam Lau <samalau@gmail.com>
Comment 3 Katrin Fischer 2023-06-08 13:09:54 UTC
Hi Lucas,

all for this change, but some small notes:

* One of the new classes is "seperator", there is a small typo there, as it should be "separator", but that would make it collide with the class in the XSLT and cause some unintended side-effects. Maybe something not used yet?
Comment 4 Lucas Gass (lukeg) 2023-06-13 20:38:39 UTC
Created attachment 152326 [details] [review]
Bug 33876: Add class for styling

To test:
1. Checkout and item that has a public and nonpublic note.
2. In the checkout table ( Title column ) notice the notes display. If you use the browser dev tools to inspect you'll notice a "-" outside of any HTML element.
3. Apply patch.
4. See the '-' is now inside of a html element with class of seperator.

Signed-off-by: Sam Lau <samalau@gmail.com>
Comment 5 Lucas Gass (lukeg) 2023-06-13 20:39:58 UTC
> * One of the new classes is "seperator", there is a small typo there, as it
> should be "separator", but that would make it collide with the class in the
> XSLT and cause some unintended side-effects. Maybe something not used yet?

Changed it to 'divider-dash'. Keeping Sam's sign-off line.
Comment 6 Marcel de Rooy 2023-09-08 09:12:43 UTC
Created attachment 155381 [details] [review]
Bug 33876: Add class for styling

To test:
1. Checkout and item that has a public and nonpublic note.
2. In the checkout table ( Title column ) notice the notes display. If you use the browser dev tools to inspect you'll notice a "-" outside of any HTML element.
3. Apply patch.
4. See the '-' is now inside of a html element with class of seperator.

Signed-off-by: Sam Lau <samalau@gmail.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 7 Tomás Cohen Arazi (tcohen) 2023-09-18 15:03:50 UTC
Pushed to master for 23.11.

Nice work everyone, thanks!
Comment 8 Fridolin Somers 2023-09-18 20:57:32 UTC
Nice small enhancement, I choose to backport

Pushed to 23.05.x for 23.05.04
Comment 9 Matt Blenkinsop 2023-10-12 16:00:45 UTC
Nice work everyone!

Pushed to oldstable for 22.11.x