From 326af18039d97c752ec790da03d3e3786e933c6e Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Sat, 6 Oct 2007 16:08:37 -0500 Subject: [PATCH] more work on 1481: adding back drop-downs for Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- catalogue/moredetail.pl | 3 +++ .../prog/en/modules/catalogue/moredetail.tmpl | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl index 3c504c68ac..d0c3fadd7b 100755 --- a/catalogue/moredetail.pl +++ b/catalogue/moredetail.pl @@ -53,6 +53,7 @@ my $bi=$query->param('bi'); $bi = $biblionumber unless $bi; my $data=GetBiblioItemData($bi); my $dewey = $data->{'dewey'}; + # FIXME Dewey is a string, not a number, & we should use a function # $dewey =~ s/0+$//; # if ($dewey eq "000.") { $dewey = "";}; @@ -76,6 +77,8 @@ my $order = GetOrder($ordernum); $results[0]=$data; foreach my $item (@$items){ + $item->{itemlostloop}= GetAuthorisedValues('ITEMLOST'); + $item->{itemdamagedloop}= GetAuthorisedValues('DAMAGED'); $item->{'replacementprice'}=sprintf("%.2f", $item->{'replacementprice'}); $item->{'datelastborrowed'}= format_date($item->{'datelastborrowed'}); $item->{'dateaccessioned'} = format_date($item->{'dateaccessioned'}); 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 d3c837af2a..91afa51f4e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tmpl @@ -62,7 +62,7 @@ NAME="biblionumber"-->&itemnumber=">Modif Last Borrower 2:
Replacement Price:
- Item Status Summary Item Lost Item Damaged Item Withdrawn
+ Item Status Summary Item Lost Item Damaged Item Withdrawn
Damaged Status: @@ -70,8 +70,8 @@ NAME="biblionumber"-->&itemnumber=">Modif " /> " /> " /> - + @@ -92,7 +92,7 @@ NAME="biblionumber"-->&itemnumber=">Modif " /> -" /> +" /> @@ -109,7 +109,7 @@ NAME="biblionumber"-->&itemnumber=">Modif " /> " /> " /> -" /> +" /> RestoreMake Withdrawn" /> -- 2.39.5