-
Notifications
You must be signed in to change notification settings - Fork 496
Add lang attribute to elements showing metadata values #4776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
@tdonohue, tests are failing because of invalid values for the A lot of metadata fields have the language set to EDIT: after further research, I see that the difference is caused by different standards for in web technologies (IETF BCP 47) and Java/POSIX systems. |
|
As discussed today, I am going to open an issue on the REST side to discuss if we need to change the chosen standard for language codes. |
|
Hi @AndreaBarbasso, |
# Conflicts: # src/app/entity-groups/journal-entities/item-list-elements/search-result-list-elements/journal-issue/journal-issue-search-result-list-element.component.ts # src/app/entity-groups/journal-entities/item-list-elements/search-result-list-elements/journal-volume/journal-volume-search-result-list-element.component.ts # src/app/entity-groups/journal-entities/item-list-elements/search-result-list-elements/journal/journal-search-result-list-element.component.ts # src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/org-unit/org-unit-search-result-list-element.component.ts # src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/person/person-search-result-list-element.component.ts # src/app/entity-groups/research-entities/submission/item-list-elements/org-unit/org-unit-search-result-list-submission-element.component.ts # src/app/entity-groups/research-entities/submission/item-list-elements/person/person-search-result-list-submission-element.component.ts # src/app/shared/object-detail/my-dspace-result-detail-element/item-detail-preview/item-detail-preview-field/item-detail-preview-field.component.ts # src/app/shared/object-detail/my-dspace-result-detail-element/search-result-detail-element.component.ts # src/app/shared/object-grid/search-result-grid-element/search-result-grid-element.component.ts # src/app/shared/object-list/metadata-representation-list-element/browse-link/browse-link-metadata-list-element.component.ts # src/app/shared/object-list/metadata-representation-list-element/plain-text/plain-text-metadata-list-element.component.ts # src/app/shared/object-list/search-result-list-element/collection-search-result/collection-search-result-list-element.component.ts # src/app/shared/object-list/search-result-list-element/community-search-result/community-search-result-list-element.component.ts # src/app/shared/object-list/search-result-list-element/search-result-list-element.component.ts # src/themes/custom/app/shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component.ts
|
Hi @AndreaBarbasso, |
References
Description
Applied
langattribute to HTML tags containing metadata with an explicitlanguagevalue.Instructions for Reviewers
The
langattribute has been added via different approaches:innerHTML, that property has now been replaced with the newdsMetadatadirective, that accepts aMetadataValueand applies theinnerHTMLproperty and thelangattribute to its host element. Having a directive for this purpose is useful since we can later add other attributes if necessary and is more feasible than a component.langattribute has been applied to the closest available element.List of changes in this PR:
dsMetadatadirective;langattribute where using the directive could lead to unwanted behaviors.To test the PR, change any metadata
languagevalue and make sure that the value is added to thelangattribute of its containing element, wherever it's reflected (e.g. item pages, search results, ...).Checklist
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lintnpm run check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.