-
Notifications
You must be signed in to change notification settings - Fork 5
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
LWS-225: improve display of libraries in holdings panel #1093
Conversation
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.
LGTM!
Perhaps something like this to start with?
"Collection-qualifier-format": {
"@id": "Collection-qualifier-format",
"@type": "fresnel:Format",
"fresnel:classFormatDomain": ["Collection"],
"fresnel:propertyFormatDomain": ["qualifier"],
"fresnel:propertyFormat": {
"fresnel:contentBefore": ", ",
"fresnel:contentFirst": "",
"fresnel:contentAfter": "",
"fresnel:contentLast": ""
}
},
"Collection-sigel-format": {
"@id": "Collection-sigel-format",
"@type": "fresnel:Format",
"fresnel:classFormatDomain": ["Collection"],
"fresnel:propertyFormatDomain": ["sigel"],
"fresnel:propertyFormat": {
"fresnel:contentBefore": " (",
"fresnel:contentFirst": "(",
"fresnel:contentAfter": ")",
"fresnel:contentLast": ")"
}
},
It would be nice if sigel was a bit lighter but couldn't get it to work right away with propertyStyle
Nice! Added that. We could target it with |
If It works by simply adding ...but there must be some reason for this distinction @johanbissemattsson ? |
I think it is a bit unclear if Styling the sigel in the same way as inScheme (sao etc) might be nice and consistent? |
Awesome! LGTM! 🌟
I think this is the closest to a sensible solution, so I also think |
Merging this now. Will do a separate PR of some changes I made trying to improve the _style thing. We can try it out there. |
I suspected it did! |
Description
Tickets involved
LWS-225
Solves
Display additional (distinguishing) library information in the holdings panel.
This could really be as easy as printing the
qualifier
alongside the name. But I tried a more cumbersome approach 😆To stay consistent with how we do it elsewhere (libraries in the facets, for example) we now display decorated data here.
Summary of changes
lensAndFormat
the libraries inside the functions that prepare data for the holdings panel:holdingsByInstanceId
andholdersByType
.Break out new util method
getHoldingsByType
in /utils.New types and some checks to get rid of ts-warnings in
/fnurgel/page.svelte
.The decorated labels are ellipsed, but displayed multi-line when opened.
We now also use
DecoratedData
component in facets instead of printing the renderedstr
. This should give us more fine-grained control over the styling?