]> git.koha-community.org Git - koha.git/commit
BZ4376 Minor change in GetMarcAuthor
authorPaul Poulain <paul.poulain@biblibre.com>
Tue, 2 Aug 2011 14:54:38 +0000 (16:54 +0200)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Fri, 3 Feb 2012 01:34:41 +0000 (20:34 -0500)
commit01829af25e76eba31c6b7fbee96ba57f2c6a0fd4
tree11824d2000f7983a7d542bf58611b3e119232a40
parent88ee85b33ac5d910ec003602f57c360581a097f1
BZ4376 Minor change in GetMarcAuthor

A minor change in the GetMarcAuthors function of C4/Biblio.pm allow differentiate the type of authors in the templates

This change 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 -->

(html template syntax, but also applicable to template toolkit)

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Works as claimed and doesn't break existing functionality.
(cherry picked from commit b70e4f3d6d3ebca19c83a96de6770e572620c651)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
C4/Biblio.pm