From c83e1a17598bcf4234b825f54cc880a69fb1e041 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 2 Jul 2010 11:31:54 -0400 Subject: [PATCH] Partial fix for Bug 4924, Public/Internal notes missing in staff normal view This fix adds only public notes. A div is added as a hook for styling --- catalogue/detail.pl | 3 ++- .../prog/en/modules/catalogue/detail.tmpl | 2 ++ 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index 85819c0..faffc4e 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -159,7 +159,7 @@ foreach my $item (@items) { $item->{'location'} = $shelflocations->{$shelfcode} if ( defined( $shelfcode ) && defined($shelflocations) && exists( $shelflocations->{$shelfcode} ) ); my $ccode = $item->{'ccode'}; $item->{'ccode'} = $collections->{$ccode} if ( defined( $ccode ) && defined($collections) && exists( $collections->{$ccode} ) ); - foreach (qw(ccode enumchron copynumber uri)) { + foreach (qw(ccode enumchron copynumber itemnotes uri)) { $itemfields{$_} = 1 if ( $item->{$_} ); } @@ -212,6 +212,7 @@ $template->param( itemdata_enumchron => $itemfields{enumchron}, itemdata_uri => $itemfields{uri}, itemdata_copynumber => $itemfields{copynumber}, + itemdata_itemnotes => $itemfields{itemnotes}, volinfo => $itemfields{enumchron} || $dat->{'serial'} , z3950_search_params => C4::Search::z3950_search_args($dat), C4::Search::enabled_staff_search_views, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl index 1861028..547a36d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl @@ -214,6 +214,7 @@ function verify_images() { Publication Details URL Copy No. + Public notes Spine Label @@ -333,6 +334,7 @@ function verify_images() { +
&item=">Fix Itemtype -- 1.7.0.4