Skip to content

Conversation

@JakobMiesner
Copy link
Contributor

@JakobMiesner JakobMiesner force-pushed the feature/hide-call-numbers branch 2 times, most recently from d564e6c to 496e16b Compare June 24, 2025 09:37
@JakobMiesner JakobMiesner marked this pull request as ready for review June 24, 2025 09:46
@JakobMiesner JakobMiesner force-pushed the feature/hide-call-numbers branch from 496e16b to 7e3a17c Compare June 25, 2025 14:16
@JakobMiesner JakobMiesner force-pushed the feature/hide-call-numbers branch from 7e3a17c to 5f4818e Compare June 26, 2025 07:26
"identifiers": item.get("identifiers"),
"internal_location": {
"name": item.get("internal_location", {}).get("name", ""),
"accessible_by_patrons": item.get("internal_location", {}).get(
Copy link
Contributor

Choose a reason for hiding this comment

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

after some thinking, I am concerned about how targeted this field's name is.
it fulfils the need, but it is not extensible for the future, and not consistent with how we handle "restrictions" in invenio.
I would rather name it as "restrictions" and make it possibly a list, which gives us more flexibility of implementing more restrictions in the past.
as an example: restrictions: ["librarians"] would mean the location is visible to only librarian, so it does not limit the functionality only to the patron
another example: restrictions: ["archivists"] could mark places only accessible to some personnel who can go into archives, but not the librarians.
It opens a door to cover more use cases, while not being complex in implementation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In that case, isn't there maybe an already existing module in invenio for record&group specific permissions?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, there are already existing implementations. One example would be restriction on the document field.

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.

Hide call number for books in depot

2 participants