From: Kyle Huckins Date: Sun, 8 Dec 2019 04:37:47 +0000 (+0000) Subject: Associate Materials Updates X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8d23d9aec74f82c2226998ba68abd0b01aba784e;p=working%2FEvergreen.git Associate Materials Updates - Ensure Shelving Location input checkbox ticks when selecting a value. - Ensure temporary value inputs are not cleared when entering a new item. - Fully select contents of Barcode input field when selected. - Clear bBarcode input upon hitting enter. Signed-off-by: Kyle Huckins Changes to be committed: modified: Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-associate-material.component.html modified: Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-associate-material.component.ts --- 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 488eea7191..65dfb71a77 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 @@ -19,7 +19,9 @@
Barcode
- +
@@ -107,7 +109,8 @@
+ [(ngModel)]="tempLocation" (oninput)="isModifyingLocation = true" + (valueChange)="isModifyingLocation = true">
diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-associate-material.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-associate-material.component.ts index a6c1971e6e..404451ac0a 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-associate-material.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-associate-material.component.ts @@ -100,12 +100,12 @@ export class CourseAssociateMaterialComponent extends DialogComponent { tempStatus: this.tempStatus, currentCourse: this.currentCourse } + this.barcodeInput = null; - this.pcrud.search('acp', {barcode: barcode}, { + this.pcrud.search('acp', {barcode: args.barcode}, { flesh: 3, flesh_fields: {acp: ['call_number']} }).subscribe(item => { let associatedMaterial = this.courseSvc.associateMaterials(item, args); - console.log(associatedMaterial); associatedMaterial.material.then(res => { item = associatedMaterial.item; let new_cn = item.call_number().label();