The RoutingListNote system preference works like other prefs
allowing you to insert your own content on the routling list
template using HTML. The default text even uses HTML, so it
looks broken without this patch.
To test:
- Add a subscription
- Add a new routing list to it
- Add some patrons to it
- Save
- preview routing list
- Verify that the note shows and is formatted correctly.
Signed-off-by: Pierre-Marc Thibault <pierre-marc.thibault@inLibro.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
+[% USE Koha %]
+[% USE raw %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Serials › Routing slip preview</title>
</table>
<div id="routingnotes">
- <p id="generalroutingnote">[% generalroutingnote | html %]</p>
+ <p id="generalroutingnote">[% Koha.Preference('RoutingListNote') | $raw %]</p>
<p id="routingnote">[% routingnotes | html %]</p>
</div>
subscriptionid => $subscriptionid,
memberloop => $memberloop,
routingnotes => $routingnotes,
- generalroutingnote => C4::Context->preference('RoutingListNote'),
hasRouting => check_routing($subscriptionid),
(uc(C4::Context->preference("marcflavour"))) => 1
);