From 18e930a81a4337ed38bdc46c6aa0c6bb9e9ffdb2 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Mon, 17 Mar 2008 23:59:49 -0400 Subject: [PATCH] fix for bug 1625: Pass title, subtitle, and author variables to MARC views Signed-off-by: Joshua Ferraro --- koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tmpl | 3 ++- opac/opac-MARCdetail.pl | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tmpl index 69d5d128cd..ae192fbd03 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tmpl @@ -21,6 +21,7 @@

MARC View

">Normal View ">MARC View ">ISBD View
+

MARC biblio : ( )

@@ -144,4 +145,4 @@
- \ No newline at end of file + diff --git a/opac/opac-MARCdetail.pl b/opac/opac-MARCdetail.pl index 7381bfbd23..83597602be 100755 --- a/opac/opac-MARCdetail.pl +++ b/opac/opac-MARCdetail.pl @@ -57,7 +57,7 @@ my $dbh = C4::Context->dbh; my $biblionumber = $query->param('biblionumber'); my $itemtype = &GetFrameworkCode($biblionumber); my $tagslib = &GetMarcStructure( 0, $itemtype ); - +my $biblio = GetBiblioData($biblionumber); my $record = GetMarcBiblio($biblionumber); # open template @@ -70,6 +70,11 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( debug => 1, } ); + +$template->param( + bibliotitle => $biblio->{title}, +); + # adding the $RequestOnOpac param my $RequestOnOpac; if (C4::Context->preference("RequestOnOpac")) { -- 2.39.5