[Koha-bugs] [Bug 4376] A minor change in the “GetMarcAuthors” function of C4 /Biblio.pm would allow differentiate the type of authors in the templates

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 18 12:07:55 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4376

--- Comment #8 from Paul Poulain <paul.poulain at biblibre.com> 2012-01-18 11:07:55 UTC ---
Created attachment 7214
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=7214
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 at cpbibliography.com>
Works as claimed and doesn't break existing functionality.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list