-
Notifications
You must be signed in to change notification settings - Fork 5
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
Search: user dashboard #186
Search: user dashboard #186
Conversation
4639462
to
c77794c
Compare
@@ -18,8 +18,8 @@ export const Marc21RecordResultsListItem = ({ result, index }) => { | |||
const createdDate = get(result, "ui.created", "No creation date found"); | |||
const publicationDate = get(result, "ui.updated", "No update date found"); | |||
|
|||
const access_id = get(result, "ui.access_status.id", "public"); | |||
const access_status = get(result, "ui.access_status.title", "Public"); | |||
const access_id = get(result, "ui.access_status.id", "open"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change irritates me. should the status not be "public" why is here a change to "open" necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some time ago, Invenio changed the 'id' from 'public' to 'open' and the title from 'Public' to 'Open'. Although we haven't changed this line of code, we continue to utilize their 'access' field. This adjustment enhances consistency and readability.
@@ -10,10 +10,7 @@ | |||
"Manage": "Manage", | |||
"Version": "Version", | |||
"Preview": "Preview", | |||
"{{count}} results found": "{{count}} results found", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are they translations replaced by other strings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This translation is no longer in use since we are utilizing the count component from the search application.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so we use the translation strings from them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
Update the layout for the user search an create an api endpoint to search for user records
DEMO