From af275449acdd742dc7ec9fe4e55340334b3815d3 Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Thu, 20 Dec 2012 16:33:45 +0100 Subject: [PATCH 1/1] 3types of creators --- librarian/__init__.py | 5 ++++- librarian/dcparser.py | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/librarian/__init__.py b/librarian/__init__.py index 1d5e3ea..eb056cd 100644 --- a/librarian/__init__.py +++ b/librarian/__init__.py @@ -150,7 +150,10 @@ import dcparser DEFAULT_BOOKINFO = dcparser.BookInfo( { RDFNS('about'): u'http://wiki.wolnepodreczniki.pl/Lektury:Template'}, - { DCNS('creator'): [u'Some, Author'], + { + DCNS('creator.export'): [u'Some, Author'], + DCNS('creator.scenario'): [u'Some, Author'], + DCNS('creator.textbook'): [u'Some, Author'], DCNS('title'): [u'Some Title'], DCNS('subject.period'): [u'Unknown'], DCNS('subject.type'): [u'Unknown'], diff --git a/librarian/dcparser.py b/librarian/dcparser.py index eddd8e5..062dc9f 100644 --- a/librarian/dcparser.py +++ b/librarian/dcparser.py @@ -163,7 +163,9 @@ class WorkInfo(object): __metaclass__ = DCInfo FIELDS = ( - Field( DCNS('creator'), 'authors', as_person, salias='author', multiple=True), + Field( DCNS('creator.expert'), 'authors', as_person, salias='author', multiple=True), + Field( DCNS('creator.scenario'), 'authors', as_person, salias='author', multiple=True), + Field( DCNS('creator.textbook'), 'authors', as_person, salias='author', multiple=True), Field( DCNS('title'), 'title'), Field( DCNS('type'), 'type', required=False, multiple=True), -- 2.20.1