fix for bug 1892: When checking in item on hold...

Makes the print slip and confirm button show up on an in-library hold as well as a transfer. It also adds an ignore button that hides the hold dialog.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Jesse Weaver 2008-07-18 12:58:01 -05:00 committed by Joshua Ferraro
parent 98406923bb
commit fba4191412

View file

@ -214,10 +214,12 @@ function Dopop(link) {
<form method="post" action="returns.pl" class="confirm">
<!-- TMPL_IF name="transfertodo" -->
<input type="submit" class="approve" value="Confirm hold and transfer" />
<input type="submit" value="Print Slip and Confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?transfer=1&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;biblionumber=<!-- TMPL_VAR NAME="itembiblionumber" -->&amp;op=slip'); this.form.submit();" />
<input type="submit" value="Print Slip and Confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?transfer=1&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;biblionumber=<!-- TMPL_VAR NAME="itembiblionumber" -->&amp;op=slip'); this.form.submit();" />
<!-- TMPL_ELSE -->
<input type="submit" class="approve" value="Confirm hold" />
<input type="submit" value="Print Slip and Confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;biblionumber=<!-- TMPL_VAR NAME="itembiblionumber" -->&amp;op=slip'); this.form.submit();" />
<!-- /TMPL_IF -->
<input type="submit" class="deny" value="Ignore" onclick="$('.dialog:visible').hide('slow'); return false;" />
<!-- 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" -->" />