Skip to content

Commit

Permalink
altering a few components in src/app; they don't have corresponding f…
Browse files Browse the repository at this point in the history
…iles in src/themes/pedspace-custom/app so I guess it's okay that i'm doing it like this
  • Loading branch information
Arta Seyedian committed Jul 2, 2024
1 parent 8e0f950 commit 80ff9a9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export class ItemPageAbstractFieldComponent extends ItemPageFieldComponent {
];

/**
* Label i18n key for the rendered metadata
* Label i18n key for the rendered metadata ('item.page.abstract')
*/
label = 'item.page.abstract';
@Input() label: string;

/**
* Use the {@link MarkdownPipe} to render dc.description.abstract values
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Component, Input } from '@angular/core';

import { Item } from '../../../../../core/shared/item.model';
import { ItemPageFieldComponent } from '../item-page-field.component';

Expand All @@ -8,7 +7,7 @@ import { ItemPageFieldComponent } from '../item-page-field.component';
templateUrl: '../item-page-field.component.html'
})
/**
* This component is used for displaying the issue date (dc.date.issued) metadata of an item
* This component is used for displaying date metadata of an item
*/
export class ItemPageDateFieldComponent extends ItemPageFieldComponent {

Expand All @@ -21,19 +20,19 @@ export class ItemPageDateFieldComponent extends ItemPageFieldComponent {
* Separator string between multiple values of the metadata fields defined
* @type {string}
*/
separator = ', ';
@Input() separator: string = ', ';

/**
* Fields (schema.element.qualifier) used to render their values.
* In this component, we want to display values for metadata 'dc.date.issued'
* By default, it displays values for metadata 'dc.date.issued'
*/
fields: string[] = [
@Input() fields: string[] = [
'dc.date.issued'
];

/**
* Label i18n key for the rendered metadata
* By default, it uses 'item.page.date'
*/
label = 'item.page.date';

@Input() label: string = 'item.page.date';
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ import { getRemoteDataPayload } from '../../../../core/shared/operators';
})
export class ItemPageFieldComponent {

constructor(protected browseDefinitionDataService: BrowseDefinitionDataService) {
}
constructor(protected browseDefinitionDataService: BrowseDefinitionDataService) {}

/**
* The item to display metadata for
Expand All @@ -28,28 +27,28 @@ export class ItemPageFieldComponent {
/**
* Whether the {@link MarkdownPipe} should be used to render this metadata.
*/
enableMarkdown = false;
@Input() enableMarkdown = false;

/**
* Fields (schema.element.qualifier) used to render their values.
*/
fields: string[];
@Input() fields: string[];

/**
* Label i18n key for the rendered metadata
*/
label: string;
@Input() label: string;

/**
* Separator string between multiple values of the metadata fields defined
* @type {string}
*/
separator = '<br/>';
@Input() separator = '<br/>';

/**
* Whether any valid HTTP(S) URL should be rendered as a link
*/
urlRegex?: string;
@Input() urlRegex?: string;

/**
* Return browse definition that matches any field used in this component if it is configured as a browse
Expand Down

0 comments on commit 80ff9a9

Please sign in to comment.