diff --git a/dspace/config/dspace.cfg b/dspace/config/dspace.cfg index a2a41e250c..d9bef70ccc 100644 --- a/dspace/config/dspace.cfg +++ b/dspace/config/dspace.cfg @@ -18,7 +18,7 @@ dspace.url = https://localhost dspace.hostname = localhost # Name of the site -dspace.name = DSpace @ MIT +dspace.name = DSpace at MIT ##### Destinations for configuration files for other tools ##### diff --git a/dspace/jsp/components/news.jsp b/dspace/jsp/components/news.jsp index 4a606b639c..92f8a6eb7f 100644 --- a/dspace/jsp/components/news.jsp +++ b/dspace/jsp/components/news.jsp @@ -39,26 +39,8 @@ --%> <%-- - - DSpace News. This appears on the right-hand side of the front page. + - DSpace News. This appears near the top of the home page. --%> - - - - - - - -
- Launching -
-

DSpace launches
- April 2002

-
- -

New Collections:

-

- LIDS Technical Reports -

-

- MIT Press Out of Print Books -

+

DSpace is Live

+

Welcome to our digital repository of MIT research!

+

More news...

diff --git a/dspace/jsp/home.jsp b/dspace/jsp/home.jsp index 1ebeab455a..e68a7563f3 100644 --- a/dspace/jsp/home.jsp +++ b/dspace/jsp/home.jsp @@ -44,79 +44,68 @@ <%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %> +<%@ page import="org.dspace.content.Community" %> <%@ page import="org.dspace.core.ConfigurationManager" %> +<% + Community[] communities = (Community[]) request.getAttribute("communities"); +%> + -

<%= ConfigurationManager.getProperty("dspace.name") %> Home

- -
- - - - - - - - - - - - +
- - - - - -

What can you find in DSpace?

More Information   
- - - - - -
-
    -
  • Articles
  • -
  • Technical Reports
  • -
  • Working Papers
  • -
-
-
    -
  • Datasets
  • -
  • Images
  • -
  • Videos....and more
  • -
-
-
-

Search

-

Enter some text in the box below to search DSpace.

-

 

-
-

Submit

-

Submit your digital content to DSpace! To - start the submission process, select the button below.

-

Start Submitting

-

Authorized Users Only

-
-

Browse

-

You can also browse a DSpace index:

- -
-

My DSpace

-

You can visit "My DSpace" to resume half-finished - submissions and check on the progress of previous submissions.

-

Visit My DSpace

-

Authorized Users Only

-
+ + + +
+ +
+ +
+ + + + + + +
+

Search

+

Enter some text in the box below to search DSpace.

+
<%-- HACK for Netscape 4.xx, "align=center" doesn't seem to work--%> +

 

+
+
+
+ + + + +
+

Communities in DSpace

+

Select a community to browse its collections.

+ +<% + for (int i = 0; i < communities.length; i++) + { +%> + + +<% + } +%> +
+ <%= communities[i].getMetadata("name") %> +
+
- - + <%-- non-break spaces to make sidebar a reasonable width--%> +

What can you find in DSpace?

+

MIT Research in digital form, including preprints, technical reports, working papers, conference papers, images, and more.

+ +
+

Is this all of MIT's research?

+

No. DSpace is limited to digital research products. For items in print, go to Barton: MIT Libraries' catalog. DSpace is young and growing rapidly. Check back often.

