Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
{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"),