Skip to content

Commit

Permalink
viewMetadataDetailsBody.jsp updated to remove HTML tags #255
Browse files Browse the repository at this point in the history
  • Loading branch information
pandzel committed May 30, 2017
1 parent 6c7f945 commit 51b47ea
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions geoportal/www/catalog/search/viewMetadataDetailsBody.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,19 @@
gptMapConfig.locatorSingleFieldParameter = "<%=imConfig.getLocatorSingleFieldParameter()%>";
gptMapConfig.locatorGraphicURL = "<%=request.getContextPath()%>/catalog/images/pushpin_red.gif";
gptMapConfig.mapVisibleLayers = "<%=imConfig.getMapVisibleLayers()%>";
require(["dojo/query","dojo/domReady!"],function(djQuery){
djQuery(".parameterValue > span").forEach(function(node){
var START = '&lt;DIV STYLE="text-align:Left;"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;';
var END = '&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;';
var t = node.innerHTML;
if (t.indexOf(START)===0) {
t = t.replace(START,"").replace(END,"");
node.innerHTML = t;
}
});
});
</script>

<h:form id="mdDetails" styleClass="mdDetails">
Expand Down

0 comments on commit 51b47ea

Please sign in to comment.