[Koha-patches] [PATCH] Bug 10893: fix location facet in UNIMARC
Mathieu Saby
mathieu.saby at univ-rennes2.fr
Mon Sep 16 11:49:02 CEST 2013
Location facet in UNIMARC is void. In the code, it is build on 995$c, while location is store in 995$e (see record.abs).
This patch replace 995$c with 995$e in Koha.pm
To test :
1. Use a UNIMARC Koha instance with ONE branch, and SEVERAL locations
2. Make a search in opac and staff interface : no location facet on the left side of the screen
3. apply the patch
4. Make the same search : location facets will be displayed
---
C4/Koha.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/C4/Koha.pm b/C4/Koha.pm
index c5b32a6..0e5b3a0 100644
--- a/C4/Koha.pm
+++ b/C4/Koha.pm
@@ -721,7 +721,7 @@ sub getFacets {
$library_facet = {
idx => 'location',
label => 'Location',
- tags => [ qw/ 995c / ],
+ tags => [ qw/ 995e / ],
};
}
push( @$facets, $library_facet );
--
1.7.9.5
--
Mathieu Saby
Service d'Informatique Documentaire
Service Commun de la Documentation
Université Rennes 2
Téléphone : 02 99 14 12 65
Courriel : mathieu.saby at univ-rennes2.fr
More information about the Koha-patches
mailing list