Owen Leonard
1b1972044c
This patch also includes formatting fixes and style updates. The patron search filter form is incorporated now within serials/member-search.tmpl in order to have a markup structure more suited to the pop-up.
86 lines
4 KiB
Cheetah
86 lines
4 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<title>Koha › Serials › <!-- TMPL_VAR NAME="title" escape="html" --> › <!-- TMPL_IF NAME="op" -->Create Routing List<!-- TMPL_ELSE -->Edit Routing List<!-- /TMPL_IF --></title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
<script language="javascript" type="text/javascript">
|
|
<!--
|
|
|
|
function reorder_item(sid,rid,rank){
|
|
var mylocation = 'reorder_members.pl?subscriptionid='+sid+'&routingid='+rid+'&rank='+rank;
|
|
window.location.href=mylocation;
|
|
}
|
|
|
|
function search_member(subscriptionid){
|
|
var myurl = 'member-search.pl?subscriptionid='+subscriptionid; window.open(myurl,'FindAMember','width=550,height=480,toolbar=no,scrollbars=yes');
|
|
}
|
|
|
|
//-->
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="serials-search.inc" -->
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> › <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->"><i><!-- TMPL_VAR NAME="title" escape="html" --></i></a> › <!-- TMPL_IF NAME="op" -->Create Routing List<!-- TMPL_ELSE -->Edit Routing List<!-- /TMPL_IF --></div>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
|
|
|
|
<!-- TMPL_IF NAME="op" -->
|
|
<h1>Create Routing List for <i><!-- TMPL_VAR NAME="title" escape="html" --></i></h1>
|
|
<!-- TMPL_ELSE -->
|
|
<h1>Edit Routing List for <i><!-- TMPL_VAR NAME="title" escape="html" --></i></h1>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<form method="post" action="routing.pl">
|
|
<input type="hidden" name="op" value="save" />
|
|
<input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR NAME="subscriptionid" -->" />
|
|
<fieldset class="rows">
|
|
<ol>
|
|
<li><label for="date_selected">Issue: </label>
|
|
<select name="date_selected" id="date_selected">
|
|
<!-- TMPL_LOOP NAME="dates" -->
|
|
<!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="serialseq" --> (<!-- TMPL_VAR NAME="planneddate" -->)" selected="selected"><!-- TMPL_VAR NAME="serialseq" --> (<!-- TMPL_VAR NAME="planneddate" -->)</option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR NAME="serialseq" --> (<!-- TMPL_VAR NAME="planneddate" -->)"><!-- TMPL_VAR NAME="serialseq" --> (<!-- TMPL_VAR NAME="planneddate" -->)</option><!-- /TMPL_IF -->
|
|
<!-- /TMPL_LOOP -->
|
|
</select> <!-- TMPL_VAR NAME="issue" --></li>
|
|
|
|
<!-- TMPL_IF NAME="memberloop" -->
|
|
<li><span class="label">Recipients:</span><table style="clear:none;margin:0;">
|
|
<tr><th>Name</th>
|
|
<th>Rank</th>
|
|
<th>Delete</th></tr>
|
|
<!-- TMPL_LOOP NAME="memberloop" -->
|
|
<tr><td><!-- TMPL_VAR NAME="name" --></td>
|
|
<td><!-- TMPL_VAR NAME="routingbox" --></td>
|
|
<td><a href="/cgi-bin/koha/serials/routing.pl?routingid=<!-- TMPL_VAR NAME="routingid" -->&subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->&op=delete">Delete</a></td></tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table><p style="margin-left:10em;"><a onclick="search_member(<!-- TMPL_VAR
|
|
NAME="subscriptionid" -->); return false"
|
|
href="/cgi-bin/koha/serials/member-search.pl?subscriptionid=<!-- TMPL_VAR
|
|
NAME="subscriptionid" -->" class="button">Add recipients</a> <a
|
|
href="/cgi-bin/koha/serials/routing.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->&op=delete" class="button">Delete All</a></p></li>
|
|
<!-- TMPL_ELSE -->
|
|
<li><span class="label">Recipients:</span>
|
|
<a onclick="search_member(<!-- TMPL_VAR NAME="subscriptionid"
|
|
-->); return false" href="/cgi-bin/koha/serials/member-search.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->" class="button">Add recipients</a></li>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<li><label for="notes">Notes:</label><textarea name="notes" id="notes" rows="3" cols="50"><!-- TMPL_VAR NAME="routingnotes" --></textarea></li>
|
|
</ol>
|
|
|
|
</fieldset>
|
|
<fieldset class="action"><input type="submit" name="submit" value="Save" /></fieldset>
|
|
</form>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="yui-b">
|
|
<!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
|
|
</div>
|
|
</div>
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|