diff --git a/dspace/jsp/image/dome-bluewhite-smaller.gif b/dspace/jsp/image/dome-bluewhite-smaller.gif new file mode 100644 index 0000000000..513dc3d40f Binary files /dev/null and b/dspace/jsp/image/dome-bluewhite-smaller.gif differ diff --git a/dspace/jsp/image/dspace-blue.gif b/dspace/jsp/image/dspace-blue.gif new file mode 100644 index 0000000000..644d23176d Binary files /dev/null and b/dspace/jsp/image/dspace-blue.gif differ diff --git a/dspace/jsp/image/hp-mit.gif b/dspace/jsp/image/hp-mit.gif new file mode 100644 index 0000000000..01d7e0c083 Binary files /dev/null and b/dspace/jsp/image/hp-mit.gif differ diff --git a/dspace/jsp/image/hp.gif b/dspace/jsp/image/hp.gif new file mode 100644 index 0000000000..edcabdfbfe Binary files /dev/null and b/dspace/jsp/image/hp.gif differ diff --git a/dspace/jsp/image/stripe.gif b/dspace/jsp/image/stripe.gif new file mode 100644 index 0000000000..b06b894b70 Binary files /dev/null and b/dspace/jsp/image/stripe.gif differ diff --git a/dspace/jsp/index.jsp b/dspace/jsp/index.jsp index de4e59b01c..80d58a76ef 100644 --- a/dspace/jsp/index.jsp +++ b/dspace/jsp/index.jsp @@ -58,6 +58,7 @@ <%@ page import="org.dspace.app.webui.util.JSPManager" %> <%@ page import="org.dspace.app.webui.util.UIUtil" %> +<%@ page import="org.dspace.content.Community" %> <%@ page import="org.dspace.core.Context" %> <%@ page import="org.dspace.core.LogManager" %> @@ -69,6 +70,10 @@ // Obtain a context so that the location bar can display log in status context = UIUtil.obtainContext(request); + // Home page shows community list + Community[] communities = Community.findAll(context); + request.setAttribute("communities", communities); + // Show home page JSP JSPManager.showJSP(request, response, "/home.jsp"); } diff --git a/dspace/jsp/layout/footer-default.jsp b/dspace/jsp/layout/footer-default.jsp index 5bcdae922f..a70c75fb5b 100644 --- a/dspace/jsp/layout/footer-default.jsp +++ b/dspace/jsp/layout/footer-default.jsp @@ -1,5 +1,5 @@ <%-- - -- footer-default.jsp + -- footer-home.jsp -- -- Version: $Revision$ -- @@ -39,7 +39,7 @@ --%> <%-- - - Footer for default style of page + - Footer for home page --%> <%@ page import="java.net.URLEncoder" %> @@ -47,17 +47,10 @@ <% String sidebar = (String) request.getAttribute("dspace.layout.sidebar"); - String navbar = (String) request.getAttribute("dspace.layout.navbar"); - int overallColSpan = 1; - - if (sidebar != null) + int overallColSpan = 3; + if (sidebar == null) { - overallColSpan++; - } - - if (!navbar.equals("off")) - { - overallColSpan++; + overallColSpan = 2; } %> <%-- End of page content --%> @@ -84,8 +77,18 @@ %> class="pageFootnote"> - Copyright © 2002 MIT and Hewlett-Packard - - Feedback + + + + + + +
invent @ MIT: The HP-MIT Alliance + Copyright © 2002 MIT and Hewlett-Packard - + Feedback + <%-- nowrap, valign for broken NS 4.x --%> +    Hewlett Packard    +
diff --git a/dspace/jsp/layout/footer-home.jsp b/dspace/jsp/layout/footer-home.jsp index be5ad2f842..a70c75fb5b 100644 --- a/dspace/jsp/layout/footer-home.jsp +++ b/dspace/jsp/layout/footer-home.jsp @@ -77,8 +77,18 @@ %> class="pageFootnote"> - Copyright © 2002 MIT and Hewlett-Packard - - Feedback + + + + + + +
invent @ MIT: The HP-MIT Alliance + Copyright © 2002 MIT and Hewlett-Packard - + Feedback + <%-- nowrap, valign for broken NS 4.x --%> +    Hewlett Packard    +
diff --git a/dspace/jsp/layout/header-default.jsp b/dspace/jsp/layout/header-default.jsp index 2d9006c539..a5375be51a 100644 --- a/dspace/jsp/layout/header-default.jsp +++ b/dspace/jsp/layout/header-default.jsp @@ -1,5 +1,5 @@ <%-- - - header-default.jsp + - header-home.jsp - - Version: $Revision$ - @@ -39,12 +39,13 @@ --%> <%-- - - HTML header for most UI pages + - HTML header for main home page --%> <%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %> <%@ page import="java.util.List"%> +<%@ page import="org.dspace.app.webui.util.JSPManager" %> <%@ page import="org.dspace.core.ConfigurationManager" %> <% @@ -68,38 +69,28 @@ <%-- HACK: marginwidth, marginheight: for non-CSS compliant Netscape browser --%> - <%-- DSpace top-of-page banner --%> - <%-- HACK: width, border, cellspacing, cellpadding: for non-CSS compliant Netscape, Mozilla browsers --%> - - <%-- DSpace logo and star background --%> - - <%-- HACK: background: for non-CSS compliant Netscape 4.x browser --%> + <%-- DSpace logo --%> - + + - - - <%-- Location bar --%> -<% - if (locbar) - { -%> - - - + <%-- Blue stripe --%> + +
- DSpace + + DSpace <%-- Make as wide as possible. cellpadding repeated for broken NS 4.x --%> + About DSpace + +    MIT Libraries   
 
-<% - } -%> <%-- Page contents --%> - + <%-- HACK: width, border, cellspacing, cellpadding: for non-CSS compliant Netscape, Mozilla browsers --%> @@ -124,3 +115,13 @@ <%-- navigation bar gets far too wide on certain pages --%> <%-- Navigation bar --%> +<% + if (!navbar.equals("off")) + { +%> - +<% + } +%> <%-- Page Content --%> <%-- HACK: width specified here for non-CSS compliant Netscape 4.x --%> @@ -119,3 +115,13 @@ <%-- navigation bar gets far too wide on certain pages --%> +

