View | Details | Raw Unified | Return to bug 2812
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl (-3 / +7 lines)
Lines 348-356 $.tablesorter.addParser({ Link Here
348
                    <!-- /TMPL_IF -->
348
                    <!-- /TMPL_IF -->
349
                </td>
349
                </td>
350
		<td>
350
		<td>
351
		<form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
351
		<!-- TMPL_IF NAME="cancelable" -->
352
		<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
352
			<form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
353
		<input type="submit" name="submit" class="icon delete cancel" value="Cancel" onclick="return confirmDelete('Are you sure you want to cancel this hold?');" /></form>
353
			<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
354
			<input type="submit" name="submit" class="icon delete cancel" value="Cancel" onclick="return confirmDelete('Are you sure you want to cancel this hold?');" /></form>
355
		<!-- TMPL_ELSE -->
356
			&nbsp;
357
		<!-- /TMPL_IF -->
354
		</td>
358
		</td>
355
359
356
            </tr>
360
            </tr>
(-)a/opac/opac-user.pl (-1 / +4 lines)
Lines 241-246 foreach my $res (@reserves) { Link Here
241
        push @waiting, $res;
241
        push @waiting, $res;
242
        $wcount++;
242
        $wcount++;
243
    }
243
    }
244
    # can be cancelled
245
    #$res->{'cancelable'} = 1 if ($res->{'wait'} && $res->{'atdestination'} && $res->{'found'} ne "1");
246
    $res->{'cancelable'} = 1 if    ($res->{wait} and not $res->{found}) or (not $res->{wait} and not $res->{intransit});
247
    
244
}
248
}
245
249
246
$template->param( WAITING => \@waiting );
250
$template->param( WAITING => \@waiting );
247
- 

Return to bug 2812