From: Nahuel ANGELINETTI Date: Thu, 28 May 2009 13:12:51 +0000 (+0200) Subject: (bug #3267) show items.uri in opac and intranet X-Git-Tag: n_acq_a_porter~22 X-Git-Url: http://git.rot13.org/?p=koha.git;a=commitdiff_plain;h=f278d41c838595bd3e3394190c5cc633aef95dc8 (bug #3267) show items.uri in opac and intranet This add a column in normal view, with a link to items.uri URL if it exists. --- diff --git a/catalogue/detail.pl b/catalogue/detail.pl index a9c7f0ea6c..716d65c7ab 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -148,7 +148,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)) { + foreach (qw(ccode enumchron copynumber uri)) { $itemfields{$_} = 1 if ( $item->{$_} ); } @@ -194,6 +194,7 @@ $template->param( subtitle => $subtitle, itemdata_ccode => $itemfields{ccode}, itemdata_enumchron => $itemfields{enumchron}, + itemdata_uri => $itemfields{uri}, itemdata_copynumber => $itemfields{copynumber}, volinfo => $itemfields{enumchron} || $dat->{'serial'} , z3950_search_params => C4::Search::z3950_search_args($dat), 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 de8bfd0ee2..cb9dae5984 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl @@ -170,6 +170,7 @@ function verify_images() { Last seen Barcode Publication Details + URL Copy No. @@ -271,6 +272,9 @@ function verify_images() { () + + "> + diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl index 5209c68482..648ecc27aa 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl @@ -306,6 +306,7 @@ Collection Call Number Vol Info + URL Copy Serial Data @@ -320,6 +321,7 @@ (&shelfbrowse_itemnumber=#shelfbrowser">Browse Shelf) + "> diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 679a48b6ee..c928ddb69f 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -151,7 +151,7 @@ for my $itm (@items) { $itm->{'imageurl'} = getitemtypeimagelocation( 'opac', $itemtypes->{ $itm->{itype} }->{'imageurl'} ); $itm->{'description'} = $itemtypes->{ $itm->{itype} }->{'description'}; } - foreach (qw(ccode enumchron copynumber itemnotes)) { + foreach (qw(ccode enumchron copynumber itemnotes uri)) { $itemfields{$_} = 1 if ($itm->{$_}); } @@ -198,6 +198,7 @@ my $subtitle = C4::Biblio::get_koha_field_from_marc('bibliosubtitle', 's RequestOnOpac => C4::Context->preference("RequestOnOpac"), itemdata_ccode => $itemfields{ccode}, itemdata_enumchron => $itemfields{enumchron}, + itemdata_uri => $itemfields{uri}, itemdata_copynumber => $itemfields{copynumber}, itemdata_itemnotes => $itemfields{itemnotes}, authorised_value_images => $biblio_authorised_value_images,