From: Jane Sandberg Date: Fri, 24 Jul 2020 05:02:35 +0000 (-0700) Subject: LP1849212: Course browse and search can be called without locg param in URL X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3fe6c84b5a3c7b22a91bae4b7189f0432e4c430f;p=Evergreen.git LP1849212: Course browse and search can be called without locg param in URL Signed-off-by: Jane Sandberg Signed-off-by: Michele Morgan Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/templates/opac/parts/course_search/qtype_selector.tt2 b/Open-ILS/src/templates/opac/parts/course_search/qtype_selector.tt2 index 279b1c84ea..858d271b7f 100644 --- a/Open-ILS/src/templates/opac/parts/course_search/qtype_selector.tt2 +++ b/Open-ILS/src/templates/opac/parts/course_search/qtype_selector.tt2 @@ -3,8 +3,13 @@ {value => "course_number", label => l("Course Number"), plural_label => l('Course Numbers'), browse => 1} ]; -IF ctx.get_org_setting( - CGI.param('locg'), 'circ.course_materials_browse_by_instructor'); +IF CGI.param('locg'); + locg = CGI.param('locg'); +ELSE; + locg = 1; +END; + +IF ctx.get_org_setting(locg, 'circ.course_materials_browse_by_instructor'); query_types.push({ value => "instructor", label => l("Instructor"),