[Koha-bugs] [Bug 4376] New: A minor change in the “GetMarcAuthors” function of C4 /Biblio.pm would allow differentiate the type of authors in the templates
bugzilla-daemon at kohaorg.ec2.liblime.com
bugzilla-daemon at kohaorg.ec2.liblime.com
Wed Apr 7 18:39:51 CEST 2010
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=4376
Summary: A minor change in the “GetMarcAuthors” function of
C4/Biblio.pm would allow differentiate the type of
authors in the templates
Product: Koha
Version: rel_3_0
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: Templates
AssignedTo: oleonard at myacpl.org
ReportedBy: toni.rosa at gmail.com
Estimated Hours: 0.25
Change sponsored?: ---
A change in this line (1472) would suffice...
Current Line:
push @subfields_loop, {value => $value, link_loop => \@this_link_loop,
separator => $separator} unless ($authors_subfield->[0] eq '9' );
New proposed line:
push @subfields_loop, {tag=> $field->tag(),code => $subfieldcode, value =>
$value, link_loop => \@this_link_loop, separator => $separator} unless
($authors_subfield->[0] eq '9' );
This change would allow doing things like this in the templates:
<TMPL_IF EXPR="tag == 700" && code eq 'a' >
<strong>Author:</strong>
<!-- TMPL_ELSE -->
<TMPL_IF EXPR="tag == 710" && code eq 'a' >
<strong>Corpotation Author:</strong>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
--
Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the Koha-bugs
mailing list