Koha/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing-preview.tmpl
J. David Bavousett a5bd87735e (Bug 3402) Serials issue name not escaped when passed forward to routing slip
The issue descriptor was not being escaped before being passed on to the
routing slip, causing truncation.  It's truly impossible to know for sure
what will be there, so uri_escape-ing seemed the best way to ensure that
it gets handed forward and makes it all the way to the printable slip.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-07-27 20:45:11 -04:00

58 lines
1.9 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Serials</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/javascript">
<!--
function print_slip(subscriptionid,issue){
var myurl = 'routing-preview.pl?ok=1&subscriptionid='+subscriptionid+'&issue='+issue;
window.open(myurl,'PrintSlip','width=500,height=500,toolbar=no,scrollbars=yes');
window.location.href='serials-home.pl';
}
//-->
</script>
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!-- TMPL_INCLUDE NAME="serials-search.inc" -->
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<h1>Preview Routing List</h1>
<form method="post" action="routing-preview.pl">
<input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR NAME="subscriptionid" -->" />
<p><b>Serial Title:</b> <!-- TMPL_VAR NAME="title" escape="html" --></p>
<p><b>Issue:</b> <!-- TMPL_VAR NAME="issue" --></p>
<table border="0" cellspacing="0" cellpadding="0">
<tr><td style="padding-top: 5px;"><b>List Member:</b></td>
<td><table cellspacing="0" cellpadding="0" border="0" class="collapse">
<tr><th>Name</th>
<th>Location</th></tr>
<!-- TMPL_LOOP NAME="memberloop" -->
<tr><td><!-- TMPL_VAR NAME="name" --></td>
<td><!-- TMPL_VAR NAME="location" --></td></tr>
<!-- /TMPL_LOOP -->
</table></td></tr>
<tr><td><b>Notes:</b></td>
<td><!-- TMPL_VAR NAME="routingnotes" --></td></tr>
</table>
<p>
<input type="submit" name="ok" class="button" value="OK, Preview Routing Slip" onclick="print_slip(<!-- TMPL_VAR NAME="subscriptionid" -->,'<!-- TMPL_VAR NAME="issue_escaped" -->'); return false" />
<input type="submit" name="edit" class="button" value="Edit" />
<input type="submit" name="delete" class="button" value="Delete" /></p>
</form>
</div>
</div>
<div class="yui-b">
<!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->