pull/91/head
eric 2018-04-18 21:39:40 -04:00
parent bbd421d1f2
commit 6bca7f0983
2 changed files with 5 additions and 1 deletions

View File

@ -92,6 +92,10 @@ def add_by_isbn(isbn, work=None, language='xx', title=''):
# try again some other time
return None
if e:
if e.work.language == 'xx' and language != 'xx':
e.work.language == language
e.work.save()
logger.info('changed language for {} to {}'.format(isbn, language))
return e
logger.info(u"null came back from add_by_isbn_from_google: %s", isbn)

View File

@ -56,7 +56,7 @@ DOMAIN_TO_PROVIDER = dict([
[u'antropologie.zcu.cz', u'AntropoWeb'],
[u'books.mdpi.com', u'MDPI Books'],
[u'books.openedition.org', u'OpenEdition Books'],
[u'books.scielo.org', u'SciELO'},
[u'books.scielo.org', u'SciELO'],
[u'ccdigitalpress.org', u'Computers and Composition Digital Press'],
[u'digitalcommons.usu.edu', u'DigitalCommons, Utah State University'],
[u'dl.dropboxusercontent.com', u'Dropbox'],