from api.models import Deleted
from api.handlers import WL_BASE
from librarian.dcparser import BookInfo
from api.models import Deleted
from api.handlers import WL_BASE
from librarian.dcparser import BookInfo
from django.contrib.contenttypes.models import ContentType
from django.contrib.auth.models import User
from datetime import datetime
from django.contrib.contenttypes.models import ContentType
from django.contrib.auth.models import User
from datetime import datetime
'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()'),
'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()')
# '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()')
class Catalogue(common.ResumptionOAIPMH):
TAG_CATEGORIES = ['author', 'epoch', 'kind', 'genre']
class Catalogue(common.ResumptionOAIPMH):
TAG_CATEGORIES = ['author', 'epoch', 'kind', 'genre']
def __init__(self, metadata_registry):
super(Catalogue, self).__init__()
self.metadata_registry = metadata_registry
def __init__(self, metadata_registry):
super(Catalogue, self).__init__()
self.metadata_registry = metadata_registry
# earliest change
year_zero = datetime(1990, 1, 1, 0, 0, 0)
# earliest change
year_zero = datetime(1990, 1, 1, 0, 0, 0)
def books(self, tag, from_, until):
if tag:
# we do not support sets, since they are problematic for deleted books.
def books(self, tag, from_, until):
if tag:
# we do not support sets, since they are problematic for deleted books.
- formats = [('oai_dc',
- 'http://www.openarchives.org/OAI/2.0/oai_dc.xsd',
- server.NS_OAIDC)]
+ formats = [
+ ('oai_dc',
+ 'http://www.openarchives.org/OAI/2.0/oai_dc.xsd',
+ server.NS_OAIDC),
+ ('qdc',
+ 'http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd',
+ NS_DCTERMS)]