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

frontsite: DocumentDetails: Display multipart above Literature Title #624

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sakshamarora1
Copy link
Contributor

@sakshamarora1 sakshamarora1 commented May 21, 2024

❤️ Thank you for your contribution!

Description

closes: CERNDocumentServer/cds-ils#734

Screenshot 2024-05-21 at 16 31 47

@sakshamarora1 sakshamarora1 self-assigned this May 21, 2024
render() {
const { metadata } = this.props;
const volume = _get(metadata, 'relations.multipart_monograph[0].volume');

return (
<>
<Header>
Copy link
Contributor

Choose a reason for hiding this comment

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

if you don't check if the volume number and relation metadata exists before rendering the Header component, you will most likely end up with an empty space on top of the column (for regular books without multipart and serials)

<Link key={rel.pid_value} to={this.getLinkTo(rel)}>
{rel.record_metadata.title}
</Link>
{index === relationsData.length - 1 ? ' featuring:' : ' and '}
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure I understand why we need "and"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because it is a list, there can be multiple relations, can also use ,

Copy link
Contributor

Choose a reason for hiding this comment

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

normally, a volume can belong only to one multipart monograph (but multiple serials, that's why it is modelled as a list), but for this particular case we should display only one multipart

@ntarocco
Copy link
Contributor

The PR looks good, but I have some doubts on the UX/design of the featuring: part. To me, is not visible and not very understandable.
Screenshot 2024-05-27 at 09 37 51

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.

Improve visibility of volume number and title for multipart monograph
3 participants