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

Properly handle copyrighted data #574

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

Conversation

gunnarvelle
Copy link
Member

@gunnarvelle gunnarvelle commented Jan 9, 2025

Data med opphavsrett er lagra med lisens "COPYRIGHTED" og ikkje "copyrighted" så dette søket fungerer ikkje i dag.

https://github.com/NDLANO/Issues/issues/4263

@@ -268,7 +269,7 @@ trait MultiDraftSearchService {
val idFilter = if (settings.withIdIn.isEmpty) None else Some(idsQuery(settings.withIdIn))

val licenseFilter = settings.license match {
case None => Some(boolQuery().not(termQuery("license", "copyrighted")))
case None => Some(boolQuery().not(termQuery("license", License.Copyrighted.toString)))
Copy link
Member Author

@gunnarvelle gunnarvelle Jan 9, 2025

Choose a reason for hiding this comment

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

Dette funker ikkje slik det er no, men konsekvensen er at vi får opp artikler med opphavsrett i ed-søket, så hell i uhell!

@gunnarvelle gunnarvelle marked this pull request as ready for review January 10, 2025 12:13
Copy link
Member Author

@gunnarvelle gunnarvelle left a comment

Choose a reason for hiding this comment

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

For bakoverkompabilitets skyld bør vi la includeCopyrighted ligge og heller sette license=all dersom denne er satt.

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