Signed-off-by: Joshua Ferraro <jmf@liblime.com>
<!-- /TMPL_LOOP -->
</select>
</p>
<!-- /TMPL_LOOP -->
</select>
</p>
+ <!-- TMPL_IF NAME="forloan" -->
<p> <label for="requestany">Place a hold on the next available copy </label>
<input type="checkbox" id="requestany" name="request" checked="checked" value="Any" />
</p>
<p> <label for="requestany">Place a hold on the next available copy </label>
<input type="checkbox" id="requestany" name="request" checked="checked" value="Any" />
</p>
<input type="hidden" name="biblioitem" value="<!-- TMPL_VAR NAME="biblioitemnumber" -->" />
<input type="submit" value="Place Hold" />
<input type="hidden" name="all" value="1"/></p>
<input type="hidden" name="place_reserve" value="1"/>
<input type="hidden" name="biblioitem" value="<!-- TMPL_VAR NAME="biblioitemnumber" -->" />
<input type="submit" value="Place Hold" />
<input type="hidden" name="all" value="1"/></p>
<input type="hidden" name="place_reserve" value="1"/>
<!-- TMPL_LOOP name="bibitemloop" -->
<!-- TMPL_UNLESS NAME="item-level_itypes" -->
<!-- TMPL_LOOP name="bibitemloop" -->
<!-- TMPL_UNLESS NAME="item-level_itypes" -->
my @duedates;
#die @items;
my %itemhash;
my @duedates;
#die @items;
my %itemhash;
foreach my $itm (@items) {
push @duedates, { date_due => format_date( $itm->{'date_due'} ) }
if defined $itm->{'date_due'};
foreach my $itm (@items) {
push @duedates, { date_due => format_date( $itm->{'date_due'} ) }
if defined $itm->{'date_due'};
}
}
$itemhash{$itm->{'itemnumber'}}=$itm;
}
}
$itemhash{$itm->{'itemnumber'}}=$itm;
+ if (!$itm->{'notforloan'} && !$itm->{'itemnotforloan'}){
+ $forloan=1;
+ }
}
$template->param( ITEMS => \@duedates );
}
$template->param( ITEMS => \@duedates );
# display infos
$template->param(
# display infos
$template->param(
bibitemloop => \@bibitemloop,
);
output_html_with_http_headers $query, $cookie, $template->output;
bibitemloop => \@bibitemloop,
);
output_html_with_http_headers $query, $cookie, $template->output;