X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/e18e5408fa57b7c680e7b834a964501898623117..d26d6a7fdcb2c6e26fd097532765b62fd17b429c:/src/librarian/document.py diff --git a/src/librarian/document.py b/src/librarian/document.py index 8876294..1c8f223 100644 --- a/src/librarian/document.py +++ b/src/librarian/document.py @@ -4,7 +4,7 @@ import re from urllib.request import urlopen from lxml import etree from .parser import parser -from . import dcparser +from . import dcparser, DCNS from .functions import lang_code_3to2 @@ -14,7 +14,9 @@ class WLDocument: tree = etree.parse(source, parser=parser) self.tree = tree tree.getroot().document = self - self.base_meta = dcparser.BookInfo({}, {}, validate_required=False) + self.base_meta = dcparser.BookInfo({}, { + DCNS('language'): ["pol"], + }, validate_required=False) @property def meta(self):