VIVO-748: enable display of bulleted items on data properties

This commit is contained in:
tworrall 2014-05-22 17:22:38 -04:00
parent fc66530304
commit 84e2aa4967
2 changed files with 27 additions and 1 deletions

View file

@ -284,4 +284,20 @@ a#manageLabels {
/* <---- OpenSocial -----*/
div#openSocial {
display:inline-block;
}
/* MISC */
ul.tinyMCEDisc {
list-style-type: disc;
margin-bottom: 10px;
}
ol.tinyMCENumeric {
list-style-type: decimal;
}
ul.tinyMCEDisc li {
padding: 0 !important;
margin-left: 30px;
}
ol.tinyMCENumeric li {
padding: 0 !important;
margin-left: 30px;
}

View file

@ -9,7 +9,17 @@
<@showStatement statement />
<#macro showStatement statement>
${statement.value!}
<#assign theValue = statement.value />
<#if theValue?contains("<ul>") >
<#assign theValue = theValue?replace("<ul>","<ul class='tinyMCEDisc'>") />
</#if>
<#if theValue?contains("<ol>") >
<#assign theValue = theValue?replace("<ol>","<ol class='tinyMCENumeric'>") />
</#if>
<#if theValue?contains("<p>") >
<#assign theValue = theValue?replace("<p>","")?replace("</p>","") />
</#if>
${theValue}
</#macro>