From: Michael Hafen Date: Fri, 29 Aug 2008 19:36:51 +0000 (-0600) Subject: If itemnumber is sent to catalogue/moredetail.pl use it X-Git-Tag: v3.00.04~656 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=626e66effa7cb20ac26017e6c74cd6084e7870c7;p=koha.git If itemnumber is sent to catalogue/moredetail.pl use it If itemnumber is part of the url for catalogue/moredetail.pl put it to use. This happens in members/boraccount.pl if a fine is attached to a barcode. This patch makes moredetail.pl show only the item specified by itemnumber. Implements some changes to the patch suggested on patches@koha.org give visual cue on UI and a link out. More friendly pruning of the other items. Thanks to Galen Charlton and Joe Atzberger Signed-off-by: Galen Charlton Signed-off-by: Chris Cormack --- diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl index 6d6e572dd0..6f626616f7 100755 --- a/catalogue/moredetail.pl +++ b/catalogue/moredetail.pl @@ -50,7 +50,8 @@ my ($template, $loggedinuser, $cookie) = get_template_and_user({ my $biblionumber=$query->param('biblionumber'); my $title=$query->param('title'); -# my $bi=$query->param('bi'); +my $itemnumber=$query->param('itemnumber'); +my $bi=$query->param('bi'); # $bi = $biblionumber unless $bi; my $data=GetBiblioData($biblionumber); my $dewey = $data->{'dewey'}; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tmpl index fd7a162583..fca96216b8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tmpl @@ -37,7 +37,7 @@
-
You are only viewing one item. &bi=#item&bi=#item