collection_code_regex = '(?:%s|%s)' % (collection_published_code_regex,
collection_unpublished_code_regex)
-item_published_code_regex = '[A-Za-z0-9._-]*'
-item_unpublished_code_regex = '[A-Za-z0-9._-]*'
+item_published_code_regex = collection_published_code_regex + '(?:_[0-9]{2,3}){1,2}'
+item_unpublished_code_regex = collection_unpublished_code_regex + '_[0-9]{2,3}(?:_[0-9]{2,3}){0,2}'
item_code_regex = '(?:%s|%s)' % (item_published_code_regex, item_unpublished_code_regex)
+ PUBLIC_ACCESS_CHOICES = (('none', 'none'), ('metadata', 'metadata'), ('full', 'full'))
class MediaResource(ModelCore):
"Base class of all media objects"