1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Serials › [% title |html %] › [% IF ( op ) %]Create Routing List[% ELSE %]Edit routing list[% END %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript">
7 function reorder_item(sid,rid,rank){
8 var mylocation = 'reorder_members.pl?subscriptionid='+sid+'&routingid='+rid+'&rank='+rank;
9 window.location.href=mylocation;
12 function userPopup() {
13 window.open("/cgi-bin/koha/serials/add_user_search.pl",
15 'width=740,height=450,location=yes,toolbar=no,'
16 + 'scrollbars=yes,resize=yes'
20 function add_user(borrowernumber) {
21 var myurl = "routing.pl?subscriptionid="+[% subscriptionid %]+"&borrowernumber="+borrowernumber+"&op=add";
22 window.location.href = myurl;
28 <body id="ser_routing" class="ser">
29 [% INCLUDE 'header.inc' %]
30 [% INCLUDE 'serials-search.inc' %]
32 <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=[% subscriptionid %]"><i>[% title |html %]</i></a> › [% IF ( op ) %]Create Routing List[% ELSE %]Edit routing list[% END %]</div>
34 <div id="doc3" class="yui-t2">
42 <h1>Create routing list for <i>[% title |html %]</i></h1>
44 <h1>Edit routing list for <i>[% title |html %]</i></h1>
47 <form method="post" action="routing.pl">
48 <input type="hidden" name="op" value="save" />
49 <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
50 <fieldset class="rows">
52 <li><label for="date_selected">Issue: </label>
53 <select name="date_selected" id="date_selected">
54 [% FOREACH date IN dates %]
55 [% IF ( date.selected ) %]<option value="[% date.serialseq %] ([% date.publisheddate %])" selected="selected">[% date.serialseq %] ([% date.publisheddate %])</option>[% ELSE %]<option value="[% date.serialseq %] ([% date.publisheddate %])">[% date.serialseq %] ([% date.publisheddate %])</option>[% END %]
57 </select> [% issue %]</li>
60 <span class="label">Recipients:</span>
62 <table style="clear:none;margin:0;">
67 [% USE m_loop = iterator(memberloop) %]
68 [% FOREACH member IN m_loop %]
69 <tr><td>[% member.name %]</td>
71 <select name="itemrank" onchange="reorder_item([%- subscriptionid -%], [%- member.routingid -%], this.value)">
72 [% rankings = [1 .. m_loop.size] %]
73 [% FOREACH r IN rankings %]
74 [% IF r == member.ranking %]
75 <option selected="selected" value="[% r %]">[% r %]</option>
77 <option value="[% r %]">[% r %]</option>
82 <td><a href="/cgi-bin/koha/serials/routing.pl?routingid=[% member.routingid %]&subscriptionid=[% subscriptionid %]&op=delete">Delete</a></td>
88 <p style="margin-left:10em;">
89 <input type="button" onclick="userPopup()" value="Add recipients" />
91 <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscriptionid %]&op=delete" class="button">Delete all</a>
96 <li><label for="notes">Notes:</label><textarea name="notes" id="notes" rows="3" cols="50">[% routingnotes %]</textarea></li>
100 <fieldset class="action"><input type="submit" name="submit" value="Save" /></fieldset>
108 [% INCLUDE 'serials-menu.inc' %]
111 [% INCLUDE 'intranet-bottom.inc' %]