<% /* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at license/ESCIDOC.LICENSE * or http://www.escidoc.org/license. * See the License for the specific language governing permissions * and limitations under the License. * * When distributing Covered Code, include this CDDL HEADER in each * file and include the License file at license/ESCIDOC.LICENSE. * If applicable, add the following below this CDDL HEADER, with the * fields enclosed by brackets "[]" replaced with your own identifying * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* * Copyright 2006-2012 Fachinformationszentrum Karlsruhe Gesellschaft * für wissenschaftlich-technische Information mbH and Max-Planck- * Gesellschaft zur F�rderung der Wissenschaft e.V. * All rights reserved. Use is subject to license terms. */ /** * eSciDoc Syndication Service Web presentation. * * Recent Releases of the Organizational Units page. * * @author Vlad Makarenko (initial creation) * @author $Author$ (last modification) * $Revision$ * $LastChangedDate$ */ %> <%@page import="java.util.Arrays,java.util.TreeMap,java.util.Map,de.mpg.escidoc.services.syndication.Syndication,de.mpg.escidoc.services.syndication.Utils,de.mpg.escidoc.services.framework.PropertyReader"%> <% // generation of the SELECT for Organizational Units String ou = request.getParameter("ou"); TreeMap outm = Utils.recalcOrganizationUnitTree(); String selOrgUnit=""; boolean flag = Utils.checkVal(ou); for( Map.Entry entry: outm.entrySet() ) { String key = entry.getKey(); String value = entry.getValue(); selOrgUnit += "\n"; } // generation of the SELECT for feedTypes String selType=""; Syndication synd = new Syndication(); String[] feedTypes = synd.getFeedFormatList("${baseUrl}/syndication/feed/${feedType}/publications/organization/${organizationId}"); Arrays.sort(feedTypes); for (String type: feedTypes) { selType += "\n"; } String urlPrefix = (request.getProtocol().contains("HTTPS") ? "https" : "http") + "://" + request.getServerName() + (request.getServerPort() != 80 ? ":" + request.getServerPort() : "") + request.getContextPath() + "/feed"; //The only rss_2.0, atom_1.0 link/rss are presented, too many for all feed types String feedLinks = "" ; for ( String feedType: new String[]{"rss_2.0", "atom_1.0"} ) for( Map.Entry entry: outm.entrySet() ) { feedLinks += synd.getFeedRelLink( urlPrefix + "/" + feedType + "/publications/organization/" + entry.getValue() ) + "\n"; /*feedLinks += "\n";*/ } %> <%= feedLinks %> eSciDoc Syndication Service - Organizational Units

eSciDoc Syndication Service

RSS/ATOM feeds for eSciDoc Organizational Units


<%= synd.getFeeds().getComments() %>



<%= urlPrefix %>