Skip to content

Commit

Permalink
Add optional collection home page and descriptive collection content
Browse files Browse the repository at this point in the history
fields: Implement review requests

- Change to fetching collection content fields from dspace.collection.* metadata fields.

Sponsored-by: Auckland University of Technology, New Zealand
  • Loading branch information
alexklbuckley committed Sep 2, 2024
1 parent 15967d9 commit 12d1488
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,22 @@ export const collectionFormModels: DynamicFormControlModel[] = [
}),
new DynamicTextAreaModel({
id: 'customfooter',
name: 'collection.customfooter',
name: 'dspace.collection.customfooter',
spellCheck: environment.form.spellCheck,
}),
new DynamicTextAreaModel({
id: 'headertext',
name: 'collection.headertext',
name: 'dspace.collection.headertext',
spellCheck: environment.form.spellCheck,
}),
new DynamicTextAreaModel({
id: 'homepageintrotext',
name: 'collection.homepageintrotext',
name: 'dspace.collection.homepageintrotext',
spellCheck: environment.form.spellCheck,
}),
new DynamicTextAreaModel({
id: 'ownername',
name: 'collection.ownername',
name: 'dspace.collection.ownername',
spellCheck: environment.form.spellCheck,
}),
];
16 changes: 8 additions & 8 deletions src/app/core/shared/collection.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,34 +124,34 @@ export class Collection extends DSpaceObject implements ChildHALResource, Handle

/**
* The header text of this collection
* Corresponds to the metadata field collection.headertext
* Corresponds to the metadata field dspace.collection.headertext
*/
get customHeaderText(): string {
return this.firstMetadataValue('collection.headertext');
return this.firstMetadataValue('dspace.collection.headertext');

Check warning on line 130 in src/app/core/shared/collection.model.ts

View check run for this annotation

Codecov / codecov/patch

src/app/core/shared/collection.model.ts#L130

Added line #L130 was not covered by tests
}

/**
* The custom footer of this collection
* Corresponds to the metadata field collection.customfooter
* Corresponds to the metadata field dspace.collection.customfooter
*/
get customFooterText(): string {
return this.firstMetadataValue('collection.customfooter');
return this.firstMetadataValue('dspace.collection.customfooter');

Check warning on line 138 in src/app/core/shared/collection.model.ts

View check run for this annotation

Codecov / codecov/patch

src/app/core/shared/collection.model.ts#L138

Added line #L138 was not covered by tests
}

/**
* The home page intro text of this collection
* Corresponds to the metadata field collection.homepageintrotext
* Corresponds to the metadata field dspace.collection.homepageintrotext
*/
get customHomePageIntroText(): string {
return this.firstMetadataValue('collection.homepageintrotext');
return this.firstMetadataValue('dspace.collection.homepageintrotext');

Check warning on line 146 in src/app/core/shared/collection.model.ts

View check run for this annotation

Codecov / codecov/patch

src/app/core/shared/collection.model.ts#L146

Added line #L146 was not covered by tests
}

/**
* The owner name of this collection
* Corresponds to the metadata field collection.introtext
* Corresponds to the metadata field dspace.collection.introtext
*/
get customOwnerNameText(): string {
return this.firstMetadataValue('collection.ownername');
return this.firstMetadataValue('dspace.collection.ownername');

Check warning on line 154 in src/app/core/shared/collection.model.ts

View check run for this annotation

Codecov / codecov/patch

src/app/core/shared/collection.model.ts#L154

Added line #L154 was not covered by tests
}

/**
Expand Down

0 comments on commit 12d1488

Please sign in to comment.