<!-- 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 for <!-- TMPL_VAR name="bibliotitle" --></h1>
<form class="inline" action="subscription-detail.pl" method="get"><input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->" /><input type="submit" value="Edit Subscription" class="submit" /></form>

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

<div class="data">
	<form method="post" action="statecollection.pl">
		<input type="hidden" name="op" value="serialchangestatus" />
		<input type="hidden" name="serial" value="<!-- TMPL_VAR name="serial" -->" />
		<input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->" />
		<input type="hidden" name="user" value="<!-- TMPL_VAR name="user" -->" />
	<table>
	<caption>Awaited or Late Numbers</caption>
	<tr>
		<th scope="col">Numbered</th>
		<th scope="col">Expected</th>
		<th scope="col">Status</th>
		<th scope="col">Notes</th>
	</tr>
	<!-- TMPL_LOOP name="serialslist" -->
		<tr>
			<td>
				<input type="text" name="serialseq" value="<!-- TMPL_VAR name="serialseq" -->" size="50" maxlength="100" />
			</td>
			<td>
				<input type="text" name="planneddate" value="<!-- TMPL_VAR name="planneddate" -->" size="10" maxlength="15" />
			</td>
			<td>
				<input type="hidden" name="serialid" value="<!-- TMPL_VAR name="serialid" -->" />
				<select name="status">
					<!--TMPL_IF name="status1" -->
						<option value="1" selected>Waited</option>
					<!-- /TMPL_IF -->
					<!--TMPL_IF name="status2" -->
						<option value="2" selected>Arrived</option>
					<!-- TMPL_ELSE -->
						<option value="2">Arrived</option>
					<!-- /TMPL_IF -->
					<!--TMPL_IF name="status3" -->
						<option value="3" selected>Late</option>
					<!-- TMPL_ELSE -->
						<option value="3">Late</option>
					<!-- /TMPL_IF -->
					<!--TMPL_IF name="status4" -->
						<option value="4" selected>Missing</option>
					<!-- TMPL_ELSE -->
						<option value="4">Missing</option>
					<!-- /TMPL_IF -->
					<!--TMPL_IF name="status5" -->
						<option value="5" selected>Not published</option>
					<!-- TMPL_ELSE -->
						<option value="5">Not published</option>
					<!-- /TMPL_IF -->
					<!--TMPL_IF name="status6" -->
						<option value="6" selected>Delete</option>
					<!-- TMPL_ELSE -->
						<option value="6">Delete</option>
					<!-- /TMPL_IF -->
				</select>
			</td>
			<td>
				<input type="text" name="notes" value="<!-- TMPL_VAR name="notes" -->" size="20" maxlength="255" />
			</td>
		</tr>
	<!-- /TMPL_LOOP -->
	<!-- TMPL_UNLESS name="hassubscriptionexpired" -->
		<tr>
			<td>
				Manual issue <input type="text" name="serialseq" size="30" maxlength="100" />
			</td>
			<td>
				<input type="text" name="planneddate" size="10" maxlength="15" />
			</td>
			<td>
				<input type="hidden" name="serialid" value="0" />
				<select name="status" size="1">
						<option value="2">Arrived</option>
						<option value="3" selected>Late</option>
						<option value="4">Missing</option>
				</select>
			</td>
			<td>&nbsp;</td>
		</tr>
	<!-- /TMPL_UNLESS -->
	</table>
	<p><input type="submit" value="Save changes" accesskey="w" class="submit" /></p>
	<!-- TMPL_IF name="hassubscriptionexpired" -->
		<p>Subscription has expired. Waited last issue status can't be changed. <a href="#" onClick="popup()" class="submit">Renew</a> your subscription</p>
	<!-- /TMPL_IF -->
	</form>	</div>

<div class="data">
	<form method="post" action="statecollection.pl">
		<input type="hidden" name="op" value="modsubscriptionhistory" />
		<input type="hidden" name="serial" value="<!-- TMPL_VAR name="serial" -->" />
		<input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->" />
		<input type="hidden" name="user" value="<!-- TMPL_VAR name="user" -->" />
		<table>
		<caption>Subscription Summary</caption>
		<tr><th><label>Librarian:</label></th><td><!-- TMPL_VAR name="user" --></td></tr>
		<tr><th><label for="histstartdate">Beginnning date<sup>*</sup>:</label></th><td><input type="text" name="histstartdate" id="histstartdate" value="<!-- TMPL_VAR name="histstartdate" -->" /></td></tr>
		<tr><th><label for="enddate">End date:</label></th><td><input type="text" id="enddate" name="enddate" value="<!-- TMPL_VAR name="enddate" -->" /></td></tr>
		<tr><th><label for="recievedlist">Received Issues:</label></th><td><textarea id="recievedlist" name="recievedlist" cols="40" rows="2"><!-- TMPL_VAR name="recievedlist" --></textarea></td></tr>
		<tr><th><label for="missinglist">Missing Issues:</label></th><td><textarea id="missinglist" name="missinglist" cols="40" rows="2"><!-- TMPL_VAR name="missinglist" --></textarea></td></tr>
		<tr><th><label for="opacnote">OPAC Note:</label></th><td><textarea id="opacnote" name="opacnote" cols="40" rows="2"><!-- TMPL_VAR name="opacnote" --></textarea></td></tr>
<!-- 		<tr><th><label for="librariannote">Intranet Note:</label></th><td><textarea name="librariannote" cols="40" id="librariannote" rows="2"><!-- TMPL_VAR name="librariannote" --></textarea></td></tr> -->
</table>
		<p><input type="submit" value="Save changes" class="submit" /></p>
	</form>
</div>
</div>

<script language="JavaScript" type="text/javascript">

function popup()
{
	 window.open("subscription-renew.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid">","subscription renewal",'width=700,height=400,toolbar=false,scrollbars=yes');
}
</script>

<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->