Edit C:\apache-tomcat-7.0.69\work\Catalina\localhost\jspui\org\apache\jsp\home_jsp.java
/* * Generated by the Jasper component of Apache Tomcat * Version: Apache Tomcat/7.0.69 * Generated at: 2019-04-03 14:56:55 UTC * Note: The last modified time of this file was set to * the last modified time of the source file after * generation to assist with modification tracking. */ package org.apache.jsp; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import org.dspace.core.factory.CoreServiceFactory; import org.dspace.core.service.NewsService; import org.dspace.content.service.CommunityService; import org.dspace.content.factory.ContentServiceFactory; import org.dspace.content.service.ItemService; import org.dspace.core.Utils; import org.dspace.content.Bitstream; import java.io.File; import java.util.Enumeration; import java.util.Locale; import java.util.List; import javax.servlet.jsp.jstl.core.*; import javax.servlet.jsp.jstl.fmt.LocaleSupport; import org.apache.commons.lang.StringUtils; import org.dspace.core.I18nUtil; import org.dspace.app.webui.util.UIUtil; import org.dspace.app.webui.components.RecentSubmissions; import org.dspace.content.Community; import org.dspace.browse.ItemCounter; import org.dspace.content.Item; import org.dspace.services.ConfigurationService; import org.dspace.services.factory.DSpaceServicesFactory; import org.dspace.discovery.configuration.DiscoverySearchFilterFacet; import java.util.HashMap; import java.util.Set; import java.util.Map; import org.dspace.discovery.DiscoverResult.FacetResult; import java.util.List; import java.net.URLEncoder; import org.apache.commons.lang.StringUtils; import org.dspace.discovery.configuration.DiscoverySearchFilterFacet; import java.util.HashMap; import java.util.Set; import java.util.Map; import org.dspace.discovery.DiscoverResult.FacetResult; import java.util.List; import java.net.URLEncoder; import org.apache.commons.lang.StringUtils; import org.dspace.discovery.configuration.DiscoverySearchFilterFacet; import org.dspace.discovery.configuration.TagCloudConfiguration; import java.util.HashMap; import java.util.Set; import java.util.Map; import java.util.List; import org.dspace.discovery.DiscoverResult.FacetResult; public final class home_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private static final javax.servlet.jsp.JspFactory _jspxFactory = javax.servlet.jsp.JspFactory.getDefaultFactory(); private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants; static { _jspx_dependants = new java.util.HashMap<java.lang.String,java.lang.Long>(4); _jspx_dependants.put("/discovery/static-tagcloud-facet.jsp", Long.valueOf(1504816158000L)); _jspx_dependants.put("/discovery/static-sidebar-facet.jsp", Long.valueOf(1504816158000L)); _jspx_dependants.put("/WEB-INF/fmt.tld", Long.valueOf(1504816158000L)); _jspx_dependants.put("/WEB-INF/dspace-tags.tld", Long.valueOf(1504816158000L)); } private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fdspace_005flayout_0026_005ftitlekey_005flocbar_005ffeedData; private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody; private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey; private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005ffmt_005fparam; private volatile javax.el.ExpressionFactory _el_expressionfactory; private volatile org.apache.tomcat.InstanceManager _jsp_instancemanager; public java.util.Map<java.lang.String,java.lang.Long> getDependants() { return _jspx_dependants; } public javax.el.ExpressionFactory _jsp_getExpressionFactory() { if (_el_expressionfactory == null) { synchronized (this) { if (_el_expressionfactory == null) { _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory(); } } } return _el_expressionfactory; } public org.apache.tomcat.InstanceManager _jsp_getInstanceManager() { if (_jsp_instancemanager == null) { synchronized (this) { if (_jsp_instancemanager == null) { _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig()); } } } return _jsp_instancemanager; } public void _jspInit() { _005fjspx_005ftagPool_005fdspace_005flayout_0026_005ftitlekey_005flocbar_005ffeedData = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); _005fjspx_005ftagPool_005ffmt_005fparam = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); } public void _jspDestroy() { _005fjspx_005ftagPool_005fdspace_005flayout_0026_005ftitlekey_005flocbar_005ffeedData.release(); _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.release(); _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.release(); _005fjspx_005ftagPool_005ffmt_005fparam.release(); } public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html;charset=UTF-8"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write('\n'); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("<style>\n"); out.write(".carousel-caption {\n"); out.write(" position: relative;\n"); out.write(" left: 0%;\n"); out.write(" right: 0%;\n"); out.write(" bottom: 0px;\n"); out.write(" z-index: 10;\n"); out.write(" padding-top: 0px;\n"); out.write(" padding-bottom: 0px;\n"); out.write(" color: #2C3E50;\n"); out.write(" text-shadow: none;\n"); out.write(" & .btn {\n"); out.write(" text-shadow: none; // No shadow for button elements in carousel-caption\n"); out.write(" }\n"); out.write("}\n"); out.write("\n"); out.write(".carousel {\n"); out.write(" position: relative;\n"); out.write("}\n"); out.write("\n"); out.write(".controllers {\n"); out.write(" position: absolute;\n"); out.write(" top: 0px;\n"); out.write("}\n"); out.write("\n"); out.write(".carousel-control.left, \n"); out.write(".carousel-control.right {\n"); out.write(" background-image: none;\n"); out.write("}\n"); out.write("</style>\n"); 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(); out.write('\n'); out.write('\n'); // dspace:layout org.dspace.app.webui.jsptag.LayoutTag _jspx_th_dspace_005flayout_005f0 = (org.dspace.app.webui.jsptag.LayoutTag) _005fjspx_005ftagPool_005fdspace_005flayout_0026_005ftitlekey_005flocbar_005ffeedData.get(org.dspace.app.webui.jsptag.LayoutTag.class); _jspx_th_dspace_005flayout_005f0.setPageContext(_jspx_page_context); _jspx_th_dspace_005flayout_005f0.setParent(null); // /home.jsp(103,0) name = locbar type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_dspace_005flayout_005f0.setLocbar("nolink"); // /home.jsp(103,0) name = titlekey type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_dspace_005flayout_005f0.setTitlekey("jsp.home.title"); // /home.jsp(103,0) name = feedData type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_dspace_005flayout_005f0.setFeedData( feedData ); int _jspx_eval_dspace_005flayout_005f0 = _jspx_th_dspace_005flayout_005f0.doStartTag(); if (_jspx_eval_dspace_005flayout_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { if (_jspx_eval_dspace_005flayout_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { out = _jspx_page_context.pushBody(); _jspx_th_dspace_005flayout_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out); _jspx_th_dspace_005flayout_005f0.doInitBody(); } do { out.write("\n"); out.write("\n"); out.write("\t<div class=\"jumbotron\">\n"); out.write(" <p>El Repositorio Institucional Digital denominado ?Portal de conocimiento? tiene como misión albergar, difundir, preservar\n"); out.write("y dar visibilidad a toda la producción científica de las distintas unidades académicas de la\n"); out.write("universidad.</p>\n"); out.write("\t</div>\n"); out.write("\n"); out.write("<div class=\"row\">\n"); if (submissions != null && submissions.count() > 0) { out.write("\n"); out.write(" <div class=\"col-md-8\">\n"); out.write(" <div class=\"panel panel-primary\"> \n"); out.write(" <div id=\"recent-submissions-carousel\" class=\"panel-heading carousel slide\">\n"); out.write(" <h3>"); if (_jspx_meth_fmt_005fmessage_005f0(_jspx_th_dspace_005flayout_005f0, _jspx_page_context)) return; out.write("\n"); out.write(" "); 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; } out.write("\n"); out.write("\t <a href=\""); out.print( request.getContextPath() ); out.write("/feed/"); out.print( fmts[j] ); out.write("/site\"><img src=\""); out.print( request.getContextPath() ); out.write("/image/"); out.print( icon ); out.write("\" alt=\"RSS Feed\" width=\""); out.print( width ); out.write("\" height=\"15\" style=\"margin: 3px 0 3px\" /></a>\n"); out.write("\t"); } } out.write("\n"); out.write(" </h3>\n"); out.write(" \n"); out.write("\t\t <!-- Wrapper for slides -->\n"); out.write("\t\t <div class=\"carousel-inner\">\n"); out.write("\t\t "); 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 = ""; } out.write("\n"); out.write("\t\t <div style=\"padding-bottom: 50px; min-height: 200px;\" class=\"item "); out.print( first?"active":""); out.write("\">\n"); out.write("\t\t <div style=\"padding-left: 80px; padding-right: 80px; display: inline-block;\">"); out.print( Utils.addEntities(StringUtils.abbreviate(displayTitle, 400)) ); out.write(" \n"); out.write("\t\t \t<a href=\""); out.print( request.getContextPath() ); out.write("/handle/"); out.print(item.getHandle() ); out.write("\" class=\"btn btn-success\">See</a>\n"); out.write(" <p>"); out.print( Utils.addEntities(StringUtils.abbreviate(displayAbstract, 500)) ); out.write("</p>\n"); out.write("\t\t </div>\n"); out.write("\t\t </div>\n"); out.write("\t\t"); first = false; } out.write("\n"); out.write("\t\t </div>\n"); out.write("\n"); out.write("\t\t <!-- Controls -->\n"); out.write("\t\t <a class=\"left carousel-control\" href=\"#recent-submissions-carousel\" data-slide=\"prev\">\n"); out.write("\t\t <span class=\"icon-prev\"></span>\n"); out.write("\t\t </a>\n"); out.write("\t\t <a class=\"right carousel-control\" href=\"#recent-submissions-carousel\" data-slide=\"next\">\n"); out.write("\t\t <span class=\"icon-next\"></span>\n"); out.write("\t\t </a>\n"); out.write("\n"); out.write(" <ol class=\"carousel-indicators\">\n"); out.write("\t\t <li data-target=\"#recent-submissions-carousel\" data-slide-to=\"0\" class=\"active\"></li>\n"); out.write("\t\t "); for (int i = 1; i < submissions.count(); i++){ out.write("\n"); out.write("\t\t <li data-target=\"#recent-submissions-carousel\" data-slide-to=\""); out.print( i ); out.write("\"></li>\n"); out.write("\t\t "); } out.write("\n"); out.write("\t </ol>\n"); out.write(" </div></div></div>\n"); } out.write("\n"); out.write("<div class=\"col-md-4\">\n"); out.write(" "); out.print( sideNews ); out.write("\n"); out.write("</div>\n"); out.write("</div>\n"); out.write("<script >\n"); out.write("$(window).bind(\"load resize slid.bs.carousel\", function() {\n"); out.write(" var imageHeight = $(\".active .holder\").height();\n"); out.write(" $(\".controllers\").height( imageHeight );\n"); out.write(" console.log(\"Slid\");\n"); out.write("});\n"); out.write("</script>\n"); out.write("<div id=\"carousel-example-generic\" class=\"carousel slide\" data-ride=\"carousel\">\n"); out.write("<!-- Wrapper for slides -->\n"); out.write("<div class=\"carousel-inner\">\n"); out.write("<div class=\"item active\">\n"); out.write(" <div class=\"holder col-sm-8\">\n"); out.write(" <img class=\"img-responsive\" src=\"image/slide/01.jpg\" alt=\"...\">\n"); out.write(" </div>\n"); out.write(" <div class=\"col-sm-4\">\n"); out.write(" <div class=\"carousel-caption\">\n"); out.write(" <h2>\n"); out.write("LICENCIAS CREATIVE COMMONS</h2>\n"); out.write(" <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> \n"); out.write(" </div>\n"); out.write(" </div>\n"); out.write("</div>\n"); out.write("<div class=\"item\">\n"); out.write(" <div class=\"holder col-sm-8\">\n"); out.write(" <img class=\"img-responsive\" src=\"image/slide/02.jpg\" alt=\"...\">\n"); out.write(" </div>\n"); out.write(" <div class=\"col-sm-4\">\n"); out.write(" <div class=\"carousel-caption\">\n"); out.write("\t<h2> </h2>\n"); out.write(" <p class=\"text-left\">Consejo Nacional de Ciencia y Tecnología</p>\n"); out.write("\t\t<p class=\"text-left\">Programa Paraguayo para el Desarrollo de la Ciencia y Tecnología</p>\n"); out.write("\t\t<p class=\"text-left\">Facultad Politecnica - Universidad Nacional del Este</p>\n"); out.write("\t</div>\n"); out.write(" </div>\n"); out.write("</div>\n"); out.write("\n"); out.write("</div>\n"); out.write("<div class=\"controllers col-sm-8 col-xs-12\">\n"); out.write("<!-- Controls -->\n"); out.write(" <a class=\"left carousel-control\" href=\"#carousel-example-generic\" data-slide=\"prev\">\n"); out.write(" <span class=\"glyphicon glyphicon-chevron-left\"></span>\n"); out.write(" </a>\n"); out.write(" <a class=\"right carousel-control\" href=\"#carousel-example-generic\" data-slide=\"next\">\n"); out.write(" <span class=\"glyphicon glyphicon-chevron-right\"></span>\n"); out.write(" </a>\n"); out.write(" <!-- Indicators -->\n"); out.write(" <ol class=\"carousel-indicators\">\n"); out.write(" <li data-target=\"#carousel-example-generic\" data-slide-to=\"0\" class=\"active\"></li>\n"); out.write(" <li data-target=\"#carousel-example-generic\" data-slide-to=\"1\"></li>\n"); out.write(" </ol> \n"); out.write("</div>\n"); out.write("<div class=\"container row\">\n"); if (communities != null && communities.size() != 0) { out.write("\n"); out.write("\t<div class=\"col-md-4\">\t\t\n"); out.write(" <h3>"); if (_jspx_meth_fmt_005fmessage_005f1(_jspx_th_dspace_005flayout_005f0, _jspx_page_context)) return; out.write("</h3>\n"); out.write(" <p>"); if (_jspx_meth_fmt_005fmessage_005f2(_jspx_th_dspace_005flayout_005f0, _jspx_page_context)) return; out.write("</p>\n"); out.write("\t\t\t\t<div class=\"list-group\">\n"); boolean showLogos = configurationService.getBooleanProperty("jspui.home-page.logos", true); for (Community com : communities) { out.write("<div class=\"list-group-item row\">\n"); Bitstream logo = com.getLogo(); if (showLogos && logo != null) { out.write("\n"); out.write("\t<div class=\"col-md-3\">\n"); out.write(" <img alt=\"Logo\" class=\"img-responsive\" src=\""); out.print( request.getContextPath() ); out.write("/retrieve/"); out.print( logo.getID() ); out.write("\" /> \n"); out.write("\t</div>\n"); out.write("\t<div class=\"col-md-9\">\n"); } else { out.write("\n"); out.write("\t<div class=\"col-md-12\">\n"); } out.write("\t\t\n"); out.write("\t\t<h4 class=\"list-group-item-heading\"><a href=\""); out.print( request.getContextPath() ); out.write("/handle/"); out.print( com.getHandle() ); out.write('"'); out.write('>'); out.print( com.getName() ); out.write("</a>\n"); if (configurationService.getBooleanProperty("webui.strengths.show")) { out.write("\n"); out.write("\t\t<span class=\"badge pull-right\">"); out.print( ic.getCount(com) ); out.write("</span>\n"); } out.write("\n"); out.write("\t\t</h4>\n"); out.write("\t\t<p>"); out.print( communityService.getMetadata(com, "short_description") ); out.write("</p>\n"); out.write(" </div>\n"); out.write("</div> \n"); } out.write("\n"); out.write("\t</div>\n"); out.write("\t</div>\n"); } out.write('\n'); out.write(' '); int discovery_panel_cols = 8; int discovery_facet_cols = 4; out.write('\n'); out.write(' '); out.write('\n'); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); boolean brefine = false; Map<String, List<FacetResult>> mapFacetes = (Map<String, List<FacetResult>>) request.getAttribute("discovery.fresults"); List<DiscoverySearchFilterFacet> facetsConf = (List<DiscoverySearchFilterFacet>) request.getAttribute("facetsConfig"); String searchScope = (String) request.getAttribute("discovery.searchScope"); if (searchScope == null) { searchScope = ""; } if (mapFacetes != null) { for (DiscoverySearchFilterFacet facetConf : facetsConf) { String f = facetConf.getIndexFieldName(); List<FacetResult> facet = mapFacetes.get(f); if (facet != null && facet.size() > 0) { brefine = true; break; } else { facet = mapFacetes.get(f+".year"); if (facet != null && facet.size() > 0) { brefine = true; break; } } } } if (brefine) { out.write("\n"); out.write("<div class=\"col-md-"); out.print( discovery_panel_cols ); out.write("\">\n"); out.write("<h3 class=\"facets\">"); if (_jspx_meth_fmt_005fmessage_005f3(_jspx_th_dspace_005flayout_005f0, _jspx_page_context)) return; out.write("</h3>\n"); out.write("<div id=\"facets\" class=\"facetsBox row panel\">\n"); for (DiscoverySearchFilterFacet facetConf : facetsConf) { String f = facetConf.getIndexFieldName(); List<FacetResult> facet = mapFacetes.get(f); if (facet == null) { facet = mapFacetes.get(f+".year"); } if (facet == null) { continue; } String fkey = "jsp.search.facet.refine."+f; int limit = facetConf.getFacetLimit()+1; out.write("<div id=\"facet_"); out.print( f ); out.write("\" class=\"facet col-md-"); out.print( discovery_facet_cols ); out.write("\">\n"); out.write("\t <span class=\"facetName\">"); // fmt:message org.apache.taglibs.standard.tag.el.fmt.MessageTag _jspx_th_fmt_005fmessage_005f4 = (org.apache.taglibs.standard.tag.el.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.el.fmt.MessageTag.class); _jspx_th_fmt_005fmessage_005f4.setPageContext(_jspx_page_context); _jspx_th_fmt_005fmessage_005f4.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_dspace_005flayout_005f0); // /discovery/static-sidebar-facet.jsp(82,29) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_fmt_005fmessage_005f4.setKey( fkey ); int _jspx_eval_fmt_005fmessage_005f4 = _jspx_th_fmt_005fmessage_005f4.doStartTag(); if (_jspx_th_fmt_005fmessage_005f4.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f4); return; } _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f4); out.write("</span>\n"); out.write("\t <ul class=\"list-group\">"); int idx = 1; int currFp = UIUtil.getIntParameter(request, f+"_page"); if (currFp < 0) { currFp = 0; } if (facet != null) { for (FacetResult fvalue : facet) { if (idx != limit) { out.write("<li class=\"list-group-item\"><span class=\"badge\">"); out.print( fvalue.getCount() ); out.write("</span> <a href=\""); out.print( request.getContextPath() + searchScope + "/simple-search?filterquery="+URLEncoder.encode(fvalue.getAsFilterQuery(),"UTF-8") + "&filtername="+URLEncoder.encode(f,"UTF-8") + "&filtertype="+URLEncoder.encode(fvalue.getFilterType(),"UTF-8") ); out.write("\"\n"); out.write("\t title=\""); // fmt:message org.apache.taglibs.standard.tag.el.fmt.MessageTag _jspx_th_fmt_005fmessage_005f5 = (org.apache.taglibs.standard.tag.el.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.get(org.apache.taglibs.standard.tag.el.fmt.MessageTag.class); _jspx_th_fmt_005fmessage_005f5.setPageContext(_jspx_page_context); _jspx_th_fmt_005fmessage_005f5.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_dspace_005flayout_005f0); // /discovery/static-sidebar-facet.jsp(101,24) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_fmt_005fmessage_005f5.setKey("jsp.search.facet.narrow"); int _jspx_eval_fmt_005fmessage_005f5 = _jspx_th_fmt_005fmessage_005f5.doStartTag(); if (_jspx_eval_fmt_005fmessage_005f5 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { if (_jspx_eval_fmt_005fmessage_005f5 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { out = _jspx_page_context.pushBody(); _jspx_th_fmt_005fmessage_005f5.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out); _jspx_th_fmt_005fmessage_005f5.doInitBody(); } do { // fmt:param org.apache.taglibs.standard.tag.el.fmt.ParamTag _jspx_th_fmt_005fparam_005f0 = (org.apache.taglibs.standard.tag.el.fmt.ParamTag) _005fjspx_005ftagPool_005ffmt_005fparam.get(org.apache.taglibs.standard.tag.el.fmt.ParamTag.class); _jspx_th_fmt_005fparam_005f0.setPageContext(_jspx_page_context); _jspx_th_fmt_005fparam_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_fmt_005fmessage_005f5); int _jspx_eval_fmt_005fparam_005f0 = _jspx_th_fmt_005fparam_005f0.doStartTag(); if (_jspx_eval_fmt_005fparam_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { if (_jspx_eval_fmt_005fparam_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { out = _jspx_page_context.pushBody(); _jspx_th_fmt_005fparam_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out); _jspx_th_fmt_005fparam_005f0.doInitBody(); } do { out.print(fvalue.getDisplayedValue() ); int evalDoAfterBody = _jspx_th_fmt_005fparam_005f0.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); if (_jspx_eval_fmt_005fparam_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { out = _jspx_page_context.popBody(); } } if (_jspx_th_fmt_005fparam_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffmt_005fparam.reuse(_jspx_th_fmt_005fparam_005f0); return; } _005fjspx_005ftagPool_005ffmt_005fparam.reuse(_jspx_th_fmt_005fparam_005f0); int evalDoAfterBody = _jspx_th_fmt_005fmessage_005f5.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); if (_jspx_eval_fmt_005fmessage_005f5 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { out = _jspx_page_context.popBody(); } } if (_jspx_th_fmt_005fmessage_005f5.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.reuse(_jspx_th_fmt_005fmessage_005f5); return; } _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.reuse(_jspx_th_fmt_005fmessage_005f5); out.write("\">\n"); out.write("\t "); out.print( StringUtils.abbreviate(fvalue.getDisplayedValue(),36) ); out.write("</a></li>"); } idx++; } if (currFp > 0 || idx > limit) { out.write("<li class=\"list-group-item\"><span style=\"visibility: hidden;\">.</span>\n"); out.write("\t\t "); if (currFp > 0) { out.write("\n"); out.write("\t\t <a class=\"pull-left\" href=\""); out.print( request.getContextPath() + searchScope + "?"+f+"_page="+(currFp-1) ); out.write('"'); out.write('>'); if (_jspx_meth_fmt_005fmessage_005f6(_jspx_th_dspace_005flayout_005f0, _jspx_page_context)) return; out.write("</a>\n"); out.write("\t "); } out.write("\n"); out.write("\t "); if (idx > limit) { out.write("\n"); out.write("\t <a href=\""); out.print( request.getContextPath() + searchScope + "?"+f+"_page="+(currFp+1) ); out.write("\"><span class=\"pull-right\">"); if (_jspx_meth_fmt_005fmessage_005f7(_jspx_th_dspace_005flayout_005f0, _jspx_page_context)) return; out.write("</span></a>\n"); out.write("\t "); } out.write("</li>"); } } out.write("</ul></div>"); } out.write("</div></div>"); } out.write("\n"); out.write("</div>\n"); out.write("\n"); out.write("<div class=\"row\">\n"); out.write("\t"); out.write('\n'); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); Map<String, List<FacetResult>> tcMapFacetes = (Map<String, List<FacetResult>>) request.getAttribute("tagcloud.fresults"); List<DiscoverySearchFilterFacet> tcFacetsConf = (List<DiscoverySearchFilterFacet>) request.getAttribute("tagCloudFacetsConfig"); TagCloudConfiguration tagCloudConfiguration = (TagCloudConfiguration) request.getAttribute("tagCloudConfig"); String tcSearchScope = (String) request.getAttribute("tagcloud.searchScope"); String scope = tcSearchScope; if (tcMapFacetes!=null) { for (DiscoverySearchFilterFacet facetConf : tcFacetsConf) { Map<String, Integer> data = new HashMap<String, Integer>(); String index = facetConf.getIndexFieldName(); List<FacetResult> facet = tcMapFacetes.get(index); if (facet!=null){ for (FacetResult fvalue : facet) { data.put(fvalue.getDisplayedValue(), (int)fvalue.getCount()); } } out.write("\n"); out.write(" \t\t\t<div>\n"); out.write(" \t\t\t\t"); // dspace:tagcloud org.dspace.app.webui.tagcloud.TagCloudTag _jspx_th_dspace_005ftagcloud_005f0 = (new org.dspace.app.webui.tagcloud.TagCloudTag()); _jsp_getInstanceManager().newInstance(_jspx_th_dspace_005ftagcloud_005f0); _jspx_th_dspace_005ftagcloud_005f0.setJspContext(_jspx_page_context); _jspx_th_dspace_005ftagcloud_005f0.setParent(_jspx_th_dspace_005flayout_005f0); // /discovery/static-tagcloud-facet.jsp(57,8) name = parameters type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_dspace_005ftagcloud_005f0.setParameters( tagCloudConfiguration ); // /discovery/static-tagcloud-facet.jsp(57,8) name = index type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_dspace_005ftagcloud_005f0.setIndex( index ); // /discovery/static-tagcloud-facet.jsp(57,8) name = scope type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_dspace_005ftagcloud_005f0.setScope( scope ); // /discovery/static-tagcloud-facet.jsp(57,8) name = data type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_dspace_005ftagcloud_005f0.setData( data ); _jspx_th_dspace_005ftagcloud_005f0.doTag(); _jsp_getInstanceManager().destroyInstance(_jspx_th_dspace_005ftagcloud_005f0); out.write("<br/><br/>\n"); out.write(" \t\t\t</div>\n"); out.write(" "); } } out.write("\n"); out.write("</div>\n"); out.write("\t\n"); out.write("</div>\n"); int evalDoAfterBody = _jspx_th_dspace_005flayout_005f0.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); if (_jspx_eval_dspace_005flayout_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { out = _jspx_page_context.popBody(); } } if (_jspx_th_dspace_005flayout_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005fdspace_005flayout_0026_005ftitlekey_005flocbar_005ffeedData.reuse(_jspx_th_dspace_005flayout_005f0); return; } _005fjspx_005ftagPool_005fdspace_005flayout_0026_005ftitlekey_005flocbar_005ffeedData.reuse(_jspx_th_dspace_005flayout_005f0); out.write('\n'); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)){ out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) {} if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } } private boolean _jspx_meth_fmt_005fmessage_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_dspace_005flayout_005f0, javax.servlet.jsp.PageContext _jspx_page_context) throws java.lang.Throwable { javax.servlet.jsp.PageContext pageContext = _jspx_page_context; javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); // fmt:message org.apache.taglibs.standard.tag.el.fmt.MessageTag _jspx_th_fmt_005fmessage_005f0 = (org.apache.taglibs.standard.tag.el.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.el.fmt.MessageTag.class); _jspx_th_fmt_005fmessage_005f0.setPageContext(_jspx_page_context); _jspx_th_fmt_005fmessage_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_dspace_005flayout_005f0); // /home.jsp(119,14) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_fmt_005fmessage_005f0.setKey("jsp.collection-home.recentsub"); int _jspx_eval_fmt_005fmessage_005f0 = _jspx_th_fmt_005fmessage_005f0.doStartTag(); if (_jspx_th_fmt_005fmessage_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f0); return true; } _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f0); return false; } private boolean _jspx_meth_fmt_005fmessage_005f1(javax.servlet.jsp.tagext.JspTag _jspx_th_dspace_005flayout_005f0, javax.servlet.jsp.PageContext _jspx_page_context) throws java.lang.Throwable { javax.servlet.jsp.PageContext pageContext = _jspx_page_context; javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); // fmt:message org.apache.taglibs.standard.tag.el.fmt.MessageTag _jspx_th_fmt_005fmessage_005f1 = (org.apache.taglibs.standard.tag.el.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.el.fmt.MessageTag.class); _jspx_th_fmt_005fmessage_005f1.setPageContext(_jspx_page_context); _jspx_th_fmt_005fmessage_005f1.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_dspace_005flayout_005f0); // /home.jsp(259,19) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_fmt_005fmessage_005f1.setKey("jsp.home.com1"); int _jspx_eval_fmt_005fmessage_005f1 = _jspx_th_fmt_005fmessage_005f1.doStartTag(); if (_jspx_th_fmt_005fmessage_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f1); return true; } _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f1); return false; } private boolean _jspx_meth_fmt_005fmessage_005f2(javax.servlet.jsp.tagext.JspTag _jspx_th_dspace_005flayout_005f0, javax.servlet.jsp.PageContext _jspx_page_context) throws java.lang.Throwable { javax.servlet.jsp.PageContext pageContext = _jspx_page_context; javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); // fmt:message org.apache.taglibs.standard.tag.el.fmt.MessageTag _jspx_th_fmt_005fmessage_005f2 = (org.apache.taglibs.standard.tag.el.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.el.fmt.MessageTag.class); _jspx_th_fmt_005fmessage_005f2.setPageContext(_jspx_page_context); _jspx_th_fmt_005fmessage_005f2.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_dspace_005flayout_005f0); // /home.jsp(260,19) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_fmt_005fmessage_005f2.setKey("jsp.home.com2"); int _jspx_eval_fmt_005fmessage_005f2 = _jspx_th_fmt_005fmessage_005f2.doStartTag(); if (_jspx_th_fmt_005fmessage_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f2); return true; } _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f2); return false; } private boolean _jspx_meth_fmt_005fmessage_005f3(javax.servlet.jsp.tagext.JspTag _jspx_th_dspace_005flayout_005f0, javax.servlet.jsp.PageContext _jspx_page_context) throws java.lang.Throwable { javax.servlet.jsp.PageContext pageContext = _jspx_page_context; javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); // fmt:message org.apache.taglibs.standard.tag.el.fmt.MessageTag _jspx_th_fmt_005fmessage_005f3 = (org.apache.taglibs.standard.tag.el.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.el.fmt.MessageTag.class); _jspx_th_fmt_005fmessage_005f3.setPageContext(_jspx_page_context); _jspx_th_fmt_005fmessage_005f3.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_dspace_005flayout_005f0); // /discovery/static-sidebar-facet.jsp(64,19) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_fmt_005fmessage_005f3.setKey("jsp.search.facet.refine"); int _jspx_eval_fmt_005fmessage_005f3 = _jspx_th_fmt_005fmessage_005f3.doStartTag(); if (_jspx_th_fmt_005fmessage_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f3); return true; } _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f3); return false; } private boolean _jspx_meth_fmt_005fmessage_005f6(javax.servlet.jsp.tagext.JspTag _jspx_th_dspace_005flayout_005f0, javax.servlet.jsp.PageContext _jspx_page_context) throws java.lang.Throwable { javax.servlet.jsp.PageContext pageContext = _jspx_page_context; javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); // fmt:message org.apache.taglibs.standard.tag.el.fmt.MessageTag _jspx_th_fmt_005fmessage_005f6 = (org.apache.taglibs.standard.tag.el.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.el.fmt.MessageTag.class); _jspx_th_fmt_005fmessage_005f6.setPageContext(_jspx_page_context); _jspx_th_fmt_005fmessage_005f6.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_dspace_005flayout_005f0); // /discovery/static-sidebar-facet.jsp(112,50) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_fmt_005fmessage_005f6.setKey("jsp.search.facet.refine.previous"); int _jspx_eval_fmt_005fmessage_005f6 = _jspx_th_fmt_005fmessage_005f6.doStartTag(); if (_jspx_th_fmt_005fmessage_005f6.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f6); return true; } _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f6); return false; } private boolean _jspx_meth_fmt_005fmessage_005f7(javax.servlet.jsp.tagext.JspTag _jspx_th_dspace_005flayout_005f0, javax.servlet.jsp.PageContext _jspx_page_context) throws java.lang.Throwable { javax.servlet.jsp.PageContext pageContext = _jspx_page_context; javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); // fmt:message org.apache.taglibs.standard.tag.el.fmt.MessageTag _jspx_th_fmt_005fmessage_005f7 = (org.apache.taglibs.standard.tag.el.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.el.fmt.MessageTag.class); _jspx_th_fmt_005fmessage_005f7.setPageContext(_jspx_page_context); _jspx_th_fmt_005fmessage_005f7.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_dspace_005flayout_005f0); // /discovery/static-sidebar-facet.jsp(117,74) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_fmt_005fmessage_005f7.setKey("jsp.search.facet.refine.next"); int _jspx_eval_fmt_005fmessage_005f7 = _jspx_th_fmt_005fmessage_005f7.doStartTag(); if (_jspx_th_fmt_005fmessage_005f7.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f7); return true; } _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f7); return false; } }
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de