From: Bill Erickson Date: Thu, 27 Jun 2019 21:42:35 +0000 (-0400) Subject: angular flat marc edit X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a6cb69f84328de59ea68654fc87a9c69e0bf4a6d;p=working%2FEvergreen.git angular flat marc edit Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editor.component.ts b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editor.component.ts index e2a91f47a9..b0addaca51 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editor.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editor.component.ts @@ -66,7 +66,7 @@ export class MarcEditorComponent implements OnInit { src => this.sources.push({id: +src.id(), label: src.source()}), _ => {}, () => { - this.sources = this.sources.sort((a, b) => + this.sources = this.sources.sort((a, b) => a.label.toLowerCase() < b.label.toLowerCase() ? -1 : 1 ); } diff --git a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/flat-editor.component.ts b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/flat-editor.component.ts index 74b0729e92..b5e2f41277 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/flat-editor.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/flat-editor.component.ts @@ -31,11 +31,11 @@ export class MarcFlatEditorComponent implements OnInit { ngOnInit() {} - // When we have breaker text, limit the vertical expansion of the + // When we have breaker text, limit the vertical expansion of the // text area to the size of the data plus a little padding. rowCount(): number { if (this.record && this.record.breakerText) { - return this.record.breakerText.split(/\n/).length + 2; + return this.record.breakerText.split(/\n/).length + 2; } return 40; } diff --git a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/marc-edit.module.ts b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/marc-edit.module.ts index 1992fcbfd0..a18eb0b7a4 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/marc-edit.module.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/marc-edit.module.ts @@ -1,5 +1,5 @@ import {NgModule} from '@angular/core'; -import {StaffCommonModule} from '@eg/staff/common.module'; +import {StaffCommonModule} from '@eg/staff/common.module'; import {MarcEditorComponent} from './editor.component'; import {MarcRichEditorComponent} from './rich-editor.component'; import {MarcFlatEditorComponent} from './flat-editor.component';