[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Serials › [% title |html %] › [% IF ( op ) %]Create Routing List[% ELSE %]Edit Routing List[% END %]</title>
+<title>Koha › Serials › [% title |html %] › [% IF ( op ) %]Create Routing List[% ELSE %]Edit routing list[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<script language="javascript" type="text/javascript">
<!--
//-->
</script>
</head>
-<body>
+<body id="ser_routing" class="ser">
[% INCLUDE 'header.inc' %]
[% INCLUDE '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=[% subscriptionid %]"><i>[% title |html %]</i></a> › [% IF ( op ) %]Create Routing List[% ELSE %]Edit Routing List[% END %]</div>
+<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>
<div id="doc3" class="yui-t2">
[% IF ( op ) %]
-<h1>Create Routing List for <i>[% title |html %]</i></h1>
+<h1>Create routing list for <i>[% title |html %]</i></h1>
[% ELSE %]
-<h1>Edit Routing List for <i>[% title |html %]</i></h1>
+<h1>Edit routing list for <i>[% title |html %]</i></h1>
[% END %]
<form method="post" action="routing.pl">
[% END %]
</select> [% issue %]</li>
-[% IF ( memberloop ) %]
+[% IF memberloop %]
<li><span class="label">Recipients:</span><table style="clear:none;margin:0;">
<tr><th>Name</th>
<th>Rank</th>
- <th>Delete</th></tr>
-[% FOREACH memberloo IN memberloop %]
- <tr><td>[% memberloo.name %]</td>
- <td>[% memberloo.routingbox %]</td>
- <td><a href="/cgi-bin/koha/serials/routing.pl?routingid=[% memberloo.routingid %]&subscriptionid=[% subscriptionid %]&op=delete">Delete</a></td></tr>
-[% END %]
+ <th>Delete</th>
+ </tr>
+ [% USE m_loop = iterator(memberloop) %]
+ [% FOREACH member IN m_loop %]
+ <tr><td>[% member.name %]</td>
+ <td>
+ <select name="itemrank" onchange="reorder_item([%- subscriptionid -%], [%- member.routingid -%], this.option[this.selectedIndex].value)">
+ [% rankings = [1 .. m_loop.size] %]
+ [% FOREACH r IN rankings %]
+ [% IF r == member.ranking %]
+ <option selected="selected" value="[% r %]">[% r %]</option>
+ [% ELSE %]
+ <option value="[% r %]">[% r %]</option>
+ [% END %]
+ [% END %]
+ </select>
+ </td>
+ <td><a href="/cgi-bin/koha/serials/routing.pl?routingid=[% member.routingid %]&subscriptionid=[% subscriptionid %]&op=delete">Delete</a></td>
+ </tr>
+ [% END %]
</table><p style="margin-left:10em;"><a onclick="search_member([% subscriptionid %]); return false"
href="/cgi-bin/koha/serials/member-search.pl?subscriptionid=[% subscriptionid %]" class="button">Add recipients</a> <a
-href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscriptionid %]&op=delete" class="button">Delete All</a></p></li>
+href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscriptionid %]&op=delete" class="button">Delete all</a></p></li>
[% ELSE %]
<li><span class="label">Recipients:</span>
<a onclick="search_member([% subscriptionid %]); return false" href="/cgi-bin/koha/serials/member-search.pl?subscriptionid=[% subscriptionid %]" class="button">Add recipients</a></li>