Bug 22302: Make ITEMTYPECAT descriptions fallback to lib description if no opac description
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Joy Nelson <joy@bywatersolutions.com> (cherry picked from commitb985cf5b88) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit2a6c77f6aa) Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
This commit is contained in:
parent
20fd3d519b
commit
350cdb06ad
|
|
@ -102,7 +102,7 @@ sub GetItemTypesCategorized {
|
|||
SELECT itemtype, description, imageurl, hideinopac, 0 as 'iscat' FROM itemtypes WHERE ISNULL(searchcategory) or length(searchcategory) = 0
|
||||
UNION
|
||||
SELECT DISTINCT searchcategory AS `itemtype`,
|
||||
authorised_values.lib_opac AS description,
|
||||
COALESCE(authorised_values.lib_opac,authorised_values.lib) AS description,
|
||||
authorised_values.imageurl AS imageurl,
|
||||
hideinopac, 1 as 'iscat'
|
||||
FROM itemtypes
|
||||
|
|
@ -110,7 +110,7 @@ sub GetItemTypesCategorized {
|
|||
WHERE searchcategory > '' and hideinopac=1
|
||||
UNION
|
||||
SELECT DISTINCT searchcategory AS `itemtype`,
|
||||
authorised_values.lib_opac AS description,
|
||||
COALESCE(authorised_values.lib_opac,authorised_values.lib) AS description,
|
||||
authorised_values.imageurl AS imageurl,
|
||||
hideinopac, 1 as 'iscat'
|
||||
FROM itemtypes
|
||||
|
|
|
|||
Loading…
Reference in New Issue