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

overridden: frontsite: Override Document Item table to show shelf link #882

Merged

Conversation

sakshamarora1
Copy link
Contributor

@sakshamarora1 sakshamarora1 commented Apr 8, 2024

Resolves: #834

Screenshot 2024-04-17 at 17 40 02

Screenshot 2024-04-12 at 13 22 31

Screenshot 2024-04-17 at 17 39 03

@sakshamarora1 sakshamarora1 self-assigned this Apr 8, 2024
{ "type": "shelf_number", "key": "123", "text": "SHELF 123" },
{ "type": "shelf_number", "key": "124", "text": "SHELF 124" },
{ "type": "shelf_number", "key": "125", "text": "SHELF 125" },
{ "type": "shelf_number", "key": "126", "text": "SHELF 126" }
Copy link
Contributor

Choose a reason for hiding this comment

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

just to make sure: is it like we discussed, not a required field?

<Embed
active
url={shelfLink(metadata.shelf, true)}
style={{
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you move the styling to site.overridable? Inline styling is generally among bad practices

<Embed
active
url={shelfLink(shelfNumber, true)}
style={{
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

color="blue"
fluid
>
Open MapCERN
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the demo outcome was Find it on shelf

return invenioConfig.ITEMS.canCirculateStatuses.includes(item.status);
}

function isItemForReference(item) {
Copy link
Contributor

Choose a reason for hiding this comment

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

could you make sure (check with Salome or Lydia) the for reference items should also have map displayed?

@kpsherva kpsherva merged commit 5eb7d5e into CERNDocumentServer:master May 13, 2024
2 checks passed
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.

Location plan for books
2 participants