Koha/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tmpl

270 lines
10 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Serials</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script language="JavaScript" type="text/javascript">
showlayer('<!-- TMPL_VAR NAME="yearmax"-->');
function showlayer(numlayer)
{
var yeardata=document.getElementsByName("yeardata");
for (i=0; i<yeardata.length; i++ ) {
ong=yeardata[i].getAttribute('id');
if (numlayer==ong) {
yeardata[i].setAttribute("class","content_visible");
var tabactive=document.getElementById('link'+numlayer);
tabactive.removeAttribute("class");
tabactive.setAttribute("class","tab_active");
} else {
yeardata[i].removeAttribute("class");
yeardata[i].setAttribute("class","content_hidden");
try {
var tabactive=document.getElementById('link'+ong);
tabactive.removeAttribute("class");
tabactive.setAttribute("class","tab_inactive");
}
catch(e){};
}
}
}
function addsubscriptionid()
{
var tab=new Array();
var serialids = document.edition.serialid;
for (i=0; i<serialids.length; i++){
if (serialids[i].checked == true){
var found=false;
for (var val in tab){
if (tab[val] == document.getElementsByName("subs")[i].getAttribute('val')){found = true;}
}
if (found == false){
tab=tab.concat((document.getElementsByName("subs")[i].getAttribute('val')));
}
}
}
var string="";
for (var val in tab){
string = string + tab[val] + ",";
}
string=string.substring(0,string.length -1);
document.edition.subscriptionid.value=string;
}
function popup(subscriptionid) {
newin=window.open('subscription-renew.pl?mode=popup&subscriptionid='+subscriptionid,'popup','width=500,height=400,toolbar=false,scrollbars=yes');
}
</script>
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!--TMPL_INCLUDE NAME="menu-serials.inc" -->
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b"><div class="yui-g">
<!-- TMPL_UNLESS name="popup" -->
<h1>Serial Collection information for<br /> <em><!-- TMPL_VAR name="bibliotitle" --></em></h1>
<!-- /TMPL_UNLESS -->
<!--TMPL_IF Name="subscriptions"-->
<table>
<!--TMPL_IF Name="onesubscription"-->
<caption> Subscription Summary</caption>
<!--TMPL_ELSE-->
<caption> Subscription Summaries</caption>
<!--/TMPL_IF-->
<tr>
<th>Subs </th>
<th>Freq</th>
<th>Num pattern</th>
<th>Branch</th>
<th>Call Number</th>
<th>Notes</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>
<td> <!--TMPL_IF name="periodicity1" -->
1/day
<!-- /TMPL_IF -->
<!--TMPL_IF name="periodicity2" -->
1/week
<!-- /TMPL_IF -->
<!--TMPL_IF name="periodicity3" -->
1/2 weeks
<!-- /TMPL_IF -->
<!--TMPL_IF name="periodicity4" -->
1/3 weeks
<!-- /TMPL_IF -->
<!--TMPL_IF name="periodicity5" -->
1/Month
<!-- /TMPL_IF -->
<!--TMPL_IF name="periodicity6" -->
1/2 Months (6/year)
<!-- /TMPL_IF -->
<!--TMPL_IF name="periodicity7" -->
1/quarter
<!-- /TMPL_IF -->
<!--TMPL_IF name="periodicity8" -->
1/quarter
<!-- /TMPL_IF -->
<!--TMPL_IF name="periodicity9" -->
2/year
<!-- /TMPL_IF -->
<!--TMPL_IF name="periodicity10" -->
1/year
<!-- /TMPL_IF -->
<!--TMPL_IF name="periodicity11" -->
1/2 years
<!-- /TMPL_IF --></td>
<td>
<!-- TMPL_IF name="numberpattern1" -->
Number
<!-- /TMPL_IF -->
<!-- TMPL_IF name="numberpattern2" -->
Volume, Number, Issue
<!-- /TMPL_IF -->
<!-- TMPL_IF name="numberpattern3" -->
Volume, Number
<!-- /TMPL_IF -->
<!-- TMPL_IF name="numberpattern4" -->
Volume, Issue
<!-- /TMPL_IF -->
<!-- TMPL_IF name="numberpattern5" -->
Number, Issue
<!-- /TMPL_IF -->
<!-- TMPL_IF name="numberpattern6" -->
Seasonal only
<!-- /TMPL_IF -->
<!-- TMPL_IF name="numberpattern7" -->
None of the above
<!-- /TMPL_IF --></td>
<td> <!-- TMPL_VAR name="branchcode" --></td>
<td> <!-- TMPL_VAR name="callnumber" --></td>
<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>
<!--TMPL_ELSE-->
<!--TMPL_IF name="subscriptionexpired"--><td class="problem"> <a onclick="popup(<!--TMPL_VAR Name="subscriptionid"-->)">Renew</a></td>
<!--TMPL_ELSE-->
<td> &nbsp;</td>
<!--/TMPL_IF-->
<!--/TMPL_IF-->
</tr>
<!--/TMPL_LOOP -->
<!--TMPL_IF Name="subscr"-->
<tr ><td colspan="7"> <a href="serials-collection.pl?biblionumber=<!--TMPL_VAR Name="biblionumber" -->">See any subscription attached to this biblio</a></td>
</tr>
<!--/TMPL_IF-->
</table>
<!--/TMPL_IF -->
<div class="tabsubs">
<!-- TMPL_LOOP NAME="years" -->
<!-- TMPL_IF NAME="year" -->
<!-- TMPL_IF NAME="first" -->
<a id="link<!-- TMPL_VAR NAME="year" -->" class="tab_active" href="javascript:showlayer('<!-- TMPL_VAR NAME="year" -->')"><!-- TMPL_VAR NAME="year" --></a>
<!-- TMPL_ELSE -->
<a id="link<!-- TMPL_VAR NAME="year" -->" class="tab_inactive" href="javascript:showlayer('<!-- TMPL_VAR NAME="year" -->')"><!-- TMPL_VAR NAME="year" --></a>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</div>
<form name="edition" action="serials-edit.pl">
<!-- TMPL_LOOP NAME="years" -->
<!--TMPL_IF Name="first" -->
<div name="yeardata" id="<!-- TMPL_VAR NAME="year" -->" class="content_visible" >
<!--TMPL_ELSE -->
<div name="yeardata" id="<!-- TMPL_VAR NAME="year" -->" class="content_hidden">
<!--/TMPL_IF -->
<table width="400px">
<tr>
<!--TMPL_UNLESS Name="onesubscription"-->
<th> # Subs.
</th>
<!--/TMPL_UNLESS-->
<th>Date published
</th>
<th>Date received
</th>
<th> Number
</th>
<th> Status
</th>
<th> Notes
</th>
<th>branch
</th>
<th>Edit
</th>
</tr>
<!-- TMPL_LOOP Name="serials" -->
<tr name="branch <!--TMPL_VAR Name="branchcode"-->">
<!--TMPL_UNLESS Name="onesubscription"-->
<td><a href="serials-collection.pl?subscriptionid=<!--TMPL_VAR Name="subscriptionid"-->"><!--TMPL_VAR Name="subscriptionid"--></a></td>
<!--/TMPL_UNLESS-->
<td>
<!-- TMPL_VAR Name="publisheddate" -->
</td>
<td>
<!-- TMPL_VAR Name="planneddate" -->
</td>
<td>
<!-- 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="status7" -->Claimed<!-- /TMPL_IF -->
</td>
<td>
<!-- TMPL_VAR Name="notes" -->
</td>
<td>
<!-- TMPL_VAR Name="branchcode" -->
</td>
<td>
<div visibility="hidden" name="subs" val="<!--TMPL_VAR Name="subscriptionid"-->"></div>
<!--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 value="<!--TMPL_VAR Name="serialid"-->" />
<!--TMPL_ELSE -->
<!--TMPL_IF Name="status3"-->
<input type="checkbox" name="serialid" checked value="<!--TMPL_VAR Name="serialid"-->" />
<!--TMPL_ELSE -->
<!--TMPL_IF Name="status4"-->
<input type="checkbox" name="serialid" 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 -->
</td>
</tr>
<!-- /TMPL_LOOP -->
</table>
<p><input type="submit" value="Edit serials" /></p>
</div>
<!--/TMPL_LOOP -->
<input type="hidden" name="subscriptionid" value="<!--TMPL_VAR Name="subscriptionidlist"-->" />
</form>
</div>
</div>
</div>
<!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->