Merge branch 'maint-rel-1.6' of https://github.com/vivo-project/Vitro into maint-rel-1.6
This commit is contained in:
commit
7057b40931
3 changed files with 8 additions and 7 deletions
|
@ -548,7 +548,7 @@ public class EditConfigurationTemplateModel extends BaseTemplateModel {
|
||||||
}
|
}
|
||||||
for(VClass rangeVClass : rangeVClasses) {
|
for(VClass rangeVClass : rangeVClasses) {
|
||||||
vclasses.add(rangeVClass);
|
vclasses.add(rangeVClass);
|
||||||
List<String> subURIs = wdf.getVClassDao().getSubClassURIs(rangeVClass.getURI());
|
List<String> subURIs = wdf.getVClassDao().getAllSubClassURIs(rangeVClass.getURI());
|
||||||
for (String subClassURI : subURIs) {
|
for (String subClassURI : subURIs) {
|
||||||
VClass subClass = wdf.getVClassDao().getVClassByURI(subClassURI);
|
VClass subClass = wdf.getVClassDao().getVClassByURI(subClassURI);
|
||||||
if (subClass != null) {
|
if (subClass != null) {
|
||||||
|
|
|
@ -118,7 +118,7 @@ name will be used as the label. -->
|
||||||
</#if>
|
</#if>
|
||||||
-->
|
-->
|
||||||
<#if editable>
|
<#if editable>
|
||||||
<h2 id="${property.localName}">${label} ${addLink!} ${verboseDisplay!}</h2>
|
<h2 id="${property.localName!}">${label} ${addLink!} ${verboseDisplay!}</h2>
|
||||||
</#if>
|
</#if>
|
||||||
</#macro>
|
</#macro>
|
||||||
|
|
||||||
|
@ -134,8 +134,8 @@ name will be used as the label. -->
|
||||||
<#local domainUri = "" />
|
<#local domainUri = "" />
|
||||||
</#if>
|
</#if>
|
||||||
<#if editable>
|
<#if editable>
|
||||||
<#local url = property.addUrl>
|
<#if property.addUrl?has_content>
|
||||||
<#if url?has_content>
|
<#local url = property.addUrl>
|
||||||
<@showAddLink property.localName label url rangeUri domainUri/>
|
<@showAddLink property.localName label url rangeUri domainUri/>
|
||||||
</#if>
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
|
@ -274,7 +274,8 @@ name will be used as the label. -->
|
||||||
<#assign labelPropertyUri = ("http://www.w3.org/2000/01/rdf-schema#label"?url) />
|
<#assign labelPropertyUri = ("http://www.w3.org/2000/01/rdf-schema#label"?url) />
|
||||||
<#assign useEditLink = false />
|
<#assign useEditLink = false />
|
||||||
<#--edit link used if in edit mode and only one label and one language-->
|
<#--edit link used if in edit mode and only one label and one language-->
|
||||||
<#if labelCount = 1 && editable && localesCount = 1 >
|
<#--locales count may be 0 in case where no languages/selectable locales are specified-->
|
||||||
|
<#if labelCount = 1 && editable && (localesCount >= 0) >
|
||||||
<#assign useEditLink = true/>
|
<#assign useEditLink = true/>
|
||||||
</#if>
|
</#if>
|
||||||
<#local label = individual.nameStatement>
|
<#local label = individual.nameStatement>
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
What was the right way to do this?
|
What was the right way to do this?
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<#-- This is included by identity.ftl -->
|
<#-- This is included by identity.ftl -->
|
||||||
<#if selectLocale??>
|
<#if selectLocale??>
|
||||||
<#list selectLocale.locales as locale>
|
<#list selectLocale.locales as locale>
|
||||||
<li>
|
<li>
|
||||||
<a href="${selectLocale.selectLocaleUrl}?selection=${locale.code}" title="${i18n().select_locale} -- ${locale.label}">
|
<a href="${selectLocale.selectLocaleUrl}?selection=${locale.code}" title="${i18n().select_locale} -- ${locale.label}" <#if locale.selected>style="padding-bottom:1px;border-bottom: 1px solid #ccdfe6"</#if>>
|
||||||
<img src="${locale.imageUrl}" height="15" style="vertical-align:middle" alt="${locale.label}"/>
|
<img src="${locale.imageUrl}" height="15" style="vertical-align:middle" alt="${locale.label}"/>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue