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
@sakshamarora1 sakshamarora1 force-pushed the feature/shelf_maps_link branch from 35a3d83 to 37850a4 Compare April 18, 2024 09:13
{ "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?

@sakshamarora1 sakshamarora1 force-pushed the feature/shelf_maps_link branch from 7f1a32c to 2368d87 Compare April 23, 2024 14:33
@kpsherva kpsherva force-pushed the feature/shelf_maps_link branch from 17b2594 to 6fcdbad Compare May 13, 2024 12:12
@kpsherva kpsherva force-pushed the feature/shelf_maps_link branch from fd4a3e1 to 3cdce38 Compare May 13, 2024 13:16
@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