Commit 68c0e2873a33c92de5228ac4c4af53aa4cbbd271

Authored by fribeiro
1 parent 855a8d2743
Exists in DSpace52++

Added files with RCAAP Changes to the carousel links. May have other changes fro…

…m previous commits in dspace52++
dspace/modules/jspui/src/main/webapp/community-home.jsp
... ... @@ -0,0 +1,433 @@
  1 +<%--
  2 +
  3 + The contents of this file are subject to the license and copyright
  4 + detailed in the LICENSE and NOTICE files at the root of the source
  5 + tree and available online at
  6 +
  7 + http://www.dspace.org/license/
  8 +
  9 +--%>
  10 +<%--
  11 + - Community home JSP
  12 + -
  13 + - Attributes required:
  14 + - community - Community to render home page for
  15 + - collections - array of Collections in this community
  16 + - subcommunities - array of Sub-communities in this community
  17 + - last.submitted.titles - String[] of titles of recently submitted items
  18 + - last.submitted.urls - String[] of URLs of recently submitted items
  19 + - admin_button - Boolean, show admin 'edit' button
  20 + --%>
  21 +
  22 +<%@ page contentType="text/html;charset=UTF-8" %>
  23 +
  24 +<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
  25 +<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
  26 +
  27 +<%@ page import="org.dspace.app.webui.components.RecentSubmissions" %>
  28 +
  29 +<%@ page import="org.dspace.app.webui.servlet.admin.EditCommunitiesServlet" %>
  30 +<%@ page import="org.dspace.app.webui.util.UIUtil" %>
  31 +<%@ page import="org.dspace.browse.BrowseIndex" %>
  32 +<%@ page import="org.dspace.browse.ItemCounter" %>
  33 +<%@ page import="org.dspace.content.*" %>
  34 +<%@ page import="org.dspace.core.ConfigurationManager" %>
  35 +<%@ page import="org.dspace.core.Utils" %>
  36 +<%@ page import="javax.servlet.jsp.jstl.fmt.LocaleSupport" %>
  37 +<%@ page import="pt.keep.dspace.chart.ChartManager" %>
  38 +<%@ page import="pt.keep.dspace.report.ReportLinkManager" %>
  39 +
  40 +<%
  41 + // Retrieve attributes
  42 + Community community = (Community) request.getAttribute( "community" );
  43 + Collection[] collections =
  44 + (Collection[]) request.getAttribute("collections");
  45 + Community[] subcommunities =
  46 + (Community[]) request.getAttribute("subcommunities");
  47 +
  48 + RecentSubmissions rs = (RecentSubmissions) request.getAttribute("recently.submitted");
  49 +
  50 + Boolean editor_b = (Boolean)request.getAttribute("editor_button");
  51 + boolean editor_button = (editor_b == null ? false : editor_b.booleanValue());
  52 + Boolean add_b = (Boolean)request.getAttribute("add_button");
  53 + boolean add_button = (add_b == null ? false : add_b.booleanValue());
  54 + Boolean remove_b = (Boolean)request.getAttribute("remove_button");
  55 + boolean remove_button = (remove_b == null ? false : remove_b.booleanValue());
  56 +
  57 + // get the browse indices
  58 + BrowseIndex[] bis = BrowseIndex.getBrowseIndices();
  59 +
  60 + // Put the metadata values into guaranteed non-null variables
  61 + String name = community.getMetadata("name");
  62 + String intro = community.getMetadata("introductory_text");
  63 + String copyright = community.getMetadata("copyright_text");
  64 + String sidebar = community.getMetadata("side_bar_text");
  65 + Bitstream logo = community.getLogo();
  66 +
  67 + boolean feedEnabled = ConfigurationManager.getBooleanProperty("webui.feed.enable");
  68 + String feedData = "NONE";
  69 + if (feedEnabled)
  70 + {
  71 + feedData = "comm:" + ConfigurationManager.getProperty("webui.feed.formats");
  72 + }
  73 +
  74 + ItemCounter ic = new ItemCounter(UIUtil.obtainContext(request));
  75 +%>
  76 +
  77 +<%@page import="org.dspace.app.webui.servlet.MyDSpaceServlet"%>
  78 +<dspace:layout locbar="commLink" title="<%= name %>" feedData="<%= feedData %>">
  79 +<div class="well">
  80 +<div class="row">
  81 + <div class="col-md-8">
  82 + <h2><%= name %>
  83 + <%
  84 + if(ConfigurationManager.getBooleanProperty("webui.strengths.show"))
  85 + {
  86 +%>
  87 + : [<%= ic.getCount(community) %>]
  88 +<%
  89 + }
  90 +%>
  91 + <small><fmt:message key="jsp.community-home.heading1"/></small>
  92 + <!--<a class="statisticsLink btn btn-info" href="<%= request.getContextPath() %>/handle/<%= community.getHandle() %>/statistics"><fmt:message key="jsp.community-home.display-statistics"/></a>-->
  93 + <!--STATS ADDON -->
  94 + <%
  95 + if(ConfigurationManager.getBooleanProperty("stats.enable"))
  96 + {
  97 + %>
  98 + <a class="statisticsLink btn btn-info" href="<%= request.getContextPath() %>/stats?level=community&type=access&page=down-series&object-id=<%= community.getID() %>">
  99 + <fmt:message key="jsp.community-home.display-statistics" /></a>
  100 + <%
  101 + }
  102 + else
  103 + {
  104 + %>
  105 + <a class="statisticsLink btn btn-info" href="<%= request.getContextPath() %>/handle/<%= community.getHandle() %>/statistics"><fmt:message key="jsp.community-home.display-statistics"/></a>
  106 + <%
  107 + }
  108 + %>
  109 + <!--END STATS ADDON -->
  110 + </h2>
  111 + </div>
  112 +<% if (logo != null) { %>
  113 + <div class="col-md-4">
  114 + <img class="img-responsive" alt="Logo" src="<%= request.getContextPath() %>/retrieve/<%= logo.getID() %>" />
  115 + </div>
  116 +<% } %>
  117 + </div>
  118 +
  119 +<% if (StringUtils.isNotBlank(intro)) { %>
  120 + <%= intro %>
  121 +<% } %>
  122 +</div>
  123 +<p class="copyrightText"><%= copyright %></p>
  124 + <div class="row">
  125 +<%
  126 + if (rs != null)
  127 + { %>
  128 + <div class="col-md-8">
  129 + <div class="panel panel-primary">
  130 + <div id="recent-submissions-carousel" class="panel-heading carousel slide">
  131 + <%-- Recently Submitted items --%>
  132 + <h3><fmt:message key="jsp.community-home.recentsub"/>
  133 +<%
  134 + if(feedEnabled)
  135 + {
  136 + String[] fmts = feedData.substring(5).split(",");
  137 + String icon = null;
  138 + int width = 0;
  139 + for (int j = 0; j < fmts.length; j++)
  140 + {
  141 + if ("rss_1.0".equals(fmts[j]))
  142 + {
  143 + icon = "rss1.gif";
  144 + width = 80;
  145 + }
  146 + else if ("rss_2.0".equals(fmts[j]))
  147 + {
  148 + icon = "rss2.gif";
  149 + width = 80;
  150 + }
  151 + else
  152 + {
  153 + icon = "rss.gif";
  154 + width = 36;
  155 + }
  156 +%>
  157 + <a href="<%= request.getContextPath() %>/feed/<%= fmts[j] %>/<%= community.getHandle() %>"><img src="<%= request.getContextPath() %>/image/<%= icon %>" alt="RSS Feed" width="<%= width %>" height="15" style="margin: 3px 0 3px" /></a>
  158 +<%
  159 + }
  160 + }
  161 +%>
  162 + </h3>
  163 +
  164 + <%
  165 + Item[] items = rs.getRecentSubmissions();
  166 + boolean first = true;
  167 + if(items!=null && items.length>0)
  168 + {
  169 + %>
  170 + <!-- Wrapper for slides -->
  171 + <div class="carousel-inner">
  172 + <% for (int i = 0; i < items.length; i++)
  173 + {
  174 + Metadatum[] dcv = items[i].getMetadata("dc", "title", null, Item.ANY);
  175 + String displayTitle = "Untitled";
  176 + if (dcv != null)
  177 + {
  178 + if (dcv.length > 0)
  179 + {
  180 + displayTitle = Utils.addEntities(dcv[0].value);
  181 + }
  182 + }
  183 + %>
  184 + <div style="padding-bottom: 50px; min-height: 200px;" class="item <%= first?"active":""%>">
  185 + <div style="padding-left: 80px; padding-right: 80px; display: inline-block;">
  186 + <!-- RCAAP - FCCN CHANGES LINKS -->
  187 + <h4><a style="text-decoration-color: #000; color: #000;" href="<%= request.getContextPath() %>/handle/<%=items[i].getHandle() %>" class="text-muted">
  188 + <%= StringUtils.abbreviate(displayTitle, 400) %></a></h4>
  189 + <!--<%= StringUtils.abbreviate(displayTitle, 400) %></b></a>-->
  190 +
  191 + <!--<h4><%= StringUtils.abbreviate(displayTitle, 400) %></h4>
  192 + <a style="text-decoration: none;" href="<%= request.getContextPath() %>/handle/<%=items[i].getHandle() %>" class="text-muted"><fmt:message key="jsp.recent-submission.see"/></a>
  193 + -->
  194 + </div>
  195 + </div>
  196 +<%
  197 + first = false;
  198 + }
  199 + %>
  200 + </div>
  201 +
  202 + <!-- Controls -->
  203 + <a class="left carousel-control" href="#recent-submissions-carousel" data-slide="prev">
  204 + <span class="icon-prev"></span>
  205 + </a>
  206 + <a class="right carousel-control" href="#recent-submissions-carousel" data-slide="next">
  207 + <span class="icon-next"></span>
  208 + </a>
  209 +
  210 + <ol class="carousel-indicators">
  211 + <li data-target="#recent-submissions-carousel" data-slide-to="0" class="active"></li>
  212 + <% for (int i = 1; i < rs.count(); i++){ %>
  213 + <li data-target="#recent-submissions-carousel" data-slide-to="<%= i %>"></li>
  214 + <% } %>
  215 + </ol>
  216 +
  217 + <%
  218 + }
  219 + %>
  220 +
  221 + </div></div></div>
  222 +<%
  223 + }
  224 +%>
  225 + <div class="col-md-4">
  226 + <%= sidebar %>
  227 + </div>
  228 +</div>
  229 +
  230 +<%-- Browse --%>
  231 +<div class="panel panel-primary">
  232 + <div class="panel-heading"><fmt:message key="jsp.general.browse"/></div>
  233 + <div class="panel-body">
  234 + <%-- Insert the dynamic list of browse options --%>
  235 +<%
  236 + for (int i = 0; i < bis.length; i++)
  237 + {
  238 + String key = "browse.menu." + bis[i].getName();
  239 +%>
  240 + <form class="btn-group" method="get" action="<%= request.getContextPath() %>/handle/<%= community.getHandle() %>/browse">
  241 + <input type="hidden" name="type" value="<%= bis[i].getName() %>"/>
  242 + <%-- <input type="hidden" name="community" value="<%= community.getHandle() %>" /> --%>
  243 + <input class="btn btn-primary" type="submit" name="submit_browse" value="<fmt:message key="<%= key %>"/>"/>
  244 + </form>
  245 +<%
  246 + }
  247 +%>
  248 +
  249 + </div>
  250 +</div>
  251 +
  252 +<div class="row">
  253 +
  254 + <%
  255 + int discovery_panel_cols = 12;
  256 + int discovery_facet_cols = 4;
  257 + %>
  258 + <%@ include file="discovery/static-sidebar-facet.jsp" %>
  259 +</div>
  260 +
  261 +<div class="row">
  262 + <%@ include file="discovery/static-tagcloud-facet.jsp" %>
  263 +</div>
  264 +
  265 +<div class="row">
  266 +<%
  267 + boolean showLogos = ConfigurationManager.getBooleanProperty("jspui.community-home.logos", true);
  268 + if (subcommunities.length != 0)
  269 + {
  270 +%>
  271 + <div class="col-md-6">
  272 +
  273 + <h3><fmt:message key="jsp.community-home.heading3"/></h3>
  274 +
  275 + <div class="list-group">
  276 +<%
  277 + for (int j = 0; j < subcommunities.length; j++)
  278 + {
  279 +%>
  280 + <div class="list-group-item row">
  281 +<%
  282 + Bitstream logoCom = subcommunities[j].getLogo();
  283 + if (showLogos && logoCom != null) { %>
  284 + <div class="col-md-3">
  285 + <img alt="Logo" class="img-responsive" src="<%= request.getContextPath() %>/retrieve/<%= logoCom.getID() %>" />
  286 + </div>
  287 + <div class="col-md-9">
  288 +<% } else { %>
  289 + <div class="col-md-12">
  290 +<% } %>
  291 +
  292 + <h4 class="list-group-item-heading"><a href="<%= request.getContextPath() %>/handle/<%= subcommunities[j].getHandle() %>">
  293 + <%= subcommunities[j].getMetadata("name") %></a>
  294 +<%
  295 + if (ConfigurationManager.getBooleanProperty("webui.strengths.show"))
  296 + {
  297 +%>
  298 + [<%= ic.getCount(subcommunities[j]) %>]
  299 +<%
  300 + }
  301 +%>
  302 + <% if (remove_button) { %>
  303 + <form class="btn-group" method="post" action="<%=request.getContextPath()%>/tools/edit-communities">
  304 + <input type="hidden" name="parent_community_id" value="<%= community.getID() %>" />
  305 + <input type="hidden" name="community_id" value="<%= subcommunities[j].getID() %>" />
  306 + <input type="hidden" name="action" value="<%=EditCommunitiesServlet.START_DELETE_COMMUNITY%>" />
  307 + <button type="submit" class="btn btn-xs btn-danger"><span class="glyphicon glyphicon-trash"></span></button>
  308 + </form>
  309 + <% } %>
  310 + </h4>
  311 + <p class="collectionDescription"><%= subcommunities[j].getMetadata("short_description") %></p>
  312 + </div>
  313 + </div>
  314 +<%
  315 + }
  316 +%>
  317 + </div>
  318 +</div>
  319 +<%
  320 + }
  321 +%>
  322 +
  323 +<%
  324 + if (collections.length != 0)
  325 + {
  326 +%>
  327 + <div class="col-md-6">
  328 +
  329 + <%-- <h2>Collections in this community</h2> --%>
  330 + <h3><fmt:message key="jsp.community-home.heading2"/></h3>
  331 + <div class="list-group">
  332 +<%
  333 + for (int i = 0; i < collections.length; i++)
  334 + {
  335 +%>
  336 + <div class="list-group-item row">
  337 +<%
  338 + Bitstream logoCol = collections[i].getLogo();
  339 + if (showLogos && logoCol != null) { %>
  340 + <div class="col-md-3">
  341 + <img alt="Logo" class="img-responsive" src="<%= request.getContextPath() %>/retrieve/<%= logoCol.getID() %>" />
  342 + </div>
  343 + <div class="col-md-9">
  344 +<% } else { %>
  345 + <div class="col-md-12">
  346 +<% } %>
  347 +
  348 + <h4 class="list-group-item-heading"><a href="<%= request.getContextPath() %>/handle/<%= collections[i].getHandle() %>">
  349 + <%= collections[i].getMetadata("name") %></a>
  350 +<%
  351 + if(ConfigurationManager.getBooleanProperty("webui.strengths.show"))
  352 + {
  353 +%>
  354 + [<%= ic.getCount(collections[i]) %>]
  355 +<%
  356 + }
  357 +%>
  358 + <% if (remove_button) { %>
  359 + <form class="btn-group" method="post" action="<%=request.getContextPath()%>/tools/edit-communities">
  360 + <input type="hidden" name="parent_community_id" value="<%= community.getID() %>" />
  361 + <input type="hidden" name="community_id" value="<%= community.getID() %>" />
  362 + <input type="hidden" name="collection_id" value="<%= collections[i].getID() %>" />
  363 + <input type="hidden" name="action" value="<%=EditCommunitiesServlet.START_DELETE_COLLECTION%>" />
  364 + <button type="submit" class="btn btn-xs btn-danger"><span class="glyphicon glyphicon-trash"></span></button>
  365 + </form>
  366 + <% } %>
  367 + </h4>
  368 + <p class="collectionDescription"><%= collections[i].getMetadata("short_description") %></p>
  369 + </div>
  370 + </div>
  371 +<%
  372 + }
  373 +%>
  374 + </div>
  375 +</div>
  376 +<%
  377 + }
  378 +%>
  379 +</div>
  380 + <% if(editor_button || add_button) // edit button(s)
  381 + { %>
  382 + <dspace:sidebar>
  383 + <div class="panel panel-warning">
  384 + <div class="panel-heading">
  385 + <fmt:message key="jsp.admintools"/>
  386 + <span class="pull-right">
  387 + <dspace:popup page="<%= LocaleSupport.getLocalizedMessage(pageContext, \"help.site-admin\")%>"><fmt:message key="jsp.adminhelp"/></dspace:popup>
  388 + </span>
  389 + </div>
  390 + <div class="panel-body">
  391 + <% if(editor_button) { %>
  392 + <form method="post" action="<%=request.getContextPath()%>/tools/edit-communities">
  393 + <input type="hidden" name="community_id" value="<%= community.getID() %>" />
  394 + <input type="hidden" name="action" value="<%=EditCommunitiesServlet.START_EDIT_COMMUNITY%>" />
  395 + <%--<input type="submit" value="Edit..." />--%>
  396 + <input class="btn btn-default col-md-12" type="submit" value="<fmt:message key="jsp.general.edit.button"/>" />
  397 + </form>
  398 + <% } %>
  399 + <% if(add_button) { %>
  400 +
  401 + <form method="post" action="<%=request.getContextPath()%>/tools/collection-wizard">
  402 + <input type="hidden" name="community_id" value="<%= community.getID() %>" />
  403 + <input class="btn btn-default col-md-12" type="submit" value="<fmt:message key="jsp.community-home.create1.button"/>" />
  404 + </form>
  405 +
  406 + <form method="post" action="<%=request.getContextPath()%>/tools/edit-communities">
  407 + <input type="hidden" name="action" value="<%= EditCommunitiesServlet.START_CREATE_COMMUNITY%>" />
  408 + <input type="hidden" name="parent_community_id" value="<%= community.getID() %>" />
  409 + <%--<input type="submit" name="submit" value="Create Sub-community" />--%>
  410 + <input class="btn btn-default col-md-12" type="submit" name="submit" value="<fmt:message key="jsp.community-home.create2.button"/>" />
  411 + </form>
  412 + <% } %>
  413 + <% if( editor_button ) { %>
  414 + <form method="post" action="<%=request.getContextPath()%>/mydspace">
  415 + <input type="hidden" name="community_id" value="<%= community.getID() %>" />
  416 + <input type="hidden" name="step" value="<%= MyDSpaceServlet.REQUEST_EXPORT_ARCHIVE %>" />
  417 + <input class="btn btn-default col-md-12" type="submit" value="<fmt:message key="jsp.mydspace.request.export.community"/>" />
  418 + </form>
  419 + <form method="post" action="<%=request.getContextPath()%>/mydspace">
  420 + <input type="hidden" name="community_id" value="<%= community.getID() %>" />
  421 + <input type="hidden" name="step" value="<%= MyDSpaceServlet.REQUEST_MIGRATE_ARCHIVE %>" />
  422 + <input class="btn btn-default col-md-12" type="submit" value="<fmt:message key="jsp.mydspace.request.export.migratecommunity"/>" />
  423 + </form>
  424 + <form method="post" action="<%=request.getContextPath()%>/dspace-admin/metadataexport">
  425 + <input type="hidden" name="handle" value="<%= community.getHandle() %>" />
  426 + <input class="btn btn-default col-md-12" type="submit" value="<fmt:message key="jsp.general.metadataexport.button"/>" />
  427 + </form>
  428 + <% } %>
  429 + </div>
  430 + </div>
  431 + </dspace:sidebar>
  432 + <% } %>
  433 +</dspace:layout>
