[Koha-patches] [PATCH] Add specific MARC21 tags to Topics (su-to) facet

Frederic Demians f.demians at tamil.fr
Tue May 20 21:34:11 CEST 2008


Add MARC tag [690-699] to su-to facet. Required by MARC21
sites using local subjets in this tag range.

This addition shows that facets definition should be moved in a
Zebra related config file as previously discussed. I suggest
creating a facet config file per language in:

   /etc/zebra/lang_def/en/facets.conf
   /etc/zebra/lang_def/fr/facets.conf

or one multinlingual file:

   /etc/zebra/koha-facets.conf
---
 C4/Koha.pm |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
 mode change 100644 => 100755 C4/Koha.pm

diff --git a/C4/Koha.pm b/C4/Koha.pm
old mode 100644
new mode 100755
index af9b913..01dc6a6
--- a/C4/Koha.pm
+++ b/C4/Koha.pm
@@ -725,7 +725,9 @@ sub getFacets {
             {
                 link_value  => 'su-to',
                 label_value => 'Topics',
-                tags        => ['650'],
+                tags        => ['650', 
+                                '690', '691', '692', '693', '694', '695',
+                                '696', '697', '698', '699' ],
                 subfield    => 'a',
             },
 
-- 
1.5.3.7




More information about the Koha-patches mailing list