Koha/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing-preview-slip.tt
Katrin Fischer f902041e24 Bug 21552: Use raw filter for displaying RoutingListNote
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>
2018-10-17 12:27:07 +00:00

53 lines
1.5 KiB
Text

[% USE Koha %]
[% USE raw %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Serials &rsaquo; Routing slip preview</title>
[% INCLUDE 'doc-head-close.inc' %]
<style media="print">
#ser_routing-preview-slip { min-width:0; width:auto; }
</style>
</head>
<body id="ser_routing-preview-slip" class="ser">
<div class="container-fluid">
<table>
<tr>
<td colspan="2"><h3>[% libraryname | html %]</h3></td>
</tr>
<tr>
<td colspan="2"><b>Title:</b> [% title | html %]<br />[% issue | html %]</td>
</tr>
<tr>
<td><b>Name</b></td>
<td><b>Date due</b></td>
</tr>
[% FOREACH memberloo IN memberloop %]
<tr>
<td>[% memberloo.name | html %]</td>
<td>&nbsp;</td>
</tr>
[% END %]
</table>
<div id="routingnotes">
<p id="generalroutingnote">[% Koha.Preference('RoutingListNote') | $raw %]</p>
<p id="routingnote">[% routingnotes | html %]</p>
</div>
<div id="closewindow" class="noprint"><a class="btn btn-default btn-default" id="print_slip" href="#"><i class="fa fa-print"></i> Print</a> <a class="btn btn-default btn-default close" href="#">Close</a></div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript">
$(document).ready(function(){
$("#print_slip").on("click",function(e){
e.preventDefault();
window.print();
self.close();
});
});
</script>
[% END %]
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]