Bugzilla – Attachment 7214 Details for
Bug 4376
A minor change in the “GetMarcAuthors” function of C4/Biblio.pm would allow differentiate the type of authors in the templates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
BZ4376 Minor change in GetMarcAuthor
BZ4376-Minor-change-in-GetMarcAuthor.patch (text/plain), 1.38 KB, created by
Paul Poulain
on 2012-01-18 11:07:55 UTC
(
hide
)
Description:
BZ4376 Minor change in GetMarcAuthor
Filename:
MIME Type:
Creator:
Paul Poulain
Created:
2012-01-18 11:07:55 UTC
Size:
1.38 KB
patch
obsolete
>From b70e4f3d6d3ebca19c83a96de6770e572620c651 Mon Sep 17 00:00:00 2001 >From: Paul Poulain <paul.poulain@biblibre.com> >Date: Tue, 2 Aug 2011 16:54:38 +0200 >Subject: [PATCH] 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. >--- > C4/Biblio.pm | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 9e84ffd..ad559fa 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -1612,7 +1612,8 @@ sub GetMarcAuthors { > $separator = C4::Context->preference('authoritysep'); > } > push @subfields_loop, >- { code => $subfieldcode, >+ { tag => $field->tag(), >+ code => $subfieldcode, > value => $value, > link_loop => \@this_link_loop, > separator => $separator >-- >1.7.5.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 4376
:
4808
|
7097
| 7214