Bug 35253

Summary: Make materials specified note easier to customize
Product: Koha Reporter: Lucas Gass (lukeg) <lucas>
Component: CirculationAssignee: Lucas Gass (lukeg) <lucas>
Status: RESOLVED FIXED QA Contact: Katrin Fischer <katrin.fischer>
Severity: enhancement    
Priority: P5 - low CC: david, fridolin.somers, gmcharlt, kebliss, kyle.m.hall, martin.renvoize, pedro.amorim
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
This enhancement adds classes to the materials specified messages that are displayed when checking out and checking in an item, when there is a value for an item in 952$3. The new classes available for customizing IntranetUserCSS are mats_spec_label and mats_spec_message. Example CSS customization: ``` .mats_spec_label { color: white; background: purple; } .mats_spec_message { color: white; background: green; } ```
Version(s) released in:
23.11.00,23.05.06
Circulation function:
Bug Depends on:    
Bug Blocks: 36074    
Attachments: Bug 35253: Add classes to materials specfied message on check in and checkout
Bug 35253: Add classes to materials specfied message on check in and checkout
Bug 35253: Add classes to materials specfied message on check in and checkout

Description Lucas Gass (lukeg) 2023-11-03 17:34:59 UTC
Some libraries like a more customized materials specified note. If we added some extra classes to the note it would be much easier to do so.
Comment 1 Lucas Gass (lukeg) 2023-11-03 17:51:39 UTC
Created attachment 158360 [details] [review]
Bug 35253: Add classes to materials specfied message on check in and checkout

To test:
1. APPLY PATCH
2. Add a materials specified message to an item. ( 952$3 )
3. Add the following CSS to your IntranetUserCSS:

    .mats_spec_label { color: white; background: purple;  }
    .mats_spec_message { color: white; background: green; }

4. Checkout that item. Notice the message should be green and the label (Note about the accompanying materials:) should be purple.
5. Check in that item. Notice the message should be green and the label (Note about the accompanying materials:) should be purple.
Comment 2 David Nind 2023-11-04 21:25:48 UTC
Created attachment 158398 [details] [review]
Bug 35253: Add classes to materials specfied message on check in and checkout

To test:
1. APPLY PATCH
2. Add a materials specified message to an item. ( 952$3 )
3. Add the following CSS to your IntranetUserCSS:

    .mats_spec_label { color: white; background: purple;  }
    .mats_spec_message { color: white; background: green; }

4. Checkout that item. Notice the message should be green and the label (Note about the accompanying materials:) should be purple.
5. Check in that item. Notice the message should be green and the label (Note about the accompanying materials:) should be purple.

Signed-off-by: David Nind <david@davidnind.com>
Comment 3 Katrin Fischer 2023-11-05 13:16:50 UTC
Created attachment 158472 [details] [review]
Bug 35253: Add classes to materials specfied message on check in and checkout

To test:
1. APPLY PATCH
2. Add a materials specified message to an item. ( 952$3 )
3. Add the following CSS to your IntranetUserCSS:

    .mats_spec_label { color: white; background: purple;  }
    .mats_spec_message { color: white; background: green; }

4. Checkout that item. Notice the message should be green and the label (Note about the accompanying materials:) should be purple.
5. Check in that item. Notice the message should be green and the label (Note about the accompanying materials:) should be purple.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 4 Tomás Cohen Arazi (tcohen) 2023-11-08 14:43:05 UTC
Pushed to master for 23.11.

Nice work everyone, thanks!
Comment 5 Fridolin Somers 2023-11-10 20:50:13 UTC
Small useful enhancement, I choose to backport

Pushed to 23.05.x for 23.05.06