[Koha-patches] [PATCH] [3.0.x](bug #4259) add serials information in normal views
Nahuel ANGELINETTI
nahuel.angelinetti at biblibre.com
Wed Feb 24 11:46:40 CET 2010
This add serials information imported from keyword mapping in normal views.
---
catalogue/detail.pl | 2 ++
.../prog/en/modules/catalogue/detail.tmpl | 5 +++++
.../opac-tmpl/prog/en/modules/opac-detail.tmpl | 5 +++++
opac/opac-detail.pl | 7 +++++--
4 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/catalogue/detail.pl b/catalogue/detail.pl
index a615f16..51791fd 100755
--- a/catalogue/detail.pl
+++ b/catalogue/detail.pl
@@ -67,6 +67,7 @@ my $marcsubjctsarray = GetMarcSubjects( $record, $marcflavour );
my $marcseriesarray = GetMarcSeries($record,$marcflavour);
my $marcurlsarray = GetMarcUrls ($record,$marcflavour);
my $subtitle = GetRecordValue('subtitle', $record, $fw);
+my $serialsinformation = GetRecordValue('serialsinformation', $record, $fw);
# Get Branches, Itemtypes and Locations
my $branches = GetBranches();
@@ -173,6 +174,7 @@ $template->param(
MARCSERIES => $marcseriesarray,
MARCURLS => $marcurlsarray,
subtitle => $subtitle,
+ serialsinformation => $serialsinformation,
itemdata_ccode => $itemfields{ccode},
itemdata_enumchron => $itemfields{enumchron},
itemdata_uri => $itemfields{uri},
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 d2acef7..799a99e 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl
@@ -88,6 +88,11 @@ function verify_images() {
<!-- TMPL_IF name="pages" --> <!-- /TMPL_IF --><!-- TMPL_VAR name="pages" --> <!-- TMPL_IF NAME="illus" --><!-- TMPL_VAR NAME="illus" --><!-- /TMPL_IF -->
<!-- TMPL_IF name="size" --><!-- TMPL_VAR name="size" --><!-- /TMPL_IF -->
</li>
+ <!-- TMPL_IF NAME="serialsinformation" -->
+ <li><strong>Serials information:</strong>
+ <!-- TMPL_LOOP NAME="serialsinformation" --><!-- TMPL_VAR NAME="subfield" --><!-- /TMPL_LOOP -->
+ </li>
+ <!-- /TMPL_IF -->
<!-- TMPL_IF name="MARCURLS" --><li>
<strong>Online Resources:</strong>
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 24234be..7c5404d 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl
@@ -162,6 +162,11 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
</span>
<!-- /TMPL_IF -->
+ <!-- TMPL_IF NAME="serialsinformation" -->
+ <span class="results_summary"><span class="label">Serials information: </span>
+ <!-- TMPL_LOOP NAME="serialsinformation" --><!-- TMPL_VAR NAME="subfield" --><!-- /TMPL_LOOP -->
+ </span>
+ <!-- /TMPL_IF -->
<!-- TMPL_IF name="unititles" -->
<span class="results_summary"><span class="label">Uniform titles:</span>
<!-- TMPL_LOOP name="unititles" -->
diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl
index 5940fb0..7a4861a 100755
--- a/opac/opac-detail.pl
+++ b/opac/opac-detail.pl
@@ -177,13 +177,15 @@ for my $itm (@items) {
## get notes and subjects from MARC record
my $dbh = C4::Context->dbh;
my $marcflavour = C4::Context->preference("marcflavour");
+my $fw = GetFrameworkCode($biblionumber);
my $normalized_isbn = GetNormalizedISBN($dat->{isbn},$record,$marcflavour);
my $marcnotesarray = GetMarcNotes ($record,$marcflavour);
my $marcauthorsarray = GetMarcAuthors ($record,$marcflavour);
my $marcsubjctsarray = GetMarcSubjects ($record,$marcflavour);
my $marcseriesarray = GetMarcSeries ($record,$marcflavour);
my $marcurlsarray = GetMarcUrls ($record,$marcflavour);
-my $subtitle = GetRecordValue('subtitle', $record, GetFrameworkCode($biblionumber));
+my $subtitle = GetRecordValue('subtitle', $record, $fw);
+my $serialsinformation = GetRecordValue('serialsinformation', $record, $fw);
$template->param(
normalized_oclc => GetNormalizedOCLCNumber($record,$marcflavour),
@@ -200,9 +202,10 @@ my $subtitle = GetRecordValue('subtitle', $record, GetFrameworkCode($bib
itemdata_enumchron => $itemfields{enumchron},
itemdata_uri => $itemfields{uri},
itemdata_copynumber => $itemfields{copynumber},
- itemdata_itemnotes => $itemfields{itemnotes},
+ itemdata_itemnotes => $itemfields{itemnotes},
authorised_value_images => $biblio_authorised_value_images,
subtitle => $subtitle,
+ serialsinformation => $serialsinformation,
);
foreach ( keys %{$dat} ) {
--
1.6.3.3
More information about the Koha-patches
mailing list