Bugzilla – Attachment 98411 Details for
Bug 22302
ITEMTYPECAT description doesn't fall back to description if OPAC description is empty
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22302: Make ITEMTYPECAT descriptions fallback to lib description if no opac description
Bug-22302-Make-ITEMTYPECAT-descriptions-fallback-t.patch (text/plain), 1.54 KB, created by
ByWater Sandboxes
on 2020-02-04 15:42:25 UTC
(
hide
)
Description:
Bug 22302: Make ITEMTYPECAT descriptions fallback to lib description if no opac description
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2020-02-04 15:42:25 UTC
Size:
1.54 KB
patch
obsolete
>From e727f26b45ff017d0e0af7be5778e3e77cdec54d Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 4 Feb 2020 14:16:26 +0000 >Subject: [PATCH] Bug 22302: Make ITEMTYPECAT descriptions fallback to lib > description if no opac description > >Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> >--- > C4/Koha.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Koha.pm b/C4/Koha.pm >index 1cfcba6a26..39bfb4fdee 100644 >--- a/C4/Koha.pm >+++ b/C4/Koha.pm >@@ -101,7 +101,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 >@@ -109,7 +109,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 >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22302
:
98395
|
98396
|
98410
|
98411
|
98443
|
98444