Skip to content

Add filter for free digital material#525

Merged
lrosenstrom merged 5 commits intodevelopfrom
feature/lws-242-free-e-resources
May 2, 2025
Merged

Add filter for free digital material#525
lrosenstrom merged 5 commits intodevelopfrom
feature/lws-242-free-e-resources

Conversation

@lrosenstrom
Copy link
Copy Markdown
Contributor

@lrosenstrom lrosenstrom commented Apr 29, 2025

See description in LWS-242.

  • Add optional filter for free e-resources for lxl-web/Libris sök. The filter can be formulated in the lxl web query language like so (which is sort of a hack, but will do until the free nature of things is expressed more clearly in the data):
(usageAndAccessPolicy.label:"gratis" OR "associatedMedia.marc:publicNote":"*fritt tillgänglig*") AND hasInstanceType:"Electronic"
  • Add MediaObject-cards definition to include marc:publicNote in the search index, and hence facilitate the query above.

Edit: @olovy pointed out that we should probably add https://id.kb.se/policy/freely-available and https://id.kb.se/policy/oa/gratis to the filter, so those two access policies are also included now.

Comment thread source/apps.jsonld Outdated
Copy link
Copy Markdown
Contributor

@olovy olovy left a comment

Choose a reason for hiding this comment

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

Note that we can't be sure that e.g. usageAndAccessPolicy and type:Electronic match the same instance since instances are not nested in ES. This should not be a problem in practice. And as you say, the filter should be based on more exact symbols.

See comment about wildcards. Other than that, LGTM

Copy link
Copy Markdown
Contributor

@olovy olovy left a comment

Choose a reason for hiding this comment

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

LGTM!

@lrosenstrom lrosenstrom force-pushed the feature/lws-242-free-e-resources branch from 0392c14 to 2f3912c Compare April 29, 2025 13:54
Copy link
Copy Markdown
Contributor

@kwahlin kwahlin left a comment

Choose a reason for hiding this comment

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

LGTM

@lrosenstrom lrosenstrom merged commit 7d6dc9d into develop May 2, 2025
@lrosenstrom lrosenstrom deleted the feature/lws-242-free-e-resources branch May 2, 2025 07:24
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.

3 participants