f902041e24
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>
53 lines
1.5 KiB
Text
53 lines
1.5 KiB
Text
[% USE Koha %]
|
|
[% USE raw %]
|
|
[% SET footerjs = 1 %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Serials › 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> </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 %]
|