397 lines
16 KiB
Cheetah
397 lines
16 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<title>Koha › Serials Detail for Subscription #<!-- TMPL_VAR name="subscriptionid" --></title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
|
|
<!-- TMPL_INCLUDE NAME="menus.inc" -->
|
|
<!--TMPL_INCLUDE NAME="menu-serials.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');
|
|
|
|
// common pre defined number patterns
|
|
// function num_pattern() {
|
|
// var patternchoice = '<!--TMPL_VAR NAME='numberpattern'-->';
|
|
// switch(patternchoice){
|
|
// case "2":
|
|
// options(text[1],text[0],text[2]);
|
|
// irregularity();
|
|
// display_table(0);
|
|
// break;
|
|
// case "3":
|
|
// options(text[1],text[0]);
|
|
// irregularity();
|
|
// display_table(0);
|
|
// break;
|
|
// case "4":
|
|
// options(text[1],text[2]);
|
|
// irregularity();
|
|
// display_table(0);
|
|
// break;
|
|
// case "5":
|
|
// options(text[0],text[2]);
|
|
// irregularity();
|
|
// display_table(0);
|
|
// break;
|
|
// case "6":
|
|
// var d = new Date();
|
|
// var sYear = d.getFullYear();
|
|
// // options_seasons(text[15],sYear);
|
|
// irregularity();
|
|
// is_season = 1;
|
|
// display_table(0);
|
|
// break;
|
|
// case "7":
|
|
// display_table(1);
|
|
// irregularity();
|
|
// break;
|
|
// default:
|
|
// options(text[0]);
|
|
// irregularity();
|
|
// display_table(0);
|
|
// break;
|
|
// }
|
|
// }
|
|
//
|
|
// function display_table(n) {
|
|
// if(n==1){
|
|
// document.getElementById("basetable").style.display = 'block';
|
|
// } else {
|
|
// document.getElementById("basetable").style.display = 'none';
|
|
// }
|
|
// }
|
|
|
|
// to dispaly 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 irregularity(){
|
|
var periodicity = '<!-- TMPL_VAR NAME="periodicity"-->';
|
|
switch(periodicity){
|
|
case "1":
|
|
var names = new Array('Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday');
|
|
break;
|
|
case "2":
|
|
<!-- TMPL_IF NAME="weekarrayjs" -->
|
|
var names = new Array(<!-- TMPL_VAR NAME="weekarrayjs" -->);
|
|
<!-- /TMPL_IF -->
|
|
break;
|
|
case "3":
|
|
<!-- TMPL_IF NAME="weekarrayjs" -->
|
|
var names = new Array(<!-- TMPL_VAR NAME="weekarrayjs" -->);
|
|
<!-- /TMPL_IF -->
|
|
break;
|
|
case "4":
|
|
<!-- TMPL_IF NAME="weekarrayjs" -->
|
|
var names = new Array(<!-- TMPL_VAR NAME="weekarrayjs" -->);
|
|
<!-- /TMPL_IF -->
|
|
break;
|
|
case "5":
|
|
var names = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
|
|
break;
|
|
case "6":
|
|
var names = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
|
|
break;
|
|
case "7":
|
|
var names = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
|
|
break;
|
|
case "8":
|
|
var names = new Array('Autumn','Winter','Spring','Summer','Fall');
|
|
break;
|
|
case "9":
|
|
var names = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
|
|
break;
|
|
case "10":
|
|
expected =1;
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
|
|
<!-- TMPL_IF NAME="irregularity" -->
|
|
var irregular = '<!-- TMPL_VAR NAME="irregularity" -->';
|
|
var irregarray = irregular.split('|');
|
|
var irregtext = '<p>';
|
|
for(var i=0;i<irregarray.length;i++){
|
|
irregtext += names[i]+' ';
|
|
}
|
|
irregtext += '</p>';
|
|
document.getElementById("irreg").innerHTML = irregtext;
|
|
<!-- /TMPL_IF -->
|
|
}
|
|
|
|
-->
|
|
</script>
|
|
<h1>Subscription #<!--TMPL_VAR name="subscriptionid"--></h1>
|
|
<!--TMPL_IF Name="abouttoexpire"--><div class="problem">Subscription is by its end. It should be renewed now.</div><!--/TMPL_IF-->
|
|
<div id="action">
|
|
<div class="edit">
|
|
<a href="subscription-add.pl?op=mod&subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->">Edit</a>
|
|
<a href="subscription-add.pl?op=dup&subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->">Duplicate </a>
|
|
<a href="subscription-renew.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->">Renew </a>
|
|
<a href="serials-edit.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->&serstatus=1,3">Receive</a>
|
|
<a href="javascript:confirm_deletion()">
|
|
Delete
|
|
</a>
|
|
</div>
|
|
<div class="view">
|
|
<a href="serials-collection.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->">Serial Collection</a>
|
|
<!-- TMPL_IF NAME="routing" -->
|
|
<a href="routing.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->">Edit Routing List</a>
|
|
<!-- TMPL_ELSE -->
|
|
<a href="routing.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->&op=new">Create Routing List</a>
|
|
<!-- /TMPL_IF -->
|
|
</div>
|
|
</div>
|
|
<div id="subscription_info">
|
|
<h2>Subscription information</h2>
|
|
<p><label>Librarian identity:</label> <!-- TMPL_VAR name="librarian" --></p>
|
|
<p><label>Supplier:</label> <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR name="aqbooksellerid"-->"><!-- TMPL_VAR name="aqbooksellername" --> </a></p>
|
|
<p><label>Biblio:</label> <i>(<!-- TMPL_VAR name="biblionumber" -->)</i> <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR name="biblionumber" -->"><!-- TMPL_VAR name="bibliotitle" --></a></p><br />
|
|
<!-- TMPL_IF name="branchcode" --><p><label>Branch :</label> <!-- TMPL_VAR name="branchcode" --> </p><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="callnumber" --><p><label>Call Number:</label> <!-- TMPL_VAR name="callnumber" --> </p><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="letter" --><p><label>Patron alert with:</label> <!-- TMPL_VAR name="letter" --> </p><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="notes" --><p><label>Notes:</label> <!-- TMPL_VAR name="notes" --></p><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="internalnotes" --><p><label>Management Notes:</label> <!-- TMPL_VAR name="internalnotes" --></p><!-- /TMPL_IF -->
|
|
|
|
</div>
|
|
<div id="subscription_planning">
|
|
<h2>Planning</h2>
|
|
<p><label>Beginnning date:</label> <!-- TMPL_VAR name="startdate" -->
|
|
</p>
|
|
<p><label>Frequency (*):</label>
|
|
<!--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 -->
|
|
Manual history :
|
|
<!--TMPL_IF Name="manualhistory"-->
|
|
<input type="checkbox" checked disabled>
|
|
<!-- TMPL_ELSE -->
|
|
<input type="checkbox" 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="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">
|
|
<!--TMPL_VAR NAME="lastvalue2"-->
|
|
</td>
|
|
<!--/TMPL_IF-->
|
|
<!--TMPL_IF NAME="lastvalue3"-->
|
|
<td align="center">
|
|
<!--TMPL_VAR NAME="lastvalue3"-->
|
|
</td>
|
|
<!--/TMPL_IF-->
|
|
</tr>
|
|
<tr><td><p>Rollover:</p></td>
|
|
<td align="center"> </td>
|
|
<!--TMPL_IF NAME="whenmorethan2"-->
|
|
<td align="center">
|
|
<!--TMPL_VAR NAME="whenmorethan2"-->
|
|
</td>
|
|
<!--/TMPL_IF-->
|
|
<!--TMPL_IF NAME="whenmorethan3"-->
|
|
<td align="center">
|
|
<!--TMPL_VAR NAME="whenmorethan3"-->
|
|
</td>
|
|
<!--/TMPL_IF-->
|
|
</tr>
|
|
</table>
|
|
<!-- TMPL_IF NAME="irregularity" -->
|
|
<p><label>Irregularity:</label>
|
|
<div id="irreg"></div>
|
|
</p>
|
|
<!-- /TMPL_IF -->
|
|
<p><label>Begins on:</label>
|
|
<!--TMPL_VAR name="startdate" -->
|
|
</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">
|
|
<h2>Numbering calculation</h2>
|
|
<p><label>Numbering formula:</label> <!-- TMPL_VAR name="numberingmethod" --></p>
|
|
<table>
|
|
<tr>
|
|
<th> </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>
|
|
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>Status</th>
|
|
</tr>
|
|
<!-- TMPL_LOOP name="serialslist" -->
|
|
<tr>
|
|
<td>
|
|
<!-- TMPL_VAR name="serialseq" -->
|
|
</td>
|
|
<td>
|
|
<!-- TMPL_VAR name="planneddate" -->
|
|
</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 -->
|
|
</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="histstartdate" --> </td>
|
|
</tr>
|
|
<tr>
|
|
<td><label>End Date :</label></td>
|
|
<td> <!-- TMPL_VAR name="enddate" --></td>
|
|
</tr>
|
|
<tr><td><label>Recieved 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>Librarian's note</label></td><td><!-- TMPL_VAR name="librariannote" --></td></tr>
|
|
<tr><td><label>Opac's note</label></td><td><!-- TMPL_VAR name="opacnote" --></td></tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
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(link) {
|
|
newin=window.open(link,'popup','width=500,height=400,toolbar=false,scrollbars=yes');
|
|
}
|
|
|
|
// window.onload = num_pattern();
|
|
</script>
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|