fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Missing files from previous commit.
[librarian.git]
/
librarian
/
dcparser.py
diff --git
a/librarian/dcparser.py
b/librarian/dcparser.py
index
80d6247
..
cca9c6f
100644
(file)
--- a/
librarian/dcparser.py
+++ b/
librarian/dcparser.py
@@
-1,4
+1,8
@@
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
+#
+# This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
from xml.parsers.expat import ExpatError
from datetime import date
import time
from xml.parsers.expat import ExpatError
from datetime import date
import time
@@
-131,6
+135,10
@@
class BookInfo(object):
Field( DCNS('rights.license'), 'license', required=False),
Field( DCNS('rights'), 'license_description'),
)
Field( DCNS('rights.license'), 'license', required=False),
Field( DCNS('rights'), 'license_description'),
)
+
+ @property
+ def slug(self):
+ return self.url.rsplit('/', 1)[1]
@classmethod
def from_string(cls, xml):
@classmethod
def from_string(cls, xml):