[Koha-patches] [PATCH] Enhancement 5078 (Show preceding/succeeding entry in Staff normal view) [3.0.x and master]

Marcel de Rooy M.de.Rooy at rijksmuseum.nl
Mon Aug 2 13:23:31 CEST 2010


Staff normal view could be extended (optionally) with preceding or succeeding
entry (Continues/Continued by). This holds the older or newer name of a serial.
In the patch sent, this is arranged by using the fieldmapping table (Keywords
to MARC). This makes the feature optional; only if the keywords continues and
continuedby are added with corresponding marc field (MARC21 780t/785t), the
normal view [of the staff client] shows these entries.

Patch can be applied to 3.0.x and master (3.2).
---
 catalogue/detail.pl                                |    4 ++++
 .../prog/en/modules/catalogue/detail.tmpl          |   10 ++++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/catalogue/detail.pl b/catalogue/detail.pl
index a615f16..d051e6e 100755
--- a/catalogue/detail.pl
+++ b/catalogue/detail.pl
@@ -67,6 +67,8 @@ my $marcsubjctsarray = GetMarcSubjects( $record, $marcflavour );
 my $marcseriesarray  = GetMarcSeries($record,$marcflavour);
 my $marcurlsarray    = GetMarcUrls    ($record,$marcflavour);
 my $subtitle         = GetRecordValue('subtitle', $record, $fw);
+my $continues	     = GetRecordValue('continues', $record, $fw);
+my $continuedby      = GetRecordValue('continuedby', $record, $fw);
 
 # Get Branches, Itemtypes and Locations
 my $branches = GetBranches();
@@ -173,6 +175,8 @@ $template->param(
 	MARCSERIES  => $marcseriesarray,
 	MARCURLS => $marcurlsarray,
 	subtitle    => $subtitle,
+	continues   => $continues,
+	continuedby => $continuedby,
 	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..88159bf 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,16 @@ 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="continues" -->
+        <li><strong>Continues:</strong>
+  <!-- TMPL_LOOP name="continues" --> <!-- TMPL_VAR name="subfield" --><!-- TMPL_UNLESS __last__ -->;<!-- /TMPL_UNLESS --> <!-- /TMPL_LOOP -->
+	</li>
+<!-- /TMPL_IF -->
+<!-- TMPL_IF name="continuedby" -->
+        <li><strong>Continued by:</strong>
+  <!-- TMPL_LOOP name="continuedby" --> <!-- TMPL_VAR name="subfield" --><!-- TMPL_UNLESS __last__ -->;<!-- /TMPL_UNLESS --> <!-- /TMPL_LOOP -->
+	</li>
+<!-- /TMPL_IF -->
 <!-- TMPL_IF name="MARCURLS" --><li>
     
 	<strong>Online Resources:</strong>
-- 
1.6.0.6



More information about the Koha-patches mailing list