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

jmf at liblime.com jmf at liblime.com
Tue May 27 14:25:23 CEST 2008


On Tue, May 20, 2008 at 09:34:11PM +0200, Frederic Demians wrote:
> Add MARC tag [690-699] to su-to facet. Required by MARC21
> sites using local subjets in this tag range.
In fact, this isn't quite correct for a default setting as
any 9 fields (69X in this case) are local-use.

> 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
In fact, I believe the facets should be stored in the database,
the object was never intended to be stored hard-coded in the DB,
but was supposed to be moved into a table that would allow people
to add new facets on the fly, etc.

I'm going to withold this patch since it uses local-use fields
and these shouldn't be part of Koha proper.

Cheers,

Josh

> ---
>  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
> 
> _______________________________________________
> Koha-patches mailing list
> Koha-patches at lists.koha.org
> http://lists.koha.org/mailman/listinfo/koha-patches



More information about the Koha-patches mailing list