fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Newsletter thanks view.
[wolnelektury.git]
/
src
/
isbn
/
management
/
commands
/
import_onix.py
diff --git
a/src/isbn/management/commands/import_onix.py
b/src/isbn/management/commands/import_onix.py
index
85d54ec
..
1a1fe9e
100644
(file)
--- 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
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
from isbn.models import ISBNPool, ONIXRecord
from librarian import XMLNamespace
+
ONIXNS = XMLNamespace('http://ns.editeur.org/onix/3.0/reference')
DIRECT_FIELDS = {
ONIXNS = XMLNamespace('http://ns.editeur.org/onix/3.0/reference')
DIRECT_FIELDS = {
@@
-19,7
+22,7
@@
DIRECT_FIELDS = {
'imprint': 'ImprintName',
}
'imprint': 'ImprintName',
}
-UNKNOWN =
u
'Autor nieznany'
+UNKNOWN = 'Autor nieznany'
def parse_date(date_str):
def parse_date(date_str):