From c5f0c3fc2119bc24dbd48492a375557600d39f1a Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 24 Aug 2015 11:10:58 -0400 Subject: [PATCH] Bug 13918 [QA Followup] --- Koha/Biblio.pm | 12 +++++++++--- .../opac-tmpl/bootstrap/en/modules/opac-user.tt | 6 +++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm index 2145a04..ee6fa94 100644 --- a/Koha/Biblio.pm +++ b/Koha/Biblio.pm @@ -37,14 +37,20 @@ Koha::Biblio - Koha Biblio Object class =cut -=head3 subtitle +=head3 subtitles + +my @subtitles = $biblio->subtitles(); + +Returns list of subtitles for a record. + +Keyword to MARC mapping for subtitle must be set for this method to return any possible values. =cut -sub subtitle { +sub subtitles { my ( $self ) = @_; - return GetRecordValue( 'subtitle', GetMarcBiblio( $self->id() ), GetFrameworkCode( $self->id() ) ); + return GetRecordValue( 'subtitle', GetMarcBiblio( $self->id ), $self->frameworkcode ); } diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index 3a2cc76..3cbc83d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -527,7 +527,7 @@ [% RESERVE.biblio.title %] - [% FOREACH subtitl IN RESERVE.biblio.subtitle %] + [% FOREACH subtitl IN RESERVE.biblio.subtitles %] [% subtitl.subfield %] [% END %] [% RESERVE.item.enumchron %] @@ -612,9 +612,9 @@