Bug 30723 - Allow for notices to have custom header/footer includes
Summary: Allow for notices to have custom header/footer includes
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Notices (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on: 35285
Blocks:
  Show dependency treegraph
 
Reported: 2022-05-09 17:54 UTC by Lucas Gass (lukeg)
Modified: 2024-04-12 08:47 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Gass (lukeg) 2022-05-09 17:54:16 UTC
Some libraries like to add the same custom header/footer to many notices/slips. It would be handy if there was a way to set a custom header/footer and then call on it in each notice/slip where you'd like to have them.

That way you would not have to add the same header/footer content to each notice.
Comment 1 Katrin Fischer 2022-06-18 21:58:00 UTC
+1
Comment 2 Christopher Brannon 2023-12-28 20:16:51 UTC
+1
Comment 3 Martin Renvoize (ashimema) 2024-01-18 14:00:25 UTC
I was pointed towards this as I was starting to work on bug 35832...

Working on the code I was modernising for that lead me to a few questions.

I was thinking of using the HTML Customisations system to allow translatable blocks.. simple.

* Would we want these blocks 'always added' if they exist as html customisations... 
* or would we require them 'included' in the notice templates [% NoticeHeader %] and [% NoticeFooter %] (like how news works right now)... 
* or would we like checkboxes in the notice editor to say 'Include standard header' and 'Include standard footer'?

Do we want to also do anything to modernize the existing news functionality that allows adding news to notices/slips too as part of this effort?
Comment 4 Christopher Brannon 2024-01-18 16:21:22 UTC
Personally, I would want a dropdown for both header and footer in the notice, and be able to select which customization to include.  That way I could have more than one reusable header or footer.

Display location should be "Notice Header" or "Notice Footer" and only the headers should be selectable in the notice headers dropdown, or "None", and only footers should be selectable in the notice footers dropdown, or "None".

Hope that makes sense.
Comment 5 Christopher Brannon 2024-01-18 16:23:16 UTC
(In reply to Christopher Brannon from comment #4)
> Personally, I would want a dropdown for both header and footer in the
> notice, and be able to select which customization to include.  That way I
> could have more than one reusable header or footer.
> 
> Display location should be "Notice Header" or "Notice Footer" and only the
> headers should be selectable in the notice headers dropdown, or "None", and
> only footers should be selectable in the notice footers dropdown, or "None".
> 
> Hope that makes sense.

I should clarify:

Display location in the HTML Customization should be "Notice Header" for any custom headers or "Notice Footer" for any custom footers and only the header locations should be selectable in the notice headers dropdown, or "None", and only footer locations should be selectable in the notice footers dropdown, or "None".