preventing deletion of the only keyword for the published resource
<li class="small text-muted" v-if="!resKeywords.length">No subject keywords have been added.</li>
<li v-else v-for="k in resKeywords">
{% if resource_edit_mode %}
+ {% if cm.raccess.published %}
+ <span v-if="resKeywords.length" class="tag">${ k }<span v-if="resKeywords.length > 1"
+ @click="removeKeyword('{{ cm.short_id }}', k )"
+ class="glyphicon glyphicon-remove-circle icon-remove"></span>
+ </span>
+ {% else %}
<span v-if="resKeywords.length" class="tag">${ k }<span
@click="removeKeyword('{{ cm.short_id }}', k )"
- class="glyphicon glyphicon-remove-circle icon-remove"></span></span>
+ class="glyphicon glyphicon-remove-circle icon-remove"></span>
+ </span>
+ {% endif %}
{% else %}
<a class='tag' target="_blank"
:href="'/search/?q=&selected_facets=subject_exact:' + k">${ k }</a>
</div>
</div>
</div>
-
+ {% if not cm.raccess.published %}
<div v-if="resMode === 'Edit'" class="col-xs-12 col-sm-6">
<span class="alert alert-warning group-title" role="alert">
<div class="flex">
</div>
</span>
</div>
+ {% endif %}
</div>
</div>
{# typeahead is used in title.html #}
