-
Notifications
You must be signed in to change notification settings - Fork 14
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
overridden: frontsite: Override Document Item table to show shelf link #882
Conversation
ui/src/overridden/frontsite/Document/DocumentDetails/DocumentItemBody.js
Outdated
Show resolved
Hide resolved
ui/src/overridden/frontsite/Document/DocumentDetails/DocumentItemBody.js
Outdated
Show resolved
Hide resolved
35a3d83
to
37850a4
Compare
{ "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" } |
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.
just to make sure: is it like we discussed, not a required field?
<Embed | ||
active | ||
url={shelfLink(metadata.shelf, true)} | ||
style={{ |
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.
Could you move the styling to site.overridable
? Inline styling is generally among bad practices
<Embed | ||
active | ||
url={shelfLink(shelfNumber, true)} | ||
style={{ |
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.
same as above
color="blue" | ||
fluid | ||
> | ||
Open MapCERN |
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.
I think the demo outcome was Find it on shelf
return invenioConfig.ITEMS.canCirculateStatuses.includes(item.status); | ||
} | ||
|
||
function isItemForReference(item) { |
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.
could you make sure (check with Salome or Lydia) the for reference items should also have map displayed?
7f1a32c
to
2368d87
Compare
17b2594
to
6fcdbad
Compare
fd4a3e1
to
3cdce38
Compare
Resolves: #834