+from django.contrib.auth.models import User
+from datetime import datetime
+from lxml import etree
+from lxml.etree import ElementTree
+from django.db.models import Q
+
+
+wl_dc_reader = metadata.MetadataReader(
+ fields={
+ 'title': ('textList', 'rdf:RDF/rdf:Description/dc:title/text()'),
+ 'creator': ('textList', 'rdf:RDF/rdf:Description/dc:creator/text()'),
+ 'subject': ('textList', 'rdf:RDF/rdf:Description/dc:subject.period/text() | rdf:RDF/rdf:Description/dc:subject.type/text() | rdf:RDF/rdf:Description/dc:subject.genre/text()'),
+ 'description': ('textList', 'rdf:RDF/rdf:Description/dc:description/text()'),
+ 'publisher': ('textList', 'rdf:RDF/rdf:Description/dc:publisher/text()'),
+ 'contributor': ('textList', 'rdf:RDF/rdf:Description/dc:contributor.editor/text() | rdf:RDF/rdf:Description/dc:contributor.translator/text() | rdf:RDF/rdf:Description/dc:contributor.technical_editor/text()'),
+ 'date': ('textList', 'rdf:RDF/rdf:Description/dc:date/text()'),
+ 'type': ('textList', 'rdf:RDF/rdf:Description/dc:type/text()'),
+ 'format': ('textList', 'rdf:RDF/rdf:Description/dc:format/text()'),
+ 'identifier': ('textList', 'rdf:RDF/rdf:Description/dc:identifier.url/text()'),
+ 'source': ('textList', 'rdf:RDF/rdf:Description/dc:source/text()'),
+ 'language': ('textList', 'rdf:RDF/rdf:Description/dc:language/text()'),
+ # 'relation': ('textList', 'rdf:RDF/rdf:Description/dc:relation/text()'),
+ # 'coverage': ('textList', 'rdf:RDF/rdf:Description/dc:coverage/text()'),
+ 'rights': ('textList', 'rdf:RDF/rdf:Description/dc:rights/text()')
+ },
+ namespaces={
+ 'dc': 'http://purl.org/dc/elements/1.1/',
+ 'rdf': 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'}
+ )