Bugzilla – Attachment 60892 Details for
Bug 17169
Add facets for ccode to elasticsearch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17169 - Use CCODE descriptions instead of codes
Bug-17169---Use-CCODE-descriptions-instead-of-code.patch (text/plain), 2.45 KB, created by
Jonathan Druart
on 2017-03-07 18:36:09 UTC
(
hide
)
Description:
Bug 17169 - Use CCODE descriptions instead of codes
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-03-07 18:36:09 UTC
Size:
2.45 KB
patch
obsolete
>From a8513a12d382c120409140496b9a5a2d31197260 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 16 Feb 2017 14:26:20 +0000 >Subject: [PATCH] Bug 17169 - Use CCODE descriptions instead of codes > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc | 2 ++ > koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc | 2 ++ > 2 files changed, 4 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc >index 887c38c..572be95 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc >@@ -1,3 +1,4 @@ >+[% USE AuthorisedValues %] > [% IF ( opacfacets ) %] > [% IF ( facets_loop ) %] > <div id="search-facets"> >@@ -27,6 +28,7 @@ > [% url = BLOCK %][% url %][% "&sort_by=" _ sort_by |url %][% END %] > [% END %] > [% FOREACH facet IN facets_loo.facets %] >+ [% IF facets_loo.type_label_CollectionCodes %][% SET facet.facet_label_value = AuthorisedValues.GetByCode('CCODE',facet.facet_label_value,0) || facet.facet_label_value %][% END %] > <li> > [% IF facet.active %] > [% SET local_url = url _ "&nolimit=" _ facet.type_link_value _ ":" _ facet.facet_link_value %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc >index b1505b7..e89a693 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc >@@ -1,3 +1,4 @@ >+[% USE AuthorisedValues %] > [% IF ( opacfacets && facets_loop && total ) %] > <div id="search-facets"> > <h4><a href="#" class="menu-collapse-toggle">Refine your search</a></h4> >@@ -36,6 +37,7 @@ > [% url = BLOCK %][% url %][% "&sort_by=" _ sort_by |url %][% END %] > [% END %] > [% FOREACH facet IN facets_loo.facets %] >+ [% IF facets_loo.type_label_CollectionCodes %][% SET facet.facet_label_value = AuthorisedValues.GetByCode('CCODE',facet.facet_label_value,1) || facet.facet_label_value %][% END %] > <li> > [% IF facet.active %] > [% SET local_url = url _ "&nolimit=" _ facet.type_link_value _ ":" _ facet.facet_link_value %] >-- >2.1.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 17169
:
56141
|
59946
|
59947
|
60354
|
60664
|
60741
|
60890
|
60891
| 60892