]> git.evergreen-ils.org Git - 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:47 +0000 (11:42 -0400)
commited7bdb048484567d85dc63754fc7ae2ed9929cfe
tree1a4981c339ef4c8060d7bfde9692f364f17983c4
parenteacd9cf7d455ab74453f1d7176e9a8280aae3b1f
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