Koha/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tmpl
Colin Campbell ad3594fded Bug 4380 Use syspref to resolve which bib display is used
Be consistent with elsewhere in cataloguing
When switching there from serials

TODO Duplicates Code Should be in a common routine
2010-04-08 20:09:02 +01:00

368 lines
16 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Serials &rsaquo; Details for Subscription #<!-- TMPL_VAR name="subscriptionid" --></title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/javascript" language="javascript">
<!--
// the english words used in display purposes
var text = new Array(_("Number"),_("Volume"),_("Issue"),_("Month"),_("Week"),_("Starting with:"),_("Rollover at:"),_("Choose Hemisphere:"),_("Northern"),_("Southern",
"Autumn"),_("Winter"),_("Spring"),_("Summer"),_("Fall"),_("Season"),_("Year"));
// to display the options section
function options(x,y,z){
var textbox = '';
// alert("X: "+x+"Y: "+y+"Z: "+z);
if(x){
document.f.xfield.value = x;
if(y){
document.f.yfield.value = y;
if(z){
document.f.zfield.value = z;
}
}
}
}
function confirm_deletion() {
var is_confirmed = confirm(_("Are you sure you want to delete this subscription?"));
if (is_confirmed) {
window.location="subscription-detail.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->&op=del";
}
}
function popup(subscriptionid) {
newin=window.open("subscription-renew.pl?mode=popup&subscriptionid="+subscriptionid,'popup','width=590,height=440,toolbar=false,scrollbars=yes');
}
-->
</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; Details for Subscription #<!-- TMPL_VAR name="subscriptionid" --></div>
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<!-- TMPL_INCLUDE NAME="serials-toolbar.inc" -->
<h1>Subscription for <!-- TMPL_VAR name="bibliotitle" --> </h1>
<!--TMPL_IF Name="abouttoexpire"--><div class="problem">Subscription is near its end. It should be renewed now.</div><!--/TMPL_IF-->
<!-- TMPL_IF NAME="NEEDSCONFIRMATION" -->
<div id="circ_needsconfirmation" class="dialog alert">
<h3>Please Confirm Subscription deletion</h3>
<ul>
<!-- TMPL_IF NAME="NOTEXPIRED" --> <li>The subscription has not expired yet</li> <!-- /TMPL_IF -->
<!-- TMPL_IF NAME="LINKEDISSUES" --> <li>The subscription has linked issues</li> <!-- /TMPL_IF -->
<!-- TMPL_IF NAME="LINKEDITEMS" --> <li>The subscription has linked items<br /> Those items won't be deleted</li> <!-- /TMPL_IF -->
</ul>
<form method="post" action="/cgi-bin/koha/serials/subscription-detail.pl">
<input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR NAME="subscriptionid" -->" />
<input type="hidden" name="issueconfirmed" value="1" />
<input type="hidden" name="op" value="del" />
<input type="submit" class="approve" value="Yes, Delete (Y)" accesskey="y" />
</form>
<form method="get" action="/cgi-bin/koha/serials/subscription-detail.pl">
<input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR NAME="subscriptionid" -->" />
<input type="submit" class="deny" value="No, Don't Delete (N)" accesskey="n" />
</form>
</div>
<!-- /TMPL_IF --> <!-- NEEDSCONFIRMATION -->
<div id="subscription_info">
<h2>Subscription information</h2>
<ul>
<li><span class="label">Subscription ID: </span><!--TMPL_VAR name="subscriptionid"--></li>
<li><span class="label">Librarian identity:</span> <!-- TMPL_VAR name="librarian" --></li>
<li><span class="label">Vendor:</span> <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR name="aqbooksellerid"-->"><!-- TMPL_VAR name="aqbooksellername" -->&nbsp;</a></li>
<li><span class="label">Biblio:</span> <i>(<!-- TMPL_VAR name="bibnum" -->)</i> <a href="/cgi-bin/koha/catalogue/<!-- TMPL_VAR NAME='default_bib_view' -->.pl?biblionumber=<!-- TMPL_VAR name="bibnum" -->"><!-- TMPL_VAR name="bibliotitle" --></a></li>
<!-- TMPL_IF name="branchcode" --><li><span class="label">Library:</span> <!-- TMPL_VAR name="branchcode" -->&nbsp;</li><!-- /TMPL_IF -->
<!-- TMPL_IF name="serialsadditems" -->
<li>Serial receipt creates an item record.</li>
<!-- TMPL_ELSE -->
<li>Serial receipt does not create an item record.</li>
<!-- /TMPL_IF -->
<li><span class="label">Grace period:</span> <!-- TMPL_VAR name="graceperiod" -->&nbsp;</li>
<!-- TMPL_IF name="location" --><li><span class="label">Location:</span> <!-- TMPL_VAR name="location" -->&nbsp;</li><!-- /TMPL_IF -->
<!-- TMPL_IF name="callnumber" --><li><span class="label">Call Number:</span> <!-- TMPL_VAR name="callnumber" -->&nbsp;</li><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="staffdisplaycount" --><li><span class="label">Number of issues to display to staff</span>:&nbsp;<!-- TMPL_VAR NAME="staffdisplaycount" -->&nbsp;</li><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="opacdisplaycount" --><li><span class="label">Number of issues to display to the public</span>:&nbsp;<!-- TMPL_VAR NAME="opacdisplaycount" -->&nbsp;</li><!-- /TMPL_IF -->
<!-- TMPL_IF name="letter" --><li><span class="label">Patron alert with:</span> <!-- TMPL_VAR name="letter" -->&nbsp;</li><!-- /TMPL_IF -->
<!-- TMPL_IF name="notes" --><li><span class="label">Notes:</span> <!-- TMPL_VAR name="notes" --></li><!-- /TMPL_IF -->
<!-- TMPL_IF name="hasRouting" --><li><span class="label">Routing:</span> yes</li><!-- /TMPL_IF -->
<!-- TMPL_IF name="internalnotes" --><li><span class="label">Management Notes:</span> <!-- TMPL_VAR name="internalnotes" --></li><!-- /TMPL_IF -->
</ul>
</div>
<div id="subscription_planning">
<h2>Planning</h2>
<p><label>Beginning date:</label> <!-- TMPL_VAR name="startdate" -->
</p>
<p><label>Frequency (*):</label>
<!--TMPL_IF name="periodicity16" -->
Without regularity
<!-- /TMPL_IF -->
<!--TMPL_IF name="periodicity32" -->
Irregular
<!-- /TMPL_IF -->
<!--TMPL_IF name="periodicity0" -->
Unknown
<!-- /TMPL_IF -->
<!--TMPL_IF name="periodicity12" -->
2/day
<!-- /TMPL_IF -->
<!--TMPL_IF name="periodicity1" -->
1/day
<!-- /TMPL_IF -->
<!--TMPL_IF name="periodicity13" -->
3/week
<!-- /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 -->
Manual history :
<!--TMPL_IF Name="manualhistory"-->
<input type="checkbox" checked="checked" disabled="disabled" />
<!-- TMPL_ELSE -->
<input type="checkbox" disabled="disabled" />
<!--/TMPL_IF-->
</p>
<p><label>Number pattern:</label>
<!-- TMPL_IF name="numberpattern1" -->
Number only
<!-- /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="numberpattern8" -->
Year/Number
<!-- /TMPL_IF -->
<!-- TMPL_IF name="numberpattern6" -->
Seasonal only
<!-- /TMPL_IF -->
<!-- TMPL_IF name="numberpattern7" -->
None of the above
<!-- /TMPL_IF -->
</p>
<table>
<tr><td><p>Starting with:</p></td>
<td align="center"><!--TMPL_VAR NAME="lastvalue1"--></td>
<!--TMPL_IF NAME="lastvalue2"-->
<td align="center">&nbsp;
<!--TMPL_VAR NAME="lastvalue2"-->
</td>
<!--/TMPL_IF-->
<!--TMPL_IF NAME="lastvalue3"-->
<td align="center">&nbsp;
<!--TMPL_VAR NAME="lastvalue3"-->
</td>
<!--/TMPL_IF-->
</tr>
<tr><td><p>Rollover:</p></td>
<td align="center"><!--TMPL_VAR NAME="whenmorethan1"--></td>
<!--TMPL_IF NAME="whenmorethan2"-->
<td align="center">&nbsp;
<!--TMPL_VAR NAME="whenmorethan2"-->
</td>
<!--/TMPL_IF-->
<!--TMPL_IF NAME="whenmorethan3"-->
<td align="center">&nbsp;
<!--TMPL_VAR NAME="whenmorethan3"-->
</td>
<!--/TMPL_IF-->
</tr>
</table>
<!-- TMPL_IF NAME="irregular_issues" -->
<p><label>Irregularity:</label> <!-- TMPL_VAR name="irregular_issues" --> issues
</p>
<!-- /TMPL_IF -->
<p><label>First arrival:</label> <!--TMPL_VAR name="firstacquidate" -->
</p>
<!-- TMPL_IF name="numberlength" --><p><label>Number of issues:</label> <!-- TMPL_VAR name="numberlength" --></p><!-- /TMPL_IF -->
<!-- TMPL_IF name="weeklength" --><p><label>Number of weeks:</label> <!-- TMPL_VAR name="weeklength" --></p><!-- /TMPL_IF -->
<!-- TMPL_IF name="monthlength" --><p><label>Number of months:</label> <!-- TMPL_VAR name="monthlength" --></p><!-- /TMPL_IF -->
</div>
<div id="subscription_numbering" style="display:none;">
<h3>Numbering calculation</h3>
<p><label>Numbering formula:</label> <!-- TMPL_VAR name="numberingmethod" --></p>
<table>
<tr>
<th>&nbsp;</th>
<th>X</th>
<th>Y</th>
<th>Z</th>
</tr>
<tr>
<td>Add</td>
<td>
<!-- TMPL_VAR name="add1" -->
</td>
<td>
<!-- TMPL_VAR name="add2" -->
</td>
<td>
<!-- TMPL_VAR name="add3" -->
</td>
</tr>
<tr>
<td>once every</td>
<td><!-- TMPL_VAR name="every1" --></td>
<td><!-- TMPL_VAR name="every2" --></td>
<td><!-- TMPL_VAR name="every3" --></td>
</tr>
<tr>
<td>When more than</td>
<td><!-- TMPL_VAR name="whenmorethan1" --> <!-- TMPL_IF name="innerloop1" --><br />
<i>(is <!-- TMPL_VAR name="innerloop1" -->)</i><!-- /TMPL_IF --></td>
<td><!-- TMPL_VAR name="whenmorethan2" --> <!-- TMPL_IF name="innerloop2" --><br />
<i>(is <!-- TMPL_VAR name="innerloop2" -->)</i><!-- /TMPL_IF --></td>
<td><!-- TMPL_VAR name="whenmorethan3" --> <!-- TMPL_IF name="innerloop3" --><br />
<i>(is <!-- TMPL_VAR name="innerloop3" -->)</i><!-- /TMPL_IF --></td>
</tr>
<tr>
<td>Set back to</td>
<td><!-- TMPL_VAR name="setto1" --></td>
<td><!-- TMPL_VAR name="setto2" --></td>
<td><!-- TMPL_VAR name="setto3" --></td>
</tr>
<tr>
<td>
Inner Counter
</td>
<td><!-- TMPL_VAR name="innerloop1" --></td>
<td><!-- TMPL_VAR name="innerloop2" --></td>
<td><!-- TMPL_VAR name="innerloop3" --></td>
</tr>
<tr>
<td>
Last value
</td>
<td><!-- TMPL_VAR name="lastvalue1" --></td>
<td><!-- TMPL_VAR name="lastvalue2" --></td>
<td><!-- TMPL_VAR name="lastvalue3" --></td>
</tr>
</table>
</div>
<div id="subscription_issues">
<h2>Serial issues</h2>
<table>
<tr>
<th>Issue number</th>
<th>Planned date</th>
<th>Published date</th>
<th>Status</th>
</tr>
<!-- TMPL_LOOP name="serialslist" -->
<tr>
<td>
<!-- TMPL_VAR name="serialseq" -->
</td>
<td>
<!-- TMPL_VAR name="planneddate" -->
</td>
<td>
<!-- TMPL_VAR name="publisheddate" -->
</td>
<td>
<!--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 name="claimdate" -->
<!-- TMPL_VAR NAME="claimdate" -->
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
</td>
</tr>
<!-- /TMPL_LOOP -->
</table>
</div>
<div id="subscription_summary">
<h2>Subscription summary</h2>
<table cellpadding="0" cellspacing="0">
<tr>
<td><label>Start date</label></td>
<td> <!-- TMPL_VAR name="startdate" --> </td>
</tr>
<tr>
<td><label>End date</label></td>
<td> <!-- TMPL_VAR name="enddate" --></td>
</tr>
<tr>
<td><label>History start date</label></td>
<td> <!-- TMPL_VAR name="histstartdate" --> </td>
</tr>
<tr>
<td><label>History end date</label></td>
<td> <!-- TMPL_VAR name="histenddate" --></td>
</tr>
<tr><td><label>Received issues</label></td><td><!-- TMPL_VAR name="recievedlist" --></td></tr>
<tr><td><label>Missing issues</label></td><td><!-- TMPL_VAR name="missinglist" --></td></tr>
<tr><td><label>Nonpublic note</label></td><td><!-- TMPL_VAR name="librariannote" --></td></tr>
<tr><td><label>Public note</label></td><td><!-- TMPL_VAR name="opacnote" --></td></tr>
</table>
</div>
</div>
</div>
<div class="yui-b">
<!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->