]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP1906058: Course-term map interface only allow reasonable mappings
authorJane Sandberg <sandbej@linnbenton.edu>
Fri, 23 Jul 2021 17:15:13 +0000 (10:15 -0700)
committerGalen Charlton <gmc@equinoxOLI.org>
Sun, 15 Aug 2021 15:42:26 +0000 (11:42 -0400)
commitb7a17a3bb5e232578496d9fba3ac28410478fd3b
tree6bbd4f95d28c1898c6b9191f13996d30c2db0a8d
parentdea8389e48aeba0a638ef9ada373ecb8b7be5cc2
LP1906058: Course-term map interface only allow reasonable mappings

Different libraries will use different sets of course terms.  In an
academic library context, for example, a consortium may include
libraries with very different start and end dates to their terms/semesters,
different numbers of terms/year, etc.

This commit changes the interface to only allow users to associate
a course with a term from the same library or one of its ancestors.

To test:
1. Create many courses and course terms and many different OUs.
2. On the course list, click "Terms taught".  Associate some courses
and course terms.  Make sure that you aren't able to associate your
course with any course terms that would not be reasonable for the
course's library.
3. Edit a course, and choose the Course terms tab.  Continue to associate
courses and terms, and make sure the mappings are reasonable.

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Beth Willis <willis@noblenet.org>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-page.component.html
Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-page.component.ts
Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-reserves.module.ts
Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-term-map-grid.component.html [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-term-map-grid.component.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-term-map.component.ts