Unclickable title in search list fix#1061
Merged
tdonohue merged 3 commits intoDSpace:mainfrom Mar 22, 2021
Merged
Conversation
|
This pull request introduces 2 alerts when merging 91f11d6 into 1115c58 - view on LGTM.com new alerts:
|
b8deddf to
c20a49e
Compare
c20a49e to
3a0dc27
Compare
tdonohue
approved these changes
Mar 22, 2021
Member
There was a problem hiding this comment.
👍 Thanks @Raf-atmire & @LotteHofstede ! I've tested & reviewed this. I've verified it works as described and fixes the problem.
4science-it
pushed a commit
to 4Science/dspace-angular
that referenced
this pull request
Nov 29, 2023
[CST-12624] updated the logic of the suggestion-targets feature. Approved-by: Giuseppe Digilio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
References
Description
This PR ensures that Items in the search lists will always have a clickable title.
This is done by altering the retrieval of the first occurrence of dc.title to the call to
dsoNameService.getName(this.dso);This method will then provide us with the name of the DSO by callingdso.firstMetadataValue('dc.title') || dso.name || this.translateService.instant('dso.name.untitled');and therefore, if a dc.title and a dso name don't exist, it'll return an "Untitled" String which is translatableInstructions for Reviewers
List of changes in this PR:
How to test this PR:
-dc.title:*in the search barChecklist
yarn run lintpackage.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.