diff --git a/productMods/config/listViewConfig-webpage.xml b/productMods/config/listViewConfig-webpage.xml index 7bbeaada..2e7db951 100644 --- a/productMods/config/listViewConfig-webpage.xml +++ b/productMods/config/listViewConfig-webpage.xml @@ -20,7 +20,7 @@ OPTIONAL { ?link core:linkURI ?url } OPTIONAL { ?link core:rank ?rank } - FILTER ( bound(?anchor) && bound(?url) ) + FILTER ( bound(?url) ) } ORDER BY ?rank ?anchor diff --git a/productMods/templates/freemarker/body/partials/individual/propStatement-webpage.ftl b/productMods/templates/freemarker/body/partials/individual/propStatement-webpage.ftl index a88df623..e1389092 100644 --- a/productMods/templates/freemarker/body/partials/individual/propStatement-webpage.ftl +++ b/productMods/templates/freemarker/body/partials/individual/propStatement-webpage.ftl @@ -7,13 +7,13 @@ --> <#assign linkText> - <#if statement.anchor??>${statement.anchor} - <#else>${statement.linkName} (no anchor text provided for link) + <#if statement.anchor?has_content>${statement.anchor} + <#elseif statement.url?has_content>${statement.url} -<#if statement.url??> +<#if statement.url?has_content> ${linkText} <#else> - ${linkText} (no url provided for link) + ${statement.linkName} (no url provided for link) \ No newline at end of file