Lines 4-12
Link Here
|
4 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
5 |
<script type="text/javascript"> |
5 |
<script type="text/javascript"> |
6 |
//<![CDATA[ |
6 |
//<![CDATA[ |
7 |
function Dopop(link) { |
7 |
function doPopUp(link) { |
8 |
var newin=window.open(link,'popup','width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top'); |
8 |
var newin=window.open(link,'popup','width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top'); |
9 |
} |
9 |
} |
|
|
10 |
function doDelayedPopUp( link ) { |
11 |
var newin = delayPopup( link, "Loading Slip", 5 ); |
12 |
} |
10 |
$(document).ready(function() { |
13 |
$(document).ready(function() { |
11 |
$("#exemptcheck").change(function(){ |
14 |
$("#exemptcheck").change(function(){ |
12 |
if(this.checked == true) { |
15 |
if(this.checked == true) { |
Lines 87-93
function Dopop(link) {
Link Here
|
87 |
</div> |
90 |
</div> |
88 |
[% END %] |
91 |
[% END %] |
89 |
<!-- case of a mistake in transfer loop --> |
92 |
<!-- case of a mistake in transfer loop --> |
90 |
[% IF ( WrongTransfer ) %]<div id="return2" class="dialog message"><!-- WrongTransfer --><h3>Please return <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title |html %]</a> to [% TransferWaitingAt %]</h3><h3><a href="#" onclick="Dopop('transfer-slip.pl?transferitem=[% itemnumber %]&&branchcode=[% homebranch %]&op=slip'); return true;">Print Slip</a> or <a href="/cgi-bin/koha/circ/returns.pl?itemnumber=[% itemnumber %]&canceltransfer=1">Cancel Transfer</a></h3> |
93 |
[% IF ( WrongTransfer ) %]<div id="return2" class="dialog message"><!-- WrongTransfer --><h3>Please return <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title |html %]</a> to [% TransferWaitingAt %]</h3><h3><a href="#" onclick="doPopUp('/cgi-bin/koha/circ/transfer-slip.pl?transferitem=[% itemnumber %]&&branchcode=[% homebranch %]&op=slip'); return true;">Print Slip</a> or <a href="/cgi-bin/koha/circ/returns.pl?itemnumber=[% itemnumber %]&canceltransfer=1">Cancel Transfer</a></h3> |
91 |
[% IF ( wborcnum ) %]<h5>Hold for:</h5> |
94 |
[% IF ( wborcnum ) %]<h5>Hold for:</h5> |
92 |
<ul><li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]"> |
95 |
<ul><li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]"> |
93 |
[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li> |
96 |
[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li> |
Lines 103-109
function Dopop(link) {
Link Here
|
103 |
<input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt %]" /> |
106 |
<input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt %]" /> |
104 |
<input type="hidden" name="WT-From" value="[% wtransfertFrom %]" /> |
107 |
<input type="hidden" name="WT-From" value="[% wtransfertFrom %]" /> |
105 |
<input type="submit" class="approve" value="Confirm" /> |
108 |
<input type="submit" class="approve" value="Confirm" /> |
106 |
<input type="submit" value="Print Slip and Confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?transfer=1&borrowernumber=[% borrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip'); this.form.submit();" /> |
109 |
<input type="submit" value="Print Slip and Confirm" class="print" onclick="doDelayedPopUp('/cgi-bin/koha/circ/hold-transfer-slip.pl?transfer=1&borrowernumber=[% borrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip'); this.form.submit();" /> |
107 |
</form> |
110 |
</form> |
108 |
[% END %]</div> |
111 |
[% END %]</div> |
109 |
[% END %] |
112 |
[% END %] |
Lines 139-145
function Dopop(link) {
Link Here
|
139 |
<form method="post" action="returns.pl" class="confirm"> |
142 |
<form method="post" action="returns.pl" class="confirm"> |
140 |
<input type="submit" class="approve" value="Confirm" /> |
143 |
<input type="submit" class="approve" value="Confirm" /> |
141 |
|
144 |
|
142 |
<input type="submit" value="Print and Confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip'); this.form.submit();" /> |
145 |
<input type="submit" value="Print and Confirm" class="print" onclick="doDelayedPopUp('/cgi-bin/koha/circ/hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip'); this.form.submit();" /> |
143 |
[% FOREACH inputloo IN inputloop %] |
146 |
[% FOREACH inputloo IN inputloop %] |
144 |
<input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" /> |
147 |
<input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" /> |
145 |
<input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" /> |
148 |
<input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" /> |
Lines 181-187
function Dopop(link) {
Link Here
|
181 |
|
184 |
|
182 |
<form method="post" action="returns.pl" class="confirm"> |
185 |
<form method="post" action="returns.pl" class="confirm"> |
183 |
<input type="submit" class="approve" value="Confirm" /> |
186 |
<input type="submit" class="approve" value="Confirm" /> |
184 |
<input type="submit" value="Print Slip and Confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?transfer=1&borrowernumber=[% borrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip'); this.form.submit();" /> |
187 |
<input type="submit" value="Print Slip and Confirm" class="print" onclick="doDelayedPopUp('/cgi-bin/koha/circ/hold-transfer-slip.pl?transfer=1&borrowernumber=[% borrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip'); this.form.submit();" /> |
185 |
[% FOREACH inputloo IN inputloop %] |
188 |
[% FOREACH inputloo IN inputloop %] |
186 |
<input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" /> |
189 |
<input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" /> |
187 |
<input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" /> |
190 |
<input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" /> |
Lines 198-204
function Dopop(link) {
Link Here
|
198 |
[% IF ( transfer ) %] |
201 |
[% IF ( transfer ) %] |
199 |
<!-- transfer: item with no reservation, must be returned to its home library --> |
202 |
<!-- transfer: item with no reservation, must be returned to its home library --> |
200 |
<div id="return1" class="dialog message"> |
203 |
<div id="return1" class="dialog message"> |
201 |
<h3>Please return <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title or "item" |html %]</a> to [% homebranchname %]<br/>( <a href="#" onclick="Dopop('transfer-slip.pl?transferitem=[% itemnumber %]&branchcode=[% homebranch %]&op=slip'); return true;">Print Slip</a> )</h3> |
204 |
<h3>Please return <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title or "item" |html %]</a> to [% homebranchname %]<br/>( <a href="#" onclick="doPopUp('/cgi-bin/koha/circ/transfer-slip.pl?transferitem=[% itemnumber %]&branchcode=[% homebranch %]&op=slip'); return true;">Print Slip</a> )</h3> |
202 |
</div> |
205 |
</div> |
203 |
[% IF ( soundon ) %] |
206 |
[% IF ( soundon ) %] |
204 |
<audio src="/intranet-tmpl/prog/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio> |
207 |
<audio src="/intranet-tmpl/prog/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio> |
Lines 214-220
function Dopop(link) {
Link Here
|
214 |
Transfer Now?<br /> |
217 |
Transfer Now?<br /> |
215 |
<form method="post" action="returns.pl" name="mainform" id="mainform"> |
218 |
<form method="post" action="returns.pl" name="mainform" id="mainform"> |
216 |
[% IF itemnumber %] |
219 |
[% IF itemnumber %] |
217 |
<input type="submit" name="dotransfer" value="Yes, Print slip" class="print" onclick="Dopop('transfer-slip.pl?transferitem=[% itemnumber %]&&branchcode=[% homebranch %]&op=slip'); return true;" /> |
220 |
<input type="submit" name="dotransfer" value="Yes, Print slip" class="print" onclick="doPopUp('/cgi-bin/koha/circ/transfer-slip.pl?transferitem=[% itemnumber %]&&branchcode=[% homebranch %]&op=slip'); return true;" /> |
218 |
[% END %] |
221 |
[% END %] |
219 |
<input type="submit" name="dotransfer" value="Yes" class="submit" /> |
222 |
<input type="submit" name="dotransfer" value="Yes" class="submit" /> |
220 |
<input type="submit" name="notransfer" value="No" class="submit" /> |
223 |
<input type="submit" name="notransfer" value="No" class="submit" /> |
Lines 289-298
function Dopop(link) {
Link Here
|
289 |
<form method="post" action="returns.pl" class="confirm"> |
292 |
<form method="post" action="returns.pl" class="confirm"> |
290 |
[% IF ( transfertodo ) %] |
293 |
[% IF ( transfertodo ) %] |
291 |
<input type="submit" class="approve" value="Confirm hold and Transfer" /> |
294 |
<input type="submit" class="approve" value="Confirm hold and Transfer" /> |
292 |
<input type="submit" value="Print slip, Transfer, and Confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?transfer=1&borrowernumber=[% borrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip'); this.form.submit();" /> |
295 |
<input type="submit" value="Print slip, Transfer, and Confirm" class="print" onclick="doDelayedPopUp('/cgi-bin/koha/circ/hold-transfer-slip.pl?transfer=1&borrowernumber=[% borrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip'); this.form.submit();" /> |
293 |
[% ELSE %] |
296 |
[% ELSE %] |
294 |
<input type="submit" class="approve" value="Confirm hold" /> |
297 |
<input type="submit" class="approve" value="Confirm hold" /> |
295 |
<input type="submit" value="Print Slip and Confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip'); this.form.submit();" /> |
298 |
<input type="submit" value="Print Slip and Confirm" class="print" onclick="doDelayedPopUp('/cgi-bin/koha/circ/hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip'); this.form.submit();" /> |
296 |
[% END %] |
299 |
[% END %] |
297 |
<input type="submit" class="deny" value="Ignore" onclick="$('.dialog:visible').hide('slow'); $('#barcode').focus(); return false;" /> |
300 |
<input type="submit" class="deny" value="Ignore" onclick="$('.dialog:visible').hide('slow'); $('#barcode').focus(); return false;" /> |
298 |
[% FOREACH inputloo IN inputloop %] |
301 |
[% FOREACH inputloo IN inputloop %] |