Bugzilla – Attachment 12084 Details for
Bug 8523
Authority hierarchies only support UNIMARC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8523: fix translatability
Bug-8523-fix-translatability.patch (text/plain), 1.65 KB, created by
Jared Camins-Esakov
on 2012-09-09 17:03:54 UTC
(
hide
)
Description:
Bug 8523: fix translatability
Filename:
MIME Type:
Creator:
Jared Camins-Esakov
Created:
2012-09-09 17:03:54 UTC
Size:
1.65 KB
patch
obsolete
>From add90a6c1111b802a92ad85ecf25377301e3f2b9 Mon Sep 17 00:00:00 2001 >From: Jared Camins-Esakov <jcamins@cpbibliography.com> >Date: Sun, 9 Sep 2012 13:10:25 -0400 >Subject: [PATCH] Bug 8523: fix translatability >Content-Type: text/plain; charset="UTF-8" > >The translator script was unable to handle arrayrefs in TT, so this >patch modifies the way the hierarchy generator recurses to avoid the >need for them. >--- > .../prog/en/includes/opac-authorities.inc | 9 ++++++--- > 1 files changed, 6 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/opac-authorities.inc b/koha-tmpl/opac-tmpl/prog/en/includes/opac-authorities.inc >index 4b5776f..4c927d3 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/includes/opac-authorities.inc >+++ b/koha-tmpl/opac-tmpl/prog/en/includes/opac-authorities.inc >@@ -1,5 +1,9 @@ > [% BLOCK showhierarchy %] > [% FOREACH tree IN trees %] >+ [% PROCESS showtree tree = tree %] >+ [% END %] >+[% END %] >+[% BLOCK showtree %] > <ul class="hierarchy"> > [% FOREACH node IN tree %] > <li id="hier[% node.authid %]" class="[% node.class %] authnode"> >@@ -8,13 +12,12 @@ > [% ELSE %] > <a href="opac-authoritiesdetail.pl?authid=[% node.authid %]" title="Term">[% node.value %]</a> > [% END %] >- [% IF ( node.children.size > 0 ) %] >- [% PROCESS showhierarchy trees = [ node.children ] %] >+ [% IF ( node.children && node.children.size > 0 ) %] >+ [% PROCESS showtree tree = node.children %] > [% END %] > </li> > [% END %] > </ul> >- [% END %] > [% END %] > > [% BLOCK authtypelabel %] >-- >1.7.2.5
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 8523
:
11360
|
11885
|
12083
|
12084
|
12086
|
12089
|
12092
|
12097
|
12100
|
12101
|
12125
|
12565