From: Kyle Huckins Date: Fri, 6 Dec 2019 08:30:04 +0000 (+0000) Subject: Angular Catalog Course Links Course Page Integration X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b9960168ce7296c467e8831e2b63c8db9433adbd;p=working%2FEvergreen.git Angular Catalog Course Links Course Page Integration - Change links in Angular Catalog to navigate the user to the Admin Course Page. Signed-off-by: Kyle Huckins Changes to be committed: modified: Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html modified: Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.html modified: Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.ts modified: Open-ILS/src/eg2/src/app/staff/share/bib-summary/bib-summary.component.html --- diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html b/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html index ab44c6cb33..21b8d9fa96 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html +++ b/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html @@ -36,7 +36,11 @@ -
{{course.course_number()}}
+
+ + {{course.course_number()}} + +
diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.html b/Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.html index fa83758754..27a0d545ec 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.html +++ b/Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.html @@ -127,7 +127,12 @@
Associated Courses: - {{courseNames.join(', ')}}
+ + + {{course.name()}} ({{course.course_number()}}) + {{isLast ? '' : ', '}} + +
diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.ts index 5e777d5246..d587f5a0ba 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.ts @@ -31,7 +31,7 @@ export class ResultRecordComponent implements OnInit, OnDestroy { isRecordSelected: boolean; basketSub: Subscription; has_course: boolean; - courseNames: any[] = []; + courses: any[] = []; constructor( private router: Router, @@ -67,8 +67,7 @@ export class ResultRecordComponent implements OnInit, OnDestroy { if (res) { this.course.fetchCopiesInCourseFromRecord(recordId).then(course_list => { Object.keys(course_list).forEach(key => { - this.courseNames.push(course_list[key].name() + - "(" + course_list[key].course_number() + ")"); + this.courses.push(course_list[key]); }); this.has_course = true; }); diff --git a/Open-ILS/src/eg2/src/app/staff/share/bib-summary/bib-summary.component.html b/Open-ILS/src/eg2/src/app/staff/share/bib-summary/bib-summary.component.html index 0dea4ba486..a8e39532d3 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/bib-summary/bib-summary.component.html +++ b/Open-ILS/src/eg2/src/app/staff/share/bib-summary/bib-summary.component.html @@ -100,7 +100,11 @@
  • Course Name:
    -
    {{course.name()}}
    +
    Course Number:
    {{course.course_number()}}
    Section Number: