-
+# -*- 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 oai.handlers import Catalogue, NS_DCTERMS, nsdcterms
from oaipmh.server import ServerBase, oai_dc_writer, NS_OAIDC, NS_DC, NS_XSI, nsoaidc, nsdc
from oaipmh.metadata import MetadataRegistry
for name in ['hasPart', 'isPartOf']:
for value in map.get(name, []):
- print "%s %s" % (name, value)
e = SubElement(element, nsdcterms(name), nsmap=nsmap)
e.text = value