Bug 8026

Summary: Facets code should allow to build facets on controlfields
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: MARC Bibliographic data supportAssignee: Galen Charlton <gmcharlt>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P5 - low CC: dcook, mathsabypro
Version: master   
Hardware: All   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10734
Change sponsored?: --- Patch complexity: ---
Who signed the patch off: Text to go in the release notes:
Version(s) released in:

Description Katrin Fischer 2012-04-30 08:40:09 UTC
In order to build a facet for the document type (serial, analytic, set etc.) facets need to be build using the controlfields and specified position.
Comment 1 David Cook 2013-08-15 05:12:10 UTC
(In reply to Katrin Fischer from comment #0)
> In order to build a facet for the document type (serial, analytic, set etc.)
> facets need to be build using the controlfields and specified position.

The Leader is also necessary to build facets for document/record type. 

A Record Type facet should probably operate the same as the XSLT (i.e. use the Leader and 008 to determine a  meaningful record type).

A Publication date facet would also be nice, although I'm not sure what the best way to do that would be. I suppose we could use the 260$c or 264$c...but maybe the 008 dates are the best to use for it. Mind you, Date1 and Date2 can get somewhat complicated depending on the type of date that is encoded...

What are other types of facets that we could/should be getting out of the controlfields? 

I've already made a rudimentary record type facet using the Leader using just Leader position 06, but I'm sure that we could do better...
Comment 2 mathieu saby 2013-09-15 17:20:10 UTC
Very needed!
Comment 3 mathieu saby 2013-09-16 07:44:14 UTC
I have a plan to improve facets. Could you please take a look and comment the bug if you have any remarks?
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10891

M. Saby