... ...
dspace/modules/jspui/src/main/webapp/home.jsp
... ... @@ -0,0 +1,223 @@
  1 +<%--
  2 +
  3 + The contents of this file are subject to the license and copyright
  4 + detailed in the LICENSE and NOTICE files at the root of the source
  5 + tree and available online at
  6 +
  7 + http://www.dspace.org/license/
  8 +
  9 +--%>
  10 +<%--
  11 + - Home page JSP
  12 + -
  13 + - Attributes:
  14 + - communities - Community[] all communities in DSpace
  15 + - recent.submissions - RecetSubmissions
  16 + --%>
  17 +
  18 +<%@page import="org.dspace.core.Utils"%>
  19 +<%@page import="org.dspace.content.Bitstream"%>
  20 +<%@ page contentType="text/html;charset=UTF-8" %>
  21 +
  22 +<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
  23 +
  24 +<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
  25 +
  26 +<%@ page import="java.io.File" %>
  27 +<%@ page import="java.util.Enumeration"%>
  28 +<%@ page import="java.util.Locale"%>
  29 +<%@ page import="javax.servlet.jsp.jstl.core.*" %>
  30 +<%@ page import="javax.servlet.jsp.jstl.fmt.LocaleSupport" %>
  31 +<%@ page import="org.dspace.core.I18nUtil" %>
  32 +<%@ page import="org.dspace.app.webui.util.UIUtil" %>
  33 +<%@ page import="org.dspace.app.webui.components.RecentSubmissions" %>
  34 +<%@ page import="org.dspace.content.Community" %>
  35 +<%@ page import="org.dspace.core.ConfigurationManager" %>
  36 +<%@ page import="org.dspace.core.NewsManager" %>
  37 +<%@ page import="org.dspace.browse.ItemCounter" %>
  38 +<%@ page import="org.dspace.content.Metadatum" %>
  39 +<%@ page import="org.dspace.content.Item" %>
  40 +
  41 +<%
  42 + Community[] communities = (Community[]) request.getAttribute("communities");
  43 +
  44 + Locale sessionLocale = UIUtil.getSessionLocale(request);
  45 + Config.set(request.getSession(), Config.FMT_LOCALE, sessionLocale);
  46 + String topNews = NewsManager.readNewsFile(LocaleSupport.getLocalizedMessage(pageContext, "news-top.html"));
  47 + String sideNews = NewsManager.readNewsFile(LocaleSupport.getLocalizedMessage(pageContext, "news-side.html"));
  48 +
  49 + boolean feedEnabled = ConfigurationManager.getBooleanProperty("webui.feed.enable");
  50 + String feedData = "NONE";
  51 + if (feedEnabled)
  52 + {
  53 + feedData = "ALL:" + ConfigurationManager.getProperty("webui.feed.formats");
  54 + }
  55 +
  56 + ItemCounter ic = new ItemCounter(UIUtil.obtainContext(request));
  57 +
  58 + RecentSubmissions submissions = (RecentSubmissions) request.getAttribute("recent.submissions");
  59 +%>
  60 +
  61 +<dspace:layout locbar="nolink" titlekey="jsp.home.title" feedData="<%= feedData %>">
  62 +
  63 + <div class="jumbotron photo">
  64 + <%= topNews %>
  65 + </div>
  66 +
  67 +<div class="row">
  68 +<%
  69 +if (submissions != null && submissions.count() > 0)
  70 +{
  71 +%>
  72 + <div class="col-md-8">
  73 + <div class="panel panel-primary">
  74 + <div id="recent-submissions-carousel" class="panel-heading carousel slide">
  75 + <h3><fmt:message key="jsp.collection-home.recentsub"/>
  76 + <%
  77 + if(feedEnabled)
  78 + {
  79 + String[] fmts = feedData.substring(feedData.indexOf(':')+1).split(",");
  80 + String icon = null;
  81 + int width = 0;
  82 + for (int j = 0; j < fmts.length; j++)
  83 + {
  84 + if ("rss_1.0".equals(fmts[j]))
  85 + {
  86 + icon = "rss1.gif";
  87 + width = 80;
  88 + }
  89 + else if ("rss_2.0".equals(fmts[j]))
  90 + {
  91 + icon = "rss2.gif";
  92 + width = 80;
  93 + }
  94 + else
  95 + {
  96 + icon = "rss.gif";
  97 + width = 36;
  98 + }
  99 + %>
  100 + <a href="<%= request.getContextPath() %>/feed/<%= fmts[j] %>/site"><img src="<%= request.getContextPath() %>/image/<%= icon %>" alt="RSS Feed" width="<%= width %>" height="15" style="margin: 3px 0 3px" /></a>
  101 + <%
  102 + }
  103 + }
  104 + %>
  105 + </h3>
  106 +
  107 + <!-- Wrapper for slides -->
  108 + <div class="carousel-inner">
  109 + <%
  110 + boolean first = true;
  111 + for (Item item : submissions.getRecentSubmissions())
  112 + {
  113 + Metadatum[] dcv = item.getMetadata("dc", "title", null, Item.ANY);
  114 + String displayTitle = "Untitled";
  115 + if (dcv != null & dcv.length > 0)
  116 + {
  117 + displayTitle = Utils.addEntities(dcv[0].value);
  118 + }
  119 + dcv = item.getMetadata("dc", "description", "abstract", Item.ANY);
  120 + String displayAbstract = "";
  121 + if (dcv != null & dcv.length > 0)
  122 + {
  123 + displayAbstract = Utils.addEntities(dcv[0].value);
  124 + }
  125 + %>
  126 + <div style="padding-bottom: 50px; min-height: 200px;" class="item <%= first?"active":""%>">
  127 + <div style="padding-left: 80px; padding-right: 80px; display: inline-block;">
  128 + <!--RCAAP - FCCN - LINKS instead of of Button -->
  129 + <h4><a style="text-decoration-color: #000; color: #000;" href="<%= request.getContextPath() %>/handle/<%=item.getHandle() %>" class="text-muted">
  130 +
  131 + <!--<h4><%= StringUtils.abbreviate(displayTitle, 400) %></h4></a>-->
  132 + <%= StringUtils.abbreviate(displayTitle, 400) %></a></h4>
  133 + <!--<a href="<%= request.getContextPath() %>/handle/<%=item.getHandle() %>" class="btn btn-primary btn-sm"><fmt:message key="jsp.recent-submission.see"/></a>-->
  134 + <p><%= StringUtils.abbreviate(displayAbstract, 500) %></p>
  135 + </div>
  136 + </div>
  137 + <%
  138 + first = false;
  139 + }
  140 + %>
  141 + </div>
  142 +
  143 + <!-- Controls -->
  144 + <a class="left carousel-control" href="#recent-submissions-carousel" data-slide="prev">
  145 + <span class="icon-prev"></span>
  146 + </a>
  147 + <a class="right carousel-control" href="#recent-submissions-carousel" data-slide="next">
  148 + <span class="icon-next"></span>
  149 + </a>
  150 +
  151 + <ol class="carousel-indicators">
  152 + <li data-target="#recent-submissions-carousel" data-slide-to="0" class="active"></li>
  153 + <% for (int i = 1; i < submissions.count(); i++){ %>
  154 + <li data-target="#recent-submissions-carousel" data-slide-to="<%= i %>"></li>
  155 + <% } %>
  156 + </ol>
  157 + </div></div></div>
  158 +<%
  159 +}
  160 +%>
  161 +<div class="col-md-4 hp-sidebar">
  162 + <%= sideNews %>
  163 +</div>
  164 +</div>
  165 +<div class="container row">
  166 +<%
  167 +if (communities != null && communities.length != 0)
  168 +{
  169 +%>
  170 + <div class="col-md-4">
  171 + <h3><fmt:message key="jsp.home.com1"/></h3>
  172 + <p><fmt:message key="jsp.home.com2"/></p>
  173 + <div class="list-group">
  174 +<%
  175 + boolean showLogos = ConfigurationManager.getBooleanProperty("jspui.home-page.logos", true);
  176 + for (int i = 0; i < communities.length; i++)
  177 + {
  178 +%><div class="list-group-item row">
  179 +<%
  180 + Bitstream logo = communities[i].getLogo();
  181 + if (showLogos && logo != null) { %>
  182 + <div class="col-md-3">
  183 + <img alt="Logo" class="img-responsive" src="<%= request.getContextPath() %>/retrieve/<%= logo.getID() %>" />
  184 + </div>
  185 + <div class="col-md-9">
  186 +<% } else { %>
  187 + <div class="col-md-12">
  188 +<% } %>
  189 + <h4 class="list-group-item-heading"><a href="<%= request.getContextPath() %>/handle/<%= communities[i].getHandle() %>"><%= communities[i].getMetadata("name") %></a>
  190 +<%
  191 + if (ConfigurationManager.getBooleanProperty("webui.strengths.show"))
  192 + {
  193 +%>
  194 + <span class="badge pull-right"><%= ic.getCount(communities[i]) %></span>
  195 +<%
  196 + }
  197 +
  198 +%>
  199 + </h4>
  200 + <p><%= communities[i].getMetadata("short_description") %></p>
  201 + </div>
  202 +</div>
  203 +<%
  204 + }
  205 +%>
  206 + </div>
  207 + </div>
  208 +<%
  209 +}
  210 +%>
  211 + <%
  212 + int discovery_panel_cols = 8;
  213 + int discovery_facet_cols = 4;
  214 + %>
  215 + <%@ include file="discovery/static-sidebar-facet.jsp" %>
  216 +</div>
  217 +
  218 +<div class="row">
  219 + <%@ include file="discovery/static-tagcloud-facet.jsp" %>
  220 +</div>
  221 +
  222 +</div>
  223 +</dspace:layout>
... ...