[Koha-patches] [PATCH] If itemnumber is sent to catalogue/moredetail.pl use it

Joe Atzberger joe.atzberger at liblime.com
Thu Aug 28 22:10:58 CEST 2008


> +if ($itemnumber) {
> +    my @selected_items = ();
> +    foreach my $item (@items) {
> +        push @selected_tems, $item if $item->{'itemnumber'} ==
> $itemnumber;
>     }
> +    @items = @selected_items;
> +}
> +foreach my $item (@items){
>


Or just:

($itemnumber) and @items = (grep {$item->{'itemnumber'} == $itemnumber}
@items);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-patches/attachments/20080828/36666f67/attachment-0002.htm>


More information about the Koha-patches mailing list