diff --git a/dspace/jsp/layout/navbar-default.jsp b/dspace/jsp/layout/navbar-default.jsp index 59ff31db61..818df164ae 100644 --- a/dspace/jsp/layout/navbar-default.jsp +++ b/dspace/jsp/layout/navbar-default.jsp @@ -49,10 +49,11 @@ <%@ page import="org.dspace.app.webui.util.UIUtil" %> <%@ page import="org.dspace.content.Collection" %> <%@ page import="org.dspace.content.Community" %> +<%@ page import="org.dspace.eperson.EPerson" %> <% // Is anyone logged in? - boolean loggedIn = (request.getAttribute("dspace.current.user") != null); + EPerson user = (EPerson) request.getAttribute("dspace.current.user"); // Get the current page, minus query string String currentPage = UIUtil.getOriginalURL(request); @@ -66,6 +67,15 @@ <%-- Search Box --%> +<% + if (user != null) + { +%> +

Logged in as <%= user.getEmail() %> + (Logout)

+<% + } +%>
+ <%-- Location bar --%> +<% + if (locbar) + { +%> + +<% + } +%> + diff --git a/dspace/jsp/layout/header-home.jsp b/dspace/jsp/layout/header-home.jsp index 6ad7327d86..a5375be51a 100644 --- a/dspace/jsp/layout/header-home.jsp +++ b/dspace/jsp/layout/header-home.jsp @@ -69,35 +69,25 @@ <%-- HACK: marginwidth, marginheight: for non-CSS compliant Netscape browser --%> - <%-- DSpace top-of-page banner --%> - <%-- HACK: width, border, cellspacing, cellpadding: for non-CSS compliant Netscape, Mozilla browsers --%> - - <%-- DSpace logo and star background --%> - - <%-- HACK: background: for non-CSS compliant Netscape 4.x browser --%> + <%-- DSpace logo --%> - + + - - - <%-- Location bar --%> -<% - if (locbar) - { -%> - - - + <%-- Blue stripe --%> + +
- DSpace + + DSpace <%-- Make as wide as possible. cellpadding repeated for broken NS 4.x --%> + About DSpace + +    MIT Libraries   
 
-<% - } -%> <%-- Page contents --%> @@ -108,10 +98,16 @@
+ <%-- Location bar --%> +<% + if (locbar) + { +%> + +<% + } +%> + diff --git a/dspace/jsp/layout/location-bar.jsp b/dspace/jsp/layout/location-bar.jsp index 7157ec95bc..7119e5479f 100644 --- a/dspace/jsp/layout/location-bar.jsp +++ b/dspace/jsp/layout/location-bar.jsp @@ -42,7 +42,7 @@ - Location bar component - - This component displays the "breadcrumb" style navigation aid at the top - - of most screens. Also indicates whether or not the user is logged in. + - of most screens. - - Uses request attributes set in org.dspace.app.webui.jsptag.Layout, and - hence must only be used as part of the execution of that tag. Plus, @@ -51,70 +51,38 @@ - dspace.layout.parenttitles - List of titles of parent pages - dspace.layout.parentlinks - List of URLs of parent pages, empty string - for non-links - - dspace.current.user - Current EPerson user, or null --%> <%@ page import="java.util.List" %> -<%@ page import="org.dspace.app.webui.util.UIUtil" %> -<%@ page import="org.dspace.eperson.EPerson" %> - - +

<% List parentTitles = (List) request.getAttribute("dspace.layout.parenttitles"); List parentLinks = (List) request.getAttribute("dspace.layout.parentlinks"); - EPerson eperson = (EPerson) request.getAttribute("dspace.current.user"); -%> -<%-- HACK: Have to put some non-break spaces because "margin-left" CSS - - property is poorly supported - - HACK: height=32 inserted for Netscape 4.x which doesn't recognise - - the "height: 2.0em" CSS property. --%> -

- - - - - -<% - if (eperson != null) - { -%> -<%-- HACK:  's are a workaround for Netscape 4.x, which doesn't honour - -- "white-space: nowrap" CSS property --%> - -<% - } -%> - -
    -<% for (int i = 0; i < parentTitles.size(); i++) { - String s = UIUtil.nonBreakSpace((String) parentTitles.get(i)); + String s = (String) parentTitles.get(i); String u = (String) parentLinks.get(i); - if (i != 0) + // New line for each breadcrumb (no
needed for first) + if (i > 0) { - // Not the first element, so need a preceding chevron -%>><% +%>
<% } if (u.equals("")) { %> - <%= s %> +<%= s %> > <% } else { %> - <%= s %> +<%= s %> > <% } - } +} %> -
    - Logged in as <%= eperson.getEmail() %>    -
-