<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Subscription Details for <!-- TMPL_VAR name="bibliotitle" --><!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<!-- TMPL_INCLUDE NAME="masthead.inc" -->
<!-- TMPL_INCLUDE NAME="serials-topmenu.inc" -->
<!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->

<div id="main">
<h1>Subscription: <!-- TMPL_VAR name="bibliotitle" --></h1>
<form class="inline" action="subscription-add.pl" method="get"><input type="hidden" name="op" value="mod" /><input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->" /><input type="submit" class="submit" value="Edit Subscription" /></form> 

<form class="inline" action="statecollection.pl" method="get"><input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->" /><input type="submit" class="submit" value="View Issues" /></form>

<form class="inline" action="/cgi-bin/koha/bull/statecollection.pl" method="get"><input type="hidden" name="subscriptionid" value="1" /><input type="submit" class="submit" value="Receive Issues" /></form>

<form class="inline" action="/cgi-bin/koha/MARCdetail.pl" method="get"><input type="hidden" name="bib" value="<!-- TMPL_VAR name="biblionumber" -->" /><input type="submit" class="submit" value="View Bibliographic Record" /></form>

<form class="inline" action="subscription-detail.pl" method="get"><input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->" /><input type="hidden" name="op" value="del" /><input type="submit" class="cancel" onclick="confirm_deletion(); return false;" value="Delete subscription" /></form>

<div class="data">
<table>
	<caption>Subscription Information</caption>
		<tr><th>Librarian identity:</th><td> <!-- TMPL_VAR name="librarian" --></td></tr>
		<tr><th>Supplier: </th><td><!-- TMPL_VAR name="aqbooksellername" --></td></tr>
		<tr><th>Cost:</th><td><!-- TMPL_VAR name="cost" --></td></tr>
		<tr><th>Budget:</th><td><!-- TMPL_VAR name="bookfundid" --></td></tr>
		<tr><th>Title:</th><td><a href="/cgi-bin/koha/MARCdetail.pl?bib=<!-- TMPL_VAR name="biblionumber" -->"><!-- TMPL_VAR name="bibliotitle" --></a></td></tr>
		<tr><th>Notes:</th><td><!-- TMPL_VAR name="notes" --></td></tr>
</table>
</div>
<div class="data">
<table>
	<caption>Planning</caption>
	<tr><th>Beginnning date:</th><td><!-- TMPL_VAR name="startdate" --></td></tr>
	<tr><th>Frequency (*):</th><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 Monthes
		<!-- /TMPL_IF -->
		<!--TMPL_IF name="periodicity7" -->
				1/3 Monthes
		<!-- /TMPL_IF -->
		<!--TMPL_IF name="periodicity8" -->
				1/quarter
		<!-- /TMPL_IF -->
		<!--TMPL_IF name="periodicity9" -->
				1/2 quarters
		<!-- /TMPL_IF -->
		<!--TMPL_IF name="periodicity10" -->
				1/year
		<!-- /TMPL_IF -->
		<!--TMPL_IF name="periodicity11" -->
				1/2 years
		<!-- /TMPL_IF -->
	</td></tr>
	<tr><th>Arrives on:</th><td>
		<!--TMPL_IF name="arrival1" -->
			Monday
		<!-- /TMPL_IF -->
		<!--TMPL_IF name="arrival2" -->
				Tuesday
		<!-- /TMPL_IF -->
		<!--TMPL_IF name="arrival3" -->
				Wednesday
		<!-- /TMPL_IF -->
		<!--TMPL_IF name="arrival4" -->
				Thursday
		<!-- /TMPL_IF -->
		<!--TMPL_IF name="arrival5" -->
				Friday
		<!-- /TMPL_IF -->
		<!--TMPL_IF name="arrival6" -->
				Saturday
		<!-- /TMPL_IF -->
		<!--TMPL_IF name="arrival7" -->
				Sunday
		<!-- /TMPL_IF -->
		</td></tr></table>
</div>
<div class="data">
	<table>
	<caption>Subscription length</caption>
	<tr><th>Number of issues:</th><td><!-- TMPL_VAR name="numberlength" --></td></tr>
	<tr><th>Number of weeks:</th><td><!-- TMPL_VAR name="weeklength" --></td></tr>
	<tr><th>Number of months:</th><td><!-- TMPL_VAR name="monthlength" --></td></tr>
</table>
</div>
<div class="data"><h2>Numbering calculation</h2>
	<table>
	<caption>Numbering formula: <!-- TMPL_VAR name="numberingmethod" --></caption>
			<tr>
				<th>&nbsp;</th>
				<th scope="col">X</th>
				<th scope="col">Y</th>
				<th scope="col">Z</th>
			</tr>
			<tr>
				<th scope="row">Add</th>
				<td>
					<!-- TMPL_VAR name="add1" -->
				</td>
				<td>
					<!-- TMPL_VAR name="add2" -->
				</td>
				<td>
					<!-- TMPL_VAR name="add3" -->
				</td>
			</tr>
			<tr>
				<th scope="row">once every</th>
				<td><!-- TMPL_VAR name="every1" --></td>
				<td><!-- TMPL_VAR name="every2" --></td>
				<td><!-- TMPL_VAR name="every3" --></td>
			</tr>
			<tr>
				<th scope="row">When more than</th>
				<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>
				<th scope="row">Set back to</th>
				<td><!-- TMPL_VAR name="setto1" --></td>
				<td><!-- TMPL_VAR name="setto2" --></td>
				<td><!-- TMPL_VAR name="setto3" --></td>
			</tr>
			<tr>
				<th scope="row">Last value</th>
				<td><!-- TMPL_VAR name="lastvalue1" --></td>
				<td><!-- TMPL_VAR name="lastvalue2" --></td>
				<td><!-- TMPL_VAR name="lastvalue3" --></td>
			</tr>
		</table>
</div>
<div class="data">
	<table>
	<caption>Issues</caption>
	<tr>
		<th>Issue number</th>
		<th>Planned date</th>
		<th>Status</th>
		<th>Note</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>
			<td>
				<!-- TMPL_VAR name="notes" -->
			</td>
		</tr>
	<!-- /TMPL_LOOP -->
	</table>
</div>
</div>
<script>
function _(s) { return s } // dummy function for gettext
function confirm_deletion() {
	<!-- TMPL_IF name="totalissues" -->
		var is_confirmed = confirm(_('You already made <!-- TMPL_VAR name="totalissues"--> receipts. Do you confirm deletion?'));
	<!-- TMPL_ELSE -->
		var is_confirmed = confirm(_('Are you sure you want to delete this subscription?'));
	<!-- /TMPL_IF -->	
	if (is_confirmed) {
		window.location="subscription-detail.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->&op=del";
	}
}
</script>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->