Summary: | A minor change in the “GetMarcAuthors” function of C4/Biblio.pm would allow differentiate the type of authors in the templates | ||
---|---|---|---|
Product: | Koha | Reporter: | Chris Cormack <chris> |
Component: | Staff interface | Assignee: | Paul Poulain <paul.poulain> |
Status: | CLOSED FIXED | QA Contact: | Bugs List <koha-bugs> |
Severity: | enhancement | ||
Priority: | P4 | CC: | gmcharlt, jcamins, paul.poulain |
Version: | 3.8 | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | Sponsored | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: |
proposed patch
BZ4376 Minor change in GetMarcAuthor BZ4376 Minor change in GetMarcAuthor |
Description
Chris Cormack
2010-05-21 01:26:26 UTC
Created attachment 4808 [details] [review] proposed patch the subfieldcode suggested already in master. Just adding the tag The change seems like a good idea, but are there instances where we need to make use of this? XSLT gives us an alternate tool for it in most cases. Paul's comment suggests that to make this work we have to create new sections in the template for each MARC flavor. Owen: I agree that with XSLT this feature will be less and less used, and will probably be deprecated soon. In the meantime, a library that want to have local templates can have a good use of this feature. So I propose to add it for now, and when XSLT is used everywhere we will completly remove the GetMarcAuthor anyway (and GetMarcSubject, and many other things in Biblio.pm) Updating Version : This ENH will be for Koha 3.8 Bug versionned for master. entries will be made against rel_3_8 once the patch has been applied (see thread about that on koha-devel yesterday) Created attachment 7097 [details] [review] 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. QA comment: trivial change Created attachment 7214 [details] [review] 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. Comment on attachment 7097 [details] [review] BZ4376 Minor change in GetMarcAuthor obsoleted by my patch, there is an encoding problem with this one There have been no further reports of problems so I am marking this bug resolved. |