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

Improve Gallica public domain detection #39

Closed
nemobis opened this issue Jan 15, 2016 · 1 comment
Closed

Improve Gallica public domain detection #39

nemobis opened this issue Jan 15, 2016 · 1 comment

Comments

@nemobis
Copy link
Contributor

nemobis commented Jan 15, 2016

Vigneron reports that http://gallica.bnf.fr/ark:/12148/bpt6k933829z/ isn't identified as being in the public domain. I think

BUB/digi-lib/gal.py

Lines 102 to 107 in e7e0010

for i in strong_attr:
public_domain = get_metadata(i, specific_tag = 'Droits')
if not public_domain:
continue
if 'domaine public' in public_domain.encode('utf-8'):
return 0
is needlessly complicated; now in the HTML I see <meta name="DC.rights" content="domaine public" /> <meta name="DC.rights" content="public domain" />, BUB can just parse that.

@rohit-dua
Copy link
Owner

patch: f0f3740

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

No branches or pull requests

2 participants