LP1906058: Course-term map interface only allow reasonable mappings user/sandbergja/lp1906058_course_term_mapping
authorJane Sandberg <sandbej@linnbenton.edu>
Fri, 23 Jul 2021 17:15:13 +0000 (10:15 -0700)
committerJane Sandberg <sandbej@linnbenton.edu>
Fri, 23 Jul 2021 17:15:13 +0000 (10:15 -0700)
commit8773849478069a34fca371918a794a26b104965b
tree0b4293585232ab5cfdeeff9e07a49381a5bb83d7
parent65ab68d475f06be4a50849f29206e71366db057f
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>
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