Course materials: Course search in OPAC requires inclusion of archived courses

Bug #1913340 reported by Beth Willis
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned
3.7
Fix Released
Medium
Unassigned

Bug Description

EG 3.6

The new Course Materials development includes a tab in the catalog to "Search for Courses." If a user selects this tab, they can search for courses owned by their library. If no search terms are entered, all active courses should be returned. However, this does not happen; instead, no courses are returned. If the user selects the check box to “Include Archived Courses”, the search does return all courses, both archived and active.

Users should be able to search the catalog for active courses, without including archived courses.

Beth Willis (willis-a)
summary: - Course materials: Course search requires inclusion of archived courses
+ Course materials: Course search in OPAC requires inclusion of archived
+ courses
Revision history for this message
Beth Willis (willis-a) wrote :

Throughout the Evergreen catalog, performing a BLANK search or a wildcard (*) search will return search results. For example, performing BLANK keyword search limited by the "Microform" format will return all records with this format. The course search should work the same way.

Currently, performing a BLANK course search returns no results--unless the "Include Archived Courses" checkbox is selected. Additionally, a wildcard search generates an internal server error.

EG 3-7

Kyle Huckins (khuckins)
Changed in evergreen:
assignee: nobody → Kyle Huckins (khuckins)
Revision history for this message
Kyle Huckins (khuckins) wrote :

I've pushed a fix here: https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/khuckins/lp1913340-OPAC-course-search-archived-results

Searching a BLANK or wildcard (*) search will return search results as expected

Changed in evergreen:
assignee: Kyle Huckins (khuckins) → nobody
tags: added: pullrequest
Michele Morgan (mmorgan)
Changed in evergreen:
milestone: none → 3.8.1
Revision history for this message
Beth Willis (willis-a) wrote :

EG 3-8-0

I can confirm that searching with a BLANK or wildcard (*) returns all active courses owned by the designated library, without the need to check the option to "Include Archived Courses?" The same search including this option appropriately returns all courses owned by the selected library.

But, the courses are displayed ordered by database ID. This arrangement is not intuitive and may prove confusing to users. It would be preferable if they displayed alphabetically by course number.

Revision history for this message
Christine Burns (christine-burns) wrote :

Searching with a BLANK or wildcard (*) returns all active courses owned by the designated library. As Beth noted it would be preferable if the search results displayed alphabetically by course number, but I still want to sign off on this bug. Note I tested in 3.7 and search results are displayed ordered by database ID. I think the search results display order should be split off into a new bug.

I have tested this code and consent to signing off on it with my name, Christine Burns, and my email address, <email address hidden>

tags: added: signedoff
Revision history for this message
Jane Sandberg (sandbergja) wrote :

Thank you, Kyle, Christine, and Beth! This works well. Pushed to 3.7 and above. I will leave it to others to open a ticket about the results ordering.

Changed in evergreen:
importance: Undecided → Medium
status: New → Fix Committed
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.