Skip to content

feat(lxlweb): Display instance category in holding btns - #1627

Draft
jesperengstrom wants to merge 7 commits into
developfrom
feat-display-instance-type-holding-btns
Draft

feat(lxlweb): Display instance category in holding btns#1627
jesperengstrom wants to merge 7 commits into
developfrom
feat-display-instance-type-holding-btns

Conversation

@jesperengstrom

@jesperengstrom jesperengstrom commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Description

Solves

Trying out instance category instead of type to group holdings into buttons and tabs in holdings panel.

Sometimes neat:
Skärmavbild 2026-06-02 kl  15 15 10

Sometimes a bit messy:
Skärmavbild 2026-06-02 kl  15 16 09

the key used for the types is a 'select slug' from the category @id, this can be done now because book got the fake id _book in another pr. This is also used for the url so that is is not language dependent.

Let's discuss on design meeting.

Summary of changes

@jesperengstrom jesperengstrom changed the title feat(lxlweb): Display instance type in holding btns feat(lxlweb): Display instance category in holding btns Jun 2, 2026
@olovy

olovy commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Very promising!
Let's keep exploring this.

On the work level I think we should be able to group more categories under Book and E-book. Same logic that is used in the hit list.
bild

@jesperengstrom
jesperengstrom force-pushed the feat-display-instance-type-holding-btns branch from 5cd9ef4 to 23c9e7b Compare June 11, 2026 12:43
@jesperengstrom

Copy link
Copy Markdown
Contributor Author

Pushed some improvements. Now all tests are failing for some reason.

I did not manage to group more categories however. What the select type str does in the cards is a bit of a mystery to me.

For the panel, we also need to place every instance in a "bucket" individually. That poses a problem since an OnlineResource is only an Ebook if there are other Ebooks, right?

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.

2 participants