Skip to content
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

Conversation

philippgualdi
Copy link
Collaborator

Update the layout for the user search an create an api endpoint to search for user records

DEMO
grafik

@philippgualdi philippgualdi force-pushed the modification/user-dashboard-api branch from 4639462 to c77794c Compare September 21, 2023 06:57
@philippgualdi philippgualdi marked this pull request as ready for review September 21, 2023 07:49
@@ -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");
Copy link
Contributor

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?

Copy link
Collaborator Author

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",
Copy link
Contributor

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?

Copy link
Collaborator Author

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.

Copy link
Contributor

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@philippgualdi philippgualdi merged commit 33b71ae into tu-graz-library:master Sep 21, 2023
3 checks passed
@philippgualdi philippgualdi deleted the modification/user-dashboard-api branch February 28, 2024 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants