From 0f73ede993f9d5a62926fb12832ce905cdf2a761 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Fri, 22 Jan 2021 16:33:15 -0800 Subject: [PATCH] LP1907977: Display course name and number in course material editor To test: 1) Go to Administration > Local > Course List 2) Make sure you have a variety of courses added. 3) Double click on a course that already has materials attached to it. 4) Go to the materials tab. 5) Select a material and choose Edit 6) Note that the Course combobox shows both the course number (HST243) and course name (History of Indonesia). 7) Note that you can blank out that field and type to complete to get other courses in the same format. Signed-off-by: Jane Sandberg Signed-off-by: Beth Willis Signed-off-by: Galen Charlton --- .../src/eg2/src/app/share/combobox/combobox.component.ts | 3 +++ .../course-associate-material.component.html | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts b/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts index fb8b900176..d21ad5f916 100644 --- a/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts +++ b/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts @@ -201,6 +201,9 @@ export class ComboboxComponent implements ControlValueAccessor, OnInit, AfterVie // FIXME: it would be cleaner if we could somehow use // the per-IDL-class ng-templates directly switch (this.idlClass) { + case 'acmc': + return fm.course_number() + ': ' + fm.name(); + break; case 'acqf': return fm.code() + ' (' + fm.year() + ')'; break; diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-associate-material.component.html b/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-associate-material.component.html index 5f392cdc16..aec9838d0b 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-associate-material.component.html +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-associate-material.component.html @@ -259,6 +259,13 @@ {{r.label}} + + + + @@ -266,7 +273,7 @@ - -- 2.43.2