X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/967eed676fc83d15b26149047f353ac61faa8217..14eaee7aef2e0f89f0210f087d10eeaed0bedf43:/src/isbn/management/commands/import_onix.py?ds=inline diff --git a/src/isbn/management/commands/import_onix.py b/src/isbn/management/commands/import_onix.py index 85d54eca7..1a1fe9e34 100644 --- a/src/isbn/management/commands/import_onix.py +++ b/src/isbn/management/commands/import_onix.py @@ -1,4 +1,6 @@ -# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from datetime import date from lxml import etree from django.core.management.base import BaseCommand @@ -6,6 +8,7 @@ from django.core.management.base import BaseCommand from isbn.models import ISBNPool, ONIXRecord from librarian import XMLNamespace + ONIXNS = XMLNamespace('http://ns.editeur.org/onix/3.0/reference') DIRECT_FIELDS = { @@ -19,7 +22,7 @@ DIRECT_FIELDS = { 'imprint': 'ImprintName', } -UNKNOWN = u'Autor nieznany' +UNKNOWN = 'Autor nieznany' def parse_date(date_str):