|
|
|
@ -15,6 +15,8 @@
|
|
|
|
|
GetterUtil.getString(portletPreferences.getValue("applicationName2-Title", StringPool.BLANK)));
|
|
|
|
|
pageContext.setAttribute("applicationName3Title",
|
|
|
|
|
GetterUtil.getString(portletPreferences.getValue("applicationName3-Title", StringPool.BLANK)));
|
|
|
|
|
pageContext.setAttribute("applicationName4Title",
|
|
|
|
|
GetterUtil.getString(portletPreferences.getValue("applicationName4-Title", StringPool.BLANK)));
|
|
|
|
|
|
|
|
|
|
long applicationName1DocumentId = GetterUtil
|
|
|
|
|
.getLong(portletPreferences.getValue("applicationName1-DocumentId", StringPool.BLANK));
|
|
|
|
@ -22,6 +24,8 @@
|
|
|
|
|
.getLong(portletPreferences.getValue("applicationName2-DocumentId", StringPool.BLANK));
|
|
|
|
|
long applicationName3DocumentId = GetterUtil
|
|
|
|
|
.getLong(portletPreferences.getValue("applicationName3-DocumentId", StringPool.BLANK));
|
|
|
|
|
long applicationName4DocumentId = GetterUtil
|
|
|
|
|
.getLong(portletPreferences.getValue("applicationName4-DocumentId", StringPool.BLANK));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String url1 = GetterUtil.getString(portletPreferences.getValue("application1-Url", StringPool.BLANK));
|
|
|
|
@ -32,6 +36,9 @@
|
|
|
|
|
|
|
|
|
|
String url3 = GetterUtil.getString(portletPreferences.getValue("application3-Url", StringPool.BLANK));
|
|
|
|
|
pageContext.setAttribute("application3Url", Utils.getVREFriendlyURL(currentUser, url3));
|
|
|
|
|
|
|
|
|
|
String url4 = GetterUtil.getString(portletPreferences.getValue("application4-Url", StringPool.BLANK));
|
|
|
|
|
pageContext.setAttribute("application4Url", url4);
|
|
|
|
|
|
|
|
|
|
String content1 = "";
|
|
|
|
|
if (applicationName1DocumentId > 0) {
|
|
|
|
@ -59,6 +66,14 @@
|
|
|
|
|
Node node = document.selectSingleNode("/root/static-content");
|
|
|
|
|
content3 = node.getText();
|
|
|
|
|
}
|
|
|
|
|
String content4 = "";
|
|
|
|
|
if (applicationName4DocumentId > 0) {
|
|
|
|
|
JournalArticle article = JournalArticleLocalServiceUtil.getArticle(groupId,
|
|
|
|
|
"" + applicationName4DocumentId);
|
|
|
|
|
Document document = SAXReaderUtil.read(article.getContent());
|
|
|
|
|
Node node = document.selectSingleNode("/root/static-content");
|
|
|
|
|
content4 = node.getText();
|
|
|
|
|
}
|
|
|
|
|
%>
|
|
|
|
|
<c:if test="${not empty applicationName1Title}">
|
|
|
|
|
<div class="asset-abstract">
|
|
|
|
@ -142,4 +157,32 @@
|
|
|
|
|
<div class="asset-metadata"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</c:if>
|
|
|
|
|
<c:if test="${not empty applicationName4Title}">
|
|
|
|
|
<!-- THIRD -->
|
|
|
|
|
<div class="asset-abstract">
|
|
|
|
|
<h3 class="asset-title">
|
|
|
|
|
<a href="${application4Url}"><img alt="" src="${icondocURL}">
|
|
|
|
|
${applicationName4Title}</a>
|
|
|
|
|
</h3>
|
|
|
|
|
<div class="asset-content">
|
|
|
|
|
<div class="asset-summary" style="margin-left: 25px;">
|
|
|
|
|
<span id="asset-app-summarypre4"> <%
|
|
|
|
|
if (content4.length() > 225)
|
|
|
|
|
out.println(HtmlUtil.stripHtml(content4.substring(0, 222) + " ..."));
|
|
|
|
|
%>
|
|
|
|
|
<div>
|
|
|
|
|
<a
|
|
|
|
|
href="javascript:switchView('#asset-app-summarypre4', '#asset-app-summary-4');">Read
|
|
|
|
|
More » </a>
|
|
|
|
|
</div>
|
|
|
|
|
</span>
|
|
|
|
|
<div class="asset-more">
|
|
|
|
|
<div id="asset-app-summary-4" class="asset-summary"
|
|
|
|
|
style="display: none;"><%=content4%></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="asset-metadata"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</c:if>
|