From 00d924f0db3c74afef370eadca9d7f21cfc3b637 Mon Sep 17 00:00:00 2001 From: James Rutherford Date: Mon, 9 Apr 2007 12:03:14 +0000 Subject: [PATCH] (Stuart Lewis) - SF Patch #1587225 Google and html sitemap generator Note that this patch was modified to work with jdk 1.4. Once we are using jdk 1.5 or higher, the annotations can go back in. git-svn-id: http://scm.dspace.org/svn/repo/trunk@1778 9c30dcfa-912a-0410-8fc2-9e0234be79fd --- dspace/CHANGES | 1 + dspace/config/dspace.cfg | 16 +++++++++++++ dspace/etc/dspace-web.xml | 35 ++++++++++++++++++++++++---- dspace/jsp/layout/footer-default.jsp | 1 + dspace/jsp/robots.txt | 1 + 5 files changed, 50 insertions(+), 4 deletions(-) diff --git a/dspace/CHANGES b/dspace/CHANGES index b09d507795..e77d027d3b 100644 --- a/dspace/CHANGES +++ b/dspace/CHANGES @@ -40,6 +40,7 @@ - SF Patch #1628889 Improve file size descriptions in ItemTag - SF Patch #1641678 [dspace]/bin scripts for import and export - SF Patch #1642336 Restrict domains of self-registered users +- SF Patch #1587225 Google and html sitemap generator (Monika Mevenkamp) - SF Patch #1654469 stat scripts always return exit code 1 diff --git a/dspace/config/dspace.cfg b/dspace/config/dspace.cfg index 9820adda8a..dae159649e 100644 --- a/dspace/config/dspace.cfg +++ b/dspace/config/dspace.cfg @@ -631,6 +631,22 @@ webui.subjectlinks.enable = false # # webui.html.max-depth-guess = 3 + +#### Sitemap settings ##### +# +# Comma-separated list of search engine URLs to 'ping' when a new Sitemap has +# been created. Include everything except the Sitemap URL itself (which will +# be URL-encoded and appended to form the actual URL 'pinged'). +# +sitemap.engineurls = http://www.google.com/webmasters/sitemaps/ping?sitemap= + +# Add this to the above parameter if you have an application ID with Yahoo +# (Replace REPLACE_ME with your application ID) +# http://search.yahooapis.com/SiteExplorerService/V1/updateNotification?appid=REPLACE_ME&url= +# +# No known Sitemap 'ping' URL for MSN/Live search + + #### Checksum Checker Settings #### # Default dispatcher in case none specified plugin.single.org.dspace.checker.BitstreamDispatcher=org.dspace.checker.SimpleDispatcher diff --git a/dspace/etc/dspace-web.xml b/dspace/etc/dspace-web.xml index 4e13301bdd..19648595e5 100644 --- a/dspace/etc/dspace-web.xml +++ b/dspace/etc/dspace-web.xml @@ -8,7 +8,7 @@ - - Date: $Date$ - - - Copyright (c) 2002, Hewlett-Packard Company and Massachusetts + - Copyright (c) 2002-2006, Hewlett-Packard Company and Massachusetts - Institute of Technology. All rights reserved. - - Redistribution and use in source and binary forms, with or without @@ -274,6 +274,15 @@ org.dspace.app.webui.servlet.HTMLServlet + + htmlmap + org.dspace.app.webui.servlet.SitemapServlet + + type + html + + + internal-error org.dspace.app.webui.servlet.InternalErrorServlet @@ -347,6 +356,15 @@ simple-search org.dspace.app.webui.servlet.SimpleSearchServlet + + + sitemap + org.dspace.app.webui.servlet.SitemapServlet + + type + sitemaps.org + + statistics @@ -387,8 +405,7 @@ workspace org.dspace.app.webui.servlet.WorkspaceServlet - - + controlledvocabulary org.dspace.app.webui.servlet.ControlledVocabularyServlet @@ -527,6 +544,11 @@ /html/* + + htmlmap + /htmlmap + + internal-error /internal-error @@ -596,6 +618,11 @@ simple-search /simple-search + + + sitemap + /sitemap + statistics @@ -637,7 +664,6 @@ /workspace - controlledvocabulary /controlledvocabulary @@ -648,6 +674,7 @@ /subject-search + ico diff --git a/dspace/jsp/layout/footer-default.jsp b/dspace/jsp/layout/footer-default.jsp index f0e49e58eb..5dbaee3eb0 100644 --- a/dspace/jsp/layout/footer-default.jsp +++ b/dspace/jsp/layout/footer-default.jsp @@ -87,6 +87,7 @@  - + <%-- nowrap, valign for broken NS 4.x --%> diff --git a/dspace/jsp/robots.txt b/dspace/jsp/robots.txt index 23a9ed92db..e0bfd82fa2 100644 --- a/dspace/jsp/robots.txt +++ b/dspace/jsp/robots.txt @@ -4,3 +4,4 @@ Disallow: /browse-author Disallow: /items-by-author Disallow: /browse-date Disallow: /browse-subject +Disallow: /browse-title