Course materials: search results should not display a blank "Section"

Bug #1913221 reported by Beth Willis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Low
Unassigned
3.6
Fix Released
Low
Unassigned

Bug Description

EG 3.6

In course materials is is possible, but not required, to associate a "section" with a course. The course "section" displays in the catalog. However, the course search results should not display a blank "section" if no section has been associated with the course. (Please see attached screenshot.)

Revision history for this message
Beth Willis (willis-a) wrote :
Changed in evergreen:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Jane Sandberg (sandbergja) wrote :

Here's a branch that gets rid of these blank sections: user/sandbergja/lp1913221_opac_no_blank_section_number

Here's a link: https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/sandbergja/lp1913221_opac_no_blank_section_number

Here are testing notes from the commit message:

1) Use the Library Settings Editor to turn on the Course Materials Module.
2) In Local administration, go to the course reserves list.
3) Add several courses, some with section numbers, others without.
4) In the OPAC, use the Course Search function to search for the courses you just added.
5) Notice that the search results page has a place for section numbers, whether or not the course has one.
6) Click into some of the courses. Notice that the course page also includes a place for section numbers, whether or not the course has one.
7) Apply this patch.
8) Repeat steps 4-6. Notice that the blank "section number" areas no longer appear.

tags: added: pullrequest
Revision history for this message
Beth Willis (willis-a) wrote :

I tested this fix on the Equinox Test Server 2.

In Course Materials I added some courses with and without section numbers.

In the OPAC, use the Course Search function to search for the courses I had added.

On the search results page, section numbers displayed only for courses for which I had assigned a section.

I clicked into the courses and found that section numbers only displayed for courses for which sections were assigned.

I am signing off with my name, Beth Willis, and my email address, <email address hidden>

tags: added: signedoff
Changed in evergreen:
milestone: none → 3.6.3
Changed in evergreen:
milestone: 3.6.3 → 3.6.4
Changed in evergreen:
milestone: 3.6.4 → 3.7.2
Revision history for this message
Galen Charlton (gmc) wrote :

Pushed to master, rel_3_7, and rel_3_6. Thanks, Jane and Beth!

Changed in evergreen:
status: Confirmed → 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.