Skip to content

Commit 8ee6a4c

Browse files
committed
Updated MetadataFieldComponent to display metadata fields with prefix dc
or ds.
1 parent 57432de commit 8ee6a4c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/dso-shared/dso-edit-metadata/metadata-field-selector/metadata-field-selector.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ export class MetadataFieldSelectorComponent implements OnInit, OnDestroy, AfterV
279279
metadataFieldsToString(),
280280
// DATASHARE - Start
281281
// Custom code added to only display Dublin Core metadata field in Metadata Selector.
282-
// Filter metadata items that start with 'dc.'
283-
map((fields: string[]) => fields.filter(field => field.startsWith('dc.'))),
282+
// Filter metadata items that start with 'dc.' or 'ds.'
283+
map((fields: string[]) => fields.filter(field => field.startsWith('dc.') || field.startsWith('ds.'))),
284284
// DATASHARE - End
285285
);
286286
}

src/app/item-page/simple/field-components/file-section/file-section.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export class FileSectionComponent implements OnInit {
171171
const updated: Bitstream[] = this.bitstreams$.getValue();
172172
// For debugging.
173173
licenseRD.payload.page.forEach(bitstream => {
174-
console.log('Bitstream:', bitstream;
174+
console.log('Bitstream:', bitstream);
175175
});
176176
this.bitstreams$.next([...updated, ...licenseRD.payload.page]);
177177
}

0 commit comments

Comments
 (0)