X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/3f007696b61ee78291def21c0dca98f94524a943..e82ceed3d3d72dc75697449285a67e0a42a9cc56:/librarian/dcparser.py diff --git a/librarian/dcparser.py b/librarian/dcparser.py index 30811ac..cca9c6f 100644 --- a/librarian/dcparser.py +++ b/librarian/dcparser.py @@ -1,9 +1,7 @@ # -*- coding: utf-8 -*- # -# Copyright © 2008,2009,2010 Fundacja Nowoczesna Polska -# # This file is part of Librarian, licensed under GNU Affero GPLv3 or later. -# For full license text see COPYING or +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # from xml.parsers.expat import ExpatError from datetime import date @@ -137,6 +135,10 @@ class BookInfo(object): 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):