Bug 4255 - Add item type to facet list
authorMeenakshi.R <meenakshi.r@osslabs.biz>
Wed, 30 May 2012 10:36:33 +0000 (16:06 +0530)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 20 Jun 2012 20:27:21 +0000 (22:27 +0200)
commit8bd8aba577c18dc302c8684869d72fa3ab2ce71a
tree956f0060fd12d939f780fabdbdd4b51c216363de
parent7bc4a6025b5e87457504fedf9e5324ac530f6547
Bug 4255 - Add item type to facet list

This is for MARC 21 only.

Made following changed:

- In getFacets in C4/Koha.pm added item type facet for 952y and 942c
- In getRecords in C4:Search.pm added code to get description of itemtype codes
- facets.inc in both staff and opac to show item types related label in the facets block

To test:

Add records such that a certain itype (say BK) is present in both 942c and 952y in two DIFFERENT records.

Run a search where both test records are present. Test to see if itype types are presented in the facets block (both OPAC and staff).

Click on the itype (say BK), both the test records should appear in the refined results. This shows that the feature works for both 942c and 952y.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Ian Walls <koha.sekjal@gmail.com>
QA Comment: fixed capitalization in template includes according to HTML4 coding
guideline ("Item types" instead of "ItemTypes")

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
C4/Koha.pm
C4/Search.pm
catalogue/search.pl
koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc
koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc
opac/opac-search.pl