<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha › Serials › Serial Collection information for <!-- TMPL_VAR name="bibliotitle" --></title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
-<!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
+
<script type="text/javascript">
//<![CDATA[
+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');
+}
function addsubscriptionid()
{
var tab=new Array();
newin=window.open('subscription-renew.pl?mode=popup&subscriptionid='+subscriptionid,'popup','width=500,height=400,toolbar=false,scrollbars=yes');
}
+function generateNext(subscriptionid) {
+ if(confirm("Do you really want to generate next serial?")){
+ document.location = 'serials-collection.pl?op=gennext&subscriptionid='+subscriptionid;
+ }
+}
+
$(document).ready(function() {
- $('#subscription_years').tabs();
+ $('#subscription_years > ul').tabs();
});
<th>Subscription Num. </th>
<th>Frequency</th>
<th>Numbering pattern</th>
- <th>Branch</th>
- <th>Call Number</th>
+ <th>Library</th>
+ <th>Call number</th>
<th>Notes</th>
+ <th>Routing</th>
<th>Renew</th>
</tr>
<!--TMPL_LOOP Name="subscriptions"-->
- <tr>
- <td><a href="subscription-detail.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->">#<!-- TMPL_VAR name="subscriptionid" --></a> </td>
+ <!-- TMPL_UNLESS NAME="__odd__" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_UNLESS -->
+ <td><a href="subscription-detail.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->"># <!-- TMPL_VAR name="subscriptionid" --></a> </td>
<td> <!--TMPL_IF name="periodicity1" -->
1/day
<!-- /TMPL_IF -->
<td> <!-- TMPL_VAR name="notes" --> <!--TMPL_IF name="subscriptionexpired"--><br /><span class="problem"> Subscription Expired</span>
<!--/TMPL_IF-->
</td>
- <!--TMPL_IF name="abouttoexpire"--><td class="problem"> <a onclick="popup(<!--TMPL_VAR Name="subscriptionid"-->)">Renew</a></td>
+ <td><a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->">Edit Routing List</a></td>
+ <!--TMPL_IF name="abouttoexpire"--><td class="problem"> <a href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->" onclick="popup(<!--TMPL_VAR Name="subscriptionid"-->); return false;">Renew</a></td>
<!--TMPL_ELSE-->
- <!--TMPL_IF name="subscriptionexpired"--><td class="problem"> <a onclick="popup(<!--TMPL_VAR Name="subscriptionid"-->)">Renew</a></td>
+ <!--TMPL_IF name="subscriptionexpired"--><td class="problem"> <a href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->" onclick="popup(<!--TMPL_VAR Name="subscriptionid"-->); return false;">Renew</a></td>
<!--TMPL_ELSE-->
<td> </td>
<!--/TMPL_IF-->
</tr>
<!--/TMPL_LOOP -->
<!--TMPL_IF Name="subscr"-->
+<!--TMPL_UNLESS Name="onesubscription"-->
<tr ><td colspan="7"> <a href="serials-collection.pl?biblionumber=<!--TMPL_VAR Name="biblionumber" -->">See any subscription attached to this biblio</a></td>
-</tr>
+</tr><!-- /TMPL_UNLESS -->
<!--/TMPL_IF-->
</table>
<!--/TMPL_IF -->
-<!-- TMPL_IF NAME="years" --><form name="edition" action="serials-edit.pl">
+<!-- TMPL_IF NAME="years" --><form name="edition" action="serials-edit.pl" method="post">
<div id="subscription_years" class="toptabs numbered">
<ul>
<!-- TMPL_LOOP NAME="years" -->
<!-- TMPL_LOOP NAME="years" -->
<div id="subscription-year-<!-- TMPL_VAR NAME="year" -->">
- <table width="400px">
- <tr>
+ <table style="width:400px;">
+ <tr>
<!--TMPL_UNLESS Name="onesubscription"-->
- <th> # Subs.
- </th>
+ <th># Subs</th>
<!--/TMPL_UNLESS-->
<th>Date published
</th>
<th>Date received
</th>
- <th> Number
+ <th>Number
</th>
- <th> Status
+ <th>Status
</th>
- <th> Notes
+ <th>Notes
</th>
- <th>branch
+ <th>Branch
</th>
+ <th>Routing
+ </th>
<th>Edit
</th>
</tr>
<!-- TMPL_LOOP Name="serials" -->
- <tr>
+ <!-- TMPL_UNLESS NAME="__odd__" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_UNLESS -->
<!--TMPL_UNLESS Name="onesubscription"-->
<td><a href="serials-collection.pl?subscriptionid=<!--TMPL_VAR Name="subscriptionid"-->"><!--TMPL_VAR Name="subscriptionid"--></a></td>
<!--/TMPL_UNLESS-->
<!-- TMPL_VAR Name="serialseq" -->
</td>
<td>
- <!-- TMPL_IF Name="status1" -->Waited<!-- /TMPL_IF --><!-- TMPL_IF Name="status2" -->Arrived<!-- /TMPL_IF --><!-- TMPL_IF Name="status3" -->Late<!-- /TMPL_IF --><!-- TMPL_IF Name="status4" -->Missing<!-- /TMPL_IF --><!-- TMPL_IF Name="status5" -->Not Available<!-- /TMPL_IF --><!-- TMPL_IF Name="status7" -->Claimed<!-- /TMPL_IF -->
+ <!-- TMPL_IF Name="status1" -->Expected<!-- /TMPL_IF --><!-- TMPL_IF Name="status2" -->Arrived<!-- /TMPL_IF --><!-- TMPL_IF Name="status3" -->Late<!-- /TMPL_IF --><!-- TMPL_IF Name="status4" -->Missing<!-- /TMPL_IF --><!-- TMPL_IF Name="status5" -->Not Available<!-- /TMPL_IF --><!-- TMPL_IF Name="status7" -->Claimed<!-- /TMPL_IF -->
</td>
<td>
<!-- TMPL_VAR Name="notes" -->
<td>
<!-- TMPL_VAR Name="branchcode" -->
</td>
+ <td>
+ <a href="" onclick="print_slip(<!-- TMPL_VAR NAME="subscriptionid" ESCAPE="HTML" -->, '<!-- TMPL_VAR NAME="serialseq" ESCAPE="HTML" -->'); return false" >Print list</a>
+ </td>
<td>
<!--TMPL_IF Name="cannotedit"-->
disabled
<!--TMPL_ELSE -->
- <input type="hidden" name="subs" value="<!--TMPL_VAR Name="subscriptionid"-->" />
<!--TMPL_IF Name="subscriptionexpired"-->
<input type="checkbox" name="serialid" value="<!--TMPL_VAR Name="serialid"-->" disabled="disabled" />
<!--TMPL_ELSE-->
- <!--TMPL_IF Name="status1"-->
- <input type="checkbox" name="serialid" checked="checked" value="<!--TMPL_VAR Name="serialid"-->" />
- <!--TMPL_ELSE -->
- <!--TMPL_IF Name="status3"-->
+ <!--TMPL_IF Name="checked"-->
<input type="checkbox" name="serialid" checked="checked" value="<!--TMPL_VAR Name="serialid"-->" />
<!--TMPL_ELSE -->
- <!--TMPL_IF Name="status4"-->
- <input type="checkbox" name="serialid" checked="checked" value="<!--TMPL_VAR Name="serialid"-->" />
- <!--TMPL_ELSE -->
<input type="checkbox" name="serialid" value="<!--TMPL_VAR Name="serialid"-->" />
- <!--/TMPL_IF-->
- <!--/TMPL_IF-->
<!--/TMPL_IF-->
<!--/TMPL_IF -->
<!--/TMPL_IF -->
</tr>
<!-- /TMPL_LOOP -->
</table>
- <p><input type="submit" value="Edit serials" /></p>
+ <p><input type="submit" value="Edit serials" /> <input type="button" value="Generate Next" onclick="javascript:generateNext(<!-- TMPL_VAR NAME="subscriptionidlist" -->)" /></p>
</div>
<!--/TMPL_LOOP -->
<input type="hidden" name="subscriptionid" value="<!--TMPL_VAR Name="subscriptionidlist"-->" />