more fixes
authorJane Sandberg <sandbej@linnbenton.edu>
Tue, 1 Sep 2020 22:45:12 +0000 (15:45 -0700)
committerJane Sandberg <sandbej@linnbenton.edu>
Tue, 1 Sep 2020 22:45:12 +0000 (15:45 -0700)
Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-associate-material.component.html
Open-ILS/src/eg2/src/app/staff/share/marc-edit/simplified-editor/simplified-editor.component.ts

index 2b3cdfa..3c79f79 100644 (file)
       </div>
 
       <div class="mt-3" [ngClass]="isDialog() ? 'col-md-12' : 'col-md-8'">
-        <eg-grid #materialsGrid [dataSource]="materialsDataSource" [useLocalSort]="true">
+        <eg-grid #materialsGrid [dataSource]="materialsDataSource" [useLocalSort]="true" [disablePaging]="true">
           <eg-grid-toolbar-action label="Remove Selected" i18n-label (onClick)="deleteSelectedMaterials($event)">
           </eg-grid-toolbar-action>
           <eg-grid-toolbar-action label="Edit Selected" i18n-label (onClick)="editSelectedMaterials($event)">
index 15db235..d723156 100644 (file)
@@ -87,7 +87,7 @@ export class MarcSimplifiedEditorComponent implements AfterViewInit, OnInit {
     }
 
     ngAfterViewInit() {
-        this.tagTable.loadTags({marcRecordType: 'biblio', ffType: 'BKS'}).then(table => {
+        this.tagTable.loadTags({marcRecordType: 'biblio', ffType: DEFAULT_RECORD_TYPE}).then(table => {
             this.fields.forEach((field) => {
                 field.subfields.forEach((subfield) => {
                     this.subfieldLabels[this.editorFieldIdentifier(field, subfield)] = table.getSubfieldLabel(field.tag, subfield[0]);
@@ -97,7 +97,7 @@ export class MarcSimplifiedEditorComponent implements AfterViewInit, OnInit {
     }
 
     emitXml() {
-        const record = new MarcRecord('<record xmlns="http://www.loc.gov/MARC21/slim"></record>');
+        const record = new MarcRecord('<record xmlns="http://www.loc.gov/MARC21/slim"><leader>00000 a</leader></record>');
         // need to add the value to field.subfields[0][1]
         this.fields.forEach((field) => {
             field.subfields.forEach((subfield) => {