Edit C:\apache-tomcat-7.0.69\webapps\jspui\home.jsp
<%-- The contents of this file are subject to the license and copyright detailed in the LICENSE and NOTICE files at the root of the source tree and available online at http://www.dspace.org/license/ --%> <%-- - Home page JSP - - Attributes: - communities - Community[] all communities in DSpace - recent.submissions - RecetSubmissions --%> <%@page import="org.dspace.core.factory.CoreServiceFactory"%> <%@page import="org.dspace.core.service.NewsService"%> <%@page import="org.dspace.content.service.CommunityService"%> <%@page import="org.dspace.content.factory.ContentServiceFactory"%> <%@page import="org.dspace.content.service.ItemService"%> <%@page import="org.dspace.core.Utils"%> <%@page import="org.dspace.content.Bitstream"%> <%@ page contentType="text/html;charset=UTF-8" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %> <%@ page import="java.io.File" %> <%@ page import="java.util.Enumeration"%> <%@ page import="java.util.Locale"%> <%@ page import="java.util.List"%> <%@ page import="javax.servlet.jsp.jstl.core.*" %> <%@ page import="javax.servlet.jsp.jstl.fmt.LocaleSupport" %> <%@ page import="org.apache.commons.lang.StringUtils" %> <%@ page import="org.dspace.core.I18nUtil" %> <%@ page import="org.dspace.app.webui.util.UIUtil" %> <%@ page import="org.dspace.app.webui.components.RecentSubmissions" %> <%@ page import="org.dspace.content.Community" %> <%@ page import="org.dspace.browse.ItemCounter" %> <%@ page import="org.dspace.content.Item" %> <%@ page import="org.dspace.services.ConfigurationService" %> <%@ page import="org.dspace.services.factory.DSpaceServicesFactory" %> <style> .carousel-caption { position: relative; left: 0%; right: 0%; bottom: 0px; z-index: 10; padding-top: 0px; padding-bottom: 0px; color: #2C3E50; text-shadow: none; & .btn { text-shadow: none; // No shadow for button elements in carousel-caption } } .carousel { position: relative; } .controllers { position: absolute; top: 0px; } .carousel-control.left, .carousel-control.right { background-image: none; } </style> <% List<Community> communities = (List<Community>) request.getAttribute("communities"); Locale sessionLocale = UIUtil.getSessionLocale(request); Config.set(request.getSession(), Config.FMT_LOCALE, sessionLocale); NewsService newsService = CoreServiceFactory.getInstance().getNewsService(); String topNews = newsService.readNewsFile(LocaleSupport.getLocalizedMessage(pageContext, "news-top.html")); String sideNews = newsService.readNewsFile(LocaleSupport.getLocalizedMessage(pageContext, "news-side.html")); ConfigurationService configurationService = DSpaceServicesFactory.getInstance().getConfigurationService(); boolean feedEnabled = configurationService.getBooleanProperty("webui.feed.enable"); String feedData = "NONE"; if (feedEnabled) { // FeedData is expected to be a comma separated list String[] formats = configurationService.getArrayProperty("webui.feed.formats"); String allFormats = StringUtils.join(formats, ","); feedData = "ALL:" + allFormats; } ItemCounter ic = new ItemCounter(UIUtil.obtainContext(request)); RecentSubmissions submissions = (RecentSubmissions) request.getAttribute("recent.submissions"); ItemService itemService = ContentServiceFactory.getInstance().getItemService(); CommunityService communityService = ContentServiceFactory.getInstance().getCommunityService(); %> <dspace:layout locbar="nolink" titlekey="jsp.home.title" feedData="<%= feedData %>"> <div class="jumbotron"> <p>El Repositorio Institucional Digital denominado ?Portal de conocimiento? tiene como misión albergar, difundir, preservar y dar visibilidad a toda la producción científica de las distintas unidades académicas de la universidad.</p> </div> <div class="row"> <% if (submissions != null && submissions.count() > 0) { %> <div class="col-md-8"> <div class="panel panel-primary"> <div id="recent-submissions-carousel" class="panel-heading carousel slide"> <h3><fmt:message key="jsp.collection-home.recentsub"/> <% if(feedEnabled) { String[] fmts = feedData.substring(feedData.indexOf(':')+1).split(","); String icon = null; int width = 0; for (int j = 0; j < fmts.length; j++) { if ("rss_1.0".equals(fmts[j])) { icon = "rss1.gif"; width = 80; } else if ("rss_2.0".equals(fmts[j])) { icon = "rss2.gif"; width = 80; } else { icon = "rss.gif"; width = 36; } %> <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> <% } } %> </h3> <!-- Wrapper for slides --> <div class="carousel-inner"> <% boolean first = true; for (Item item : submissions.getRecentSubmissions()) { String displayTitle = itemService.getMetadataFirstValue(item, "dc", "title", null, Item.ANY); if (displayTitle == null) { displayTitle = "Untitled"; } String displayAbstract = itemService.getMetadataFirstValue(item, "dc", "description", "abstract", Item.ANY); if (displayAbstract == null) { displayAbstract = ""; } %> <div style="padding-bottom: 50px; min-height: 200px;" class="item <%= first?"active":""%>"> <div style="padding-left: 80px; padding-right: 80px; display: inline-block;"><%= Utils.addEntities(StringUtils.abbreviate(displayTitle, 400)) %> <a href="<%= request.getContextPath() %>/handle/<%=item.getHandle() %>" class="btn btn-success">See</a> <p><%= Utils.addEntities(StringUtils.abbreviate(displayAbstract, 500)) %></p> </div> </div> <% first = false; } %> </div> <!-- Controls --> <a class="left carousel-control" href="#recent-submissions-carousel" data-slide="prev"> <span class="icon-prev"></span> </a> <a class="right carousel-control" href="#recent-submissions-carousel" data-slide="next"> <span class="icon-next"></span> </a> <ol class="carousel-indicators"> <li data-target="#recent-submissions-carousel" data-slide-to="0" class="active"></li> <% for (int i = 1; i < submissions.count(); i++){ %> <li data-target="#recent-submissions-carousel" data-slide-to="<%= i %>"></li> <% } %> </ol> </div></div></div> <% } %> <div class="col-md-4"> <%= sideNews %> </div> </div> <script > $(window).bind("load resize slid.bs.carousel", function() { var imageHeight = $(".active .holder").height(); $(".controllers").height( imageHeight ); console.log("Slid"); }); </script> <div id="carousel-example-generic" class="carousel slide" data-ride="carousel"> <!-- Wrapper for slides --> <div class="carousel-inner"> <div class="item active"> <div class="holder col-sm-8"> <img class="img-responsive" src="image/slide/01.jpg" alt="..."> </div> <div class="col-sm-4"> <div class="carousel-caption"> <h2> LICENCIAS CREATIVE COMMONS</h2> <p>El lector es libre de copiar y redistribuir el material en cualquier medio o formato, siempre y cuando respetando los derechos del autor.</p> </div> </div> </div> <div class="item"> <div class="holder col-sm-8"> <img class="img-responsive" src="image/slide/02.jpg" alt="..."> </div> <div class="col-sm-4"> <div class="carousel-caption"> <h2> </h2> <p class="text-left">Consejo Nacional de Ciencia y Tecnología</p> <p class="text-left">Programa Paraguayo para el Desarrollo de la Ciencia y Tecnología</p> <p class="text-left">Facultad Politecnica - Universidad Nacional del Este</p> </div> </div> </div> </div> <div class="controllers col-sm-8 col-xs-12"> <!-- Controls --> <a class="left carousel-control" href="#carousel-example-generic" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left"></span> </a> <a class="right carousel-control" href="#carousel-example-generic" data-slide="next"> <span class="glyphicon glyphicon-chevron-right"></span> </a> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li> <li data-target="#carousel-example-generic" data-slide-to="1"></li> </ol> </div> <div class="container row"> <% if (communities != null && communities.size() != 0) { %> <div class="col-md-4"> <h3><fmt:message key="jsp.home.com1"/></h3> <p><fmt:message key="jsp.home.com2"/></p> <div class="list-group"> <% boolean showLogos = configurationService.getBooleanProperty("jspui.home-page.logos", true); for (Community com : communities) { %><div class="list-group-item row"> <% Bitstream logo = com.getLogo(); if (showLogos && logo != null) { %> <div class="col-md-3"> <img alt="Logo" class="img-responsive" src="<%= request.getContextPath() %>/retrieve/<%= logo.getID() %>" /> </div> <div class="col-md-9"> <% } else { %> <div class="col-md-12"> <% } %> <h4 class="list-group-item-heading"><a href="<%= request.getContextPath() %>/handle/<%= com.getHandle() %>"><%= com.getName() %></a> <% if (configurationService.getBooleanProperty("webui.strengths.show")) { %> <span class="badge pull-right"><%= ic.getCount(com) %></span> <% } %> </h4> <p><%= communityService.getMetadata(com, "short_description") %></p> </div> </div> <% } %> </div> </div> <% } %> <% int discovery_panel_cols = 8; int discovery_facet_cols = 4; %> <%@ include file="discovery/static-sidebar-facet.jsp" %> </div> <div class="row"> <%@ include file="discovery/static-tagcloud-facet.jsp" %> </div> </div> </dspace:layout>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de