booklet_author = CharField(_('author of published notice'))
external_references = TextField(_('bibliographic references'))
doctype_code = IntegerField(_('document type'))
- public_access = CharField(_('public access'), choices=PUBLIC_ACCESS_CHOICES,
+ public_access = CharField(_('access status'), choices=PUBLIC_ACCESS_CHOICES,
max_length=16, default="metadata")
+ auto_period_access = BooleanField(_('automatic access after a rolling period'), default=True)
legal_rights = WeakForeignKey('LegalRight', related_name="collections",
verbose_name=_('legal rights'))
# Legal mentions
organization = WeakForeignKey('Organization', verbose_name=_('organization'))
- public_access = CharField(_('public access'), choices=PUBLIC_ACCESS_CHOICES,
+ public_access = CharField(_('access status'), choices=PUBLIC_ACCESS_CHOICES,
max_length=16, default="metadata")
depositor = CharField(_('depositor'))
rights = WeakForeignKey('Rights', verbose_name=_('rights'))
+ auto_period_access = BooleanField(_('automatic access after a rolling period'), default=True)
# Archiving data
code = CharField(_('code'), unique=True, blank=True)
copied_from_item = WeakForeignKey('self', related_name="copies",
verbose_name=_('copy of'))
mimetype = CharField(_('mime type'), max_length=255, blank=True)
- auto_period_access = BooleanField(_('automatic access after a rolling period'), default=True)
# Media
file = FileField(_('file'), upload_to='items/%Y/%m/%d',
{% block title_buttons %}
<div class="fixedWidthAsPlayer">
- {% if perms.telemeta.add_mediacorpus or perms.telemeta.add_mediafonds %}
+ {% if perms.telemeta.change_mediacorpus or perms.telemeta.change_mediafonds %}
<a href="{% url telemeta-resource-edit type resource.public_id %}" class="component_icon button icon_edit">{% trans "Edit" %}</a>
+ {% endif %}
+ {% if perms.telemeta.add_mediacorpus or perms.telemeta.add_mediafonds %}
<a href="{% url telemeta-resource-copy type resource.public_id %}" class="component_icon button icon_copy">{% trans "Copy" %}</a>
- {% endif %}
+ {% endif %}
{% if user.is_authenticated %}
<a href="#" id ="_add_to_playlist" class="component_icon button icon_add_to_playlist">{% trans "Add to playlist" %}</a>
{% endif %}