<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- 流通: 館際互借<!-- TMPL_IF Name="returned" -->: <!-- TMPL_VAR Name="itemtitle" --><!-- /TMPL_IF --><!-- TMPL_INCLUDE NAME="doc-head-circ-close.inc" -->
<!-- TMPL_INCLUDE NAME="masthead.inc" -->
<!-- TMPL_INCLUDE NAME="circ-topmenu.inc" -->
<!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->

<div id="main">
<!-- TMPL_IF Name="found" -->
		<h3 class="alert">已經被預約<!-- TMPL_IF Name="waiting" --> (館藏已經<em>被寄送</em>) <!-- /TMPL_IF --></h3>
		<!-- TMPL_IF Name="waiting" -->
		<div class="items">
		<table>
		<caption><a href="/cgi-bin/koha/detail.pl?type=intra&bib=<!-- TMPL_VAR NAME="itembiblionumber" -->"><!-- TMPL_VAR Name="itemtitle" --></a></caption>
		<tr><th>讀者: </th><td>
			<ul>
						<li><a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->"><!-- TMPL_VAR Name="borcnum" --></a></li>
			<li><!-- TMPL_VAR Name="borsurname" -->, <!-- TMPL_VAR Name="borfirstname" --> </li>
			<li><!-- TMPL_VAR Name="borstraddress" --><br />
			<!-- TMPL_VAR Name="borcity" -->  <!-- TMPL_VAR NAME="borzip" --></li>
			<li><!-- TMPL_VAR Name="borphone" --></li>
			<!-- Display for NPL <!-- TMPL_IF NAME="boremail" --><li><!-- TMPL_UNLESS NAME="intransit" --><a href="/intranet-intranet-reserve-notify.php?bornum=<!-- TMPL_VAR NAME="bornum" -->&amp;biblionum=<!-- TMPL_VAR NAME="itembiblionumber" -->" onclick="window.open('/intranet-reserve-notify.php?bornum=<!-- TMPL_VAR NAME="bornum" -->&amp;biblionum=<!-- TMPL_VAR NAME="itembiblionumber" -->','notify','width=650,height=450,location=no,menubar=no,toolbar=no,scrollbars=yes'); return false;"><!-- /TMPL_UNLESS --><!-- TMPL_VAR Name="boremail" --><!-- TMPL_UNLESS NAME="intransit" --></a><!-- /TMPL_UNLESS --></li><!-- /TMPL_IF -->  // Display for NPL -->
<!-- Hide from NPL --><!-- TMPL_IF NAME="boremail" --><li><!-- TMPL_UNLESS NAME="intransit" --><a href="mailto:<!-- TMPL_VAR Name="boremail" -->"><!-- /TMPL_UNLESS --><!-- TMPL_VAR Name="boremail" --><!-- TMPL_UNLESS NAME="intransit" --></a><!-- /TMPL_UNLESS --></li><!-- /TMPL_IF --><!-- /Hide from NPL -->
<!-- TMPL_IF NAME="debarred" --><li class="error">讀者已經禁止</li><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="gonenoaddress" --><li class="error">讀者地址有問題</li><!-- /TMPL_IF -->
			</ul></td></tr>
	<tr><!-- TMPL_IF NAME="intransit" --><th>&nbsp;</th><td><strong>轉送</strong> 到 <!-- TMPL_VAR Name="branchname" --> </td><!-- TMPL_ELSE --><th>&nbsp;</th><td><strong>被保持</strong> 在 <!-- TMPL_VAR Name="branchname" --></td><!-- /TMPL_IF --></tr>
		</table></div><form method="post" action="returns.pl" name="mainform" id="mainform">
			<input type="submit" value="確認" class="submit" /><!-- TMPL_LOOP Name="inputloop" -->
				<input type="hidden" name="ri-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="barcode" -->" />
				<input type="hidden" name="dd-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="duedate" -->" />
				<input type="hidden" name="bn-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="bornum" -->" />
			<!-- /TMPL_LOOP -->
			<input type="hidden" name="barcode" value="0" />
			</form>
		
			
		<!-- /TMPL_IF -->
		<!-- TMPL_IF Name="diffbranch" -->
			<h3>館藏被寄存：</h3><br>
    	<div class="item">
		<table>
		<caption><a href="/cgi-bin/koha/detail.pl?type=intra&bib=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR Name="itemtitle" --></a></caption>
		<tr><th>讀者:</th><td><!-- TMPL_VAR Name="name" --></td></tr>
		</table></div><form method="post" action="returns.pl" name="mainform" id="mainform"><input type="submit" value="完成" />
			<!-- TMPL_LOOP Name="inputloop" -->
				<!-- TMPL_UNLESS Name="first" -->
					<input type="hidden" name="ri-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="barcode" -->" />
					<input type="hidden" name="dd-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="duedate" -->" />
					<input type="hidden" name="bn-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="bornum" -->" />
				<!-- /TMPL_UNLESS -->
			<!-- /TMPL_LOOP -->
			<input type="hidden" name="barcode" value="0" />
			
			</form>
		

		<!-- /TMPL_IF -->
		<!-- TMPL_IF Name="reserved" -->
			<div class="items">
			<table>
			<caption><a href="/cgi-bin/koha/detail.pl?type=intra&bib=<!-- TMPL_VAR NAME="itembiblionumber" -->"><!-- TMPL_VAR Name="itemtitle" --></a></caption>
			<tr><th>讀者: </th><td>
			<ul>
						<li><a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->"><!-- TMPL_VAR Name="borcnum" --></a></li>
			<li><!-- TMPL_VAR Name="borsurname" -->, <!-- TMPL_VAR Name="borfirstname" --> </li>
			<li><!-- TMPL_VAR Name="borstraddress" --><br />
			<!-- TMPL_VAR Name="borcity" --> <!-- TMPL_VAR NAME="borzip" --></li>
			<li><!-- TMPL_VAR Name="borphone" --></li>
			<!-- Display for NPL <!-- TMPL_IF NAME="boremail" --><li><!-- TMPL_UNLESS NAME="intransit" --><a href="/intranet-intranet-reserve-notify.php?bornum=<!-- TMPL_VAR NAME="bornum" -->&amp;biblionum=<!-- TMPL_VAR NAME="itembiblionumber" -->" onclick="window.open('/intranet-reserve-notify.php?bornum=<!-- TMPL_VAR NAME="bornum" -->&amp;biblionum=<!-- TMPL_VAR NAME="itembiblionumber" -->','notify','width=650,height=450,location=no,menubar=no,toolbar=no,scrollbars=yes'); return false;"><!-- /TMPL_UNLESS --><!-- TMPL_VAR Name="boremail" --><!-- TMPL_UNLESS NAME="intransit" --></a><!-- /TMPL_UNLESS --></li><!-- /TMPL_IF --> // Display for NPL -->
<!-- Hide from NPL --><!-- TMPL_IF NAME="boremail" --><li><!-- TMPL_UNLESS NAME="intransit" --><a href="mailto:<!-- TMPL_VAR Name="boremail" -->"><!-- /TMPL_UNLESS --><!-- TMPL_VAR Name="boremail" --><!-- TMPL_UNLESS NAME="intransit" --></a><!-- /TMPL_UNLESS --></li><!-- /TMPL_IF --><!-- /Hide from NPL -->
<!-- TMPL_IF NAME="debarred" --><li class="error">讀者被禁止</li><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="gonenoaddress" --><li class="error">讀者地址有問題</li><!-- /TMPL_IF -->
			</ul></td></tr>
			<tr><!-- TMPL_IF NAME="intransit" --><th>&nbsp;</th><td><strong>轉送</strong> 到 <!-- TMPL_VAR Name="branchname" --> </td><!-- TMPL_ELSE --><th>&nbsp;</th><td><strong>保持</strong> 在 <!-- TMPL_VAR Name="branchname" --></td><!-- /TMPL_IF --></tr></table>
			</div> <form method="post" action="returns.pl" name="mainform" id="mainform">
			<input type="submit" class="submit" value="確認" />
			<!-- TMPL_LOOP Name="inputloop" -->
				<input type="hidden" name="ri-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="barcode" -->" />
				<input type="hidden" name="dd-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="duedate" -->" />
				<input type="hidden" name="bn-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="bornum" -->" />
			<!-- /TMPL_LOOP -->
			<input type="hidden" name="itemnumber" value="<!-- TMPL_VAR Name="itemnumber" -->" />
			<input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR Name="bornum" -->" />
			<input type="hidden" name="resbarcode" value="<!-- TMPL_VAR Name="barcode" -->" /></form>
		<!-- /TMPL_IF -->
	
<!-- TMPL_ELSE -->
<h1>流通: 館際互借</h1>
	<div class="details">
	<form method="post" action="/cgi-bin/koha/circ/returns.pl"  name="mainform" id="mainform">
			<label for="barcode">輸入館藏條碼 (Barcode)</label>
			<input name="barcode" id="barcode" size="14" maxlength="14" class="unfocus" onfocus="this.className='focus'" onblur="this.className='unfocus'" />
			<input type="submit" class="submit" value="送出" />
			<!-- TMPL_LOOP Name="inputloop" -->
				<input type="hidden" name="ri-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="barcode" -->" />
				<input type="hidden" name="dd-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="duedate" -->" />
				<input type="hidden" name="bn-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="bornum" -->" />
			<!-- /TMPL_LOOP -->
		</form><!-- TMPL_IF NAME="errmsgloop" --><!-- TMPL_LOOP Name="errmsgloop" -->
				<div class="error">
				<!-- TMPL_IF Name="badbarcode" -->
					條碼裡沒有館藏: <!-- TMPL_VAR Name="msg" -->
				<!-- /TMPL_IF -->
				<!-- TMPL_IF Name="ispermanent" -->
					請回到  <!-- TMPL_VAR Name="msg" -->
				<!-- /TMPL_IF -->
				<!-- TMPL_IF Name="notissued" -->
					無法流通。
				<!-- /TMPL_IF -->
				<!-- TMPL_IF Name="waslost" -->
					館藏已經遺失，現在找到了。
				<!-- /TMPL_IF -->
				<!-- TMPL_IF Name="withdrawn" -->
					館藏被取消
				<!-- /TMPL_IF -->
				</div>
			<!-- /TMPL_LOOP --><!-- /TMPL_IF -->
</div>
<!-- /TMPL_IF -->

<!-- TMPL_IF Name="returned" -->
<div class="table"><table>
		<tr><th>館藏資訊</th><th>讀者資訊</th></tr>
		<tr><td><!-- TMPL_VAR Name="itemtitle" -->
		</td><td><div class="flags">
<a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR Name="ribornum" -->"><!-- TMPL_VAR Name="riborcnum" --></a>
		<!-- TMPL_VAR Name="riborsurname" -->, <!-- TMPL_VAR Name="ribortitle" --> <!-- TMPL_VAR Name="riborfirstname" -->

<!-- removed: removed-from-returns.tmpl -->
<!-- TMPL_IF Name="flagset" -->
 (<!-- TMPL_LOOP Name="flagloop" -->
<span class="error"><!-- TMPL_VAR Name="flag" -->, </span>
<!-- /TMPL_LOOP -->)<!-- /TMPL_IF --></div>
</td></tr></table>
</div>
<!-- /TMPL_IF -->



<!-- TMPL_IF Name="riloop" -->
<div class="table">
		<table>
		<caption>館藏歸還</caption>
		<tr><th>預定日期</th><th>條碼 (Barcode)</th><th>題名</th><th>作者</th><th>型式</th><th>讀者</th></tr>
		<!-- TMPL_LOOP Name="riloop" -->
			<tr><td><!-- TMPL_IF Name="duedate" --><!-- TMPL_IF Name="early" --><span class="error"><!-- /TMPL_IF --><!-- TMPL_VAR NAME="duedate" --><!-- TMPL_IF Name="early" --></span><!-- /TMPL_IF --><!-- TMPL_ELSE -->無法被借閱。<!-- /TMPL_IF --></td>
			<td>
			<a href="/cgi-bin/koha/detail.pl?bib=<!-- TMPL_VAR Name="itembiblionumber" -->&type=intra"><!-- TMPL_VAR Name="barcode" --></a></td>
			<td><!-- TMPL_VAR Name="itemtitle" --></td>
			<td><!-- TMPL_VAR Name="itemauthor" --></td>
			<td><!-- TMPL_VAR Name="itemtype" --></td>
			<td>
			<!-- TMPL_IF Name="duedate" -->
				<a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR Name="bornum" -->">
					<!-- TMPL_VAR Name="borcnum" -->
				</a> <!-- TMPL_VAR Name="borsurname" -->, <!-- TMPL_VAR Name="borfirstname" --> 
			<!-- TMPL_ELSE -->
			無法被借閱。
			<!-- /TMPL_IF -->
			</td></tr>
		<!-- /TMPL_LOOP -->
		</table>
		</div>
<!-- /TMPL_IF -->

</div>
<!-- TMPL_INCLUDE Name="intranet-bottom.inc" -->
