Bug 35253 - Make materials specified note easier to customize
Summary: Make materials specified note easier to customize
Status: RESOLVED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Lucas Gass (lukeg)
QA Contact: Katrin Fischer
URL:
Keywords:
Depends on:
Blocks: 36074
  Show dependency treegraph
 
Reported: 2023-11-03 17:34 UTC by Lucas Gass (lukeg)
Modified: 2024-05-24 13:37 UTC (History)
7 users (show)

See Also:
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:


Attachments
Bug 35253: Add classes to materials specfied message on check in and checkout (2.72 KB, patch)
2023-11-03 17:51 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 35253: Add classes to materials specfied message on check in and checkout (2.77 KB, patch)
2023-11-04 21:25 UTC, David Nind
Details | Diff | Splinter Review
Bug 35253: Add classes to materials specfied message on check in and checkout (2.82 KB, patch)
2023-11-05 13:16 UTC, Katrin Fischer
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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