Koha/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tmpl
Henri-Damien LAURENT 4399daf0bd Managing Independant branches.
librarian can edit only subscriptions on branches of his or subscription with no branch now.
cannotedit is a calculated value in Mysql and transfered for process.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-04 16:27:25 -06:00

280 lines
10 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Serials &rsaquo; 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[
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');
}
$(document).ready(function() {
$('#subscription_years').tabs();
});
//]]>
</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> &rsaquo; <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; Serial Collection information for <i><!-- TMPL_VAR name="bibliotitle" --></i></div>
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<!-- TMPL_UNLESS name="popup" -->
<!-- TMPL_INCLUDE NAME="serials-toolbar.inc" -->
<h1>Serial Collection information for <i><!-- TMPL_VAR name="bibliotitle" --></i></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 -->
<!-- TMPL_IF NAME="years" --><form name="edition" action="serials-edit.pl">
<div id="subscription_years" class="toptabs numbered">
<ul>
<!-- TMPL_LOOP NAME="years" -->
<!-- TMPL_IF NAME="year" -->
<li><a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=<!--TMPL_VAR Name="subscriptionid"-->#subscription-year-<!-- TMPL_VAR NAME="year" -->"><!-- TMPL_VAR NAME="year" --></a></li>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</ul>
<!-- TMPL_LOOP NAME="years" -->
<div id="subscription-year-<!-- TMPL_VAR NAME="year" -->">
<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>
<!--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="status5" -->Not Available<!-- /TMPL_IF --><!-- TMPL_IF Name="status7" -->Claimed<!-- /TMPL_IF -->
</td>
<td>
<!-- TMPL_VAR Name="notes" -->
</td>
<td>
<!-- TMPL_VAR Name="branchcode" -->
</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"-->
<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 -->
</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"-->" />
</div>
</form>
<!-- /TMPL_IF -->
</div>
</div>
<div class="yui-b">
<!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->