Compare commits

...

49 Commits

Author SHA1 Message Date
Hardy Pottinger
25208859e7 [maven-release-plugin] prepare release dspace-3.2 2013-07-24 13:38:01 -05:00
Tim Donohue
98b94abe9e Ensure dspace-lni-client has dspace-lni as a dependency. Also disable 'regenerate-wsdl' profile by default. Related to DS-1550 2013-07-24 10:38:19 -05:00
Hardy Pottinger
fbf5834ac6 added coverity security library, used addentities throughout to harden profile form fields in JSPUI 2013-07-23 15:15:01 -05:00
Robin Taylor
435452f669 Merge pull request #259 from robintaylor/DS-1527
DS 1527 Fix memory leak in Caching service
2013-07-22 03:35:06 -07:00
TAYLOR Robin
3dcd352f88 DS-1527 Fix memory leak in CachingService 2013-07-22 11:23:18 +01:00
TAYLOR Robin
5ab9cb63d9 DS-1527 Fix memory leak in CachingService 2013-07-22 11:22:29 +01:00
Ivan Masár
2fc1877502 DS-1537: Invalid bitstream URL in OAI 2013-07-17 23:27:43 +02:00
helix84
a27254f8c5 backport DS-1479 to 3.x (bugfix, but also a small new feature and dependency upgrade)
Merge pull request #219 from lyncode/oai-with-custom-descriptions

DS-1479 : Oai with custom descriptions
2013-07-17 23:11:42 +02:00
Mark H. Wood
3c65eddd5f Merge pull request #224 from helix84/DS-1554_dspace-3_x
DS-1554 redefine hardcoded SWORD upload dir (3.x)
2013-07-17 13:19:30 -07:00
Tim Donohue
3336594917 DS-1550: (backport) Reattach dspace-lni-client so that it is built whenever dspace-lni gets built 2013-07-02 10:09:35 -05:00
Tim Donohue
60121cba95 Fix for DS-1593 : Ensure discovery.cfg uses 'solr.server' setting 2013-07-02 09:50:16 -05:00
Tim Donohue
dbd6b24407 DS-1592 : Remove debug printout 2013-07-01 11:55:21 -05:00
Ivan Masár
16bb726547 DS-1581: fix last commit 2013-06-20 09:24:01 +02:00
Andrea Schweer
0db24ca219 DS-1581 Prevent double-up of restriction message 2013-06-19 09:52:03 +02:00
LifeH2O
5a6f771c8f DS-1576 fix names of LDAP configuration properties 2013-06-17 12:59:04 +02:00
Ivan Masár
de614e9255 DS-1554 redefine hardcoded SWORD upload dir (3.x) 2013-05-22 00:21:53 +02:00
Tim Donohue
9ff5438aa6 DS-1540 : Fix .gitignore to only ignore custom *.properties in the root source folder. 2013-04-30 11:44:58 -05:00
helix84
ba5784c81f Merge pull request #200 from lyncode/DS-1507
Issue fixed and tested
2013-03-06 06:36:01 -08:00
lyncodev
ccdcb13425 Issue fixed and tested 2013-03-06 14:30:07 +00:00
Brian Freels-Stendel
464c1db7b3 DS-1123 Resurrected build.xml's help menu item 'clean_backups' 2013-02-08 00:09:54 +01:00
Hardy Pottinger
026b61f100 [maven-release-plugin] prepare for next development iteration 2013-01-30 13:57:34 -06:00
Hardy Pottinger
3dcecf099f [maven-release-plugin] prepare release dspace-3.1 2013-01-30 13:57:27 -06:00
helix84
6dfef6921e Merge pull request #184 from misilot/patch-1
Capitalization of Workflow in Submissions & Workflow
2013-01-30 10:29:03 -08:00
Thomas Misilo
618ab11e58 Capitalization of Workflow in Submissions & Workflow
This is a title, which means it should be capitalized.
2013-01-30 12:29:33 -05:00
Tim Donohue
f2ed822881 Updated PDF manual for DSpace 3.1 2013-01-30 11:00:59 -06:00
Tim Donohue
bc35abe279 Merge branch 'dspace-3_x' of https://github.com/DSpace/DSpace into dspace-3_x 2013-01-30 10:58:43 -06:00
KevinVdV
26c6ea1859 [DS-1407] Refactor SOLR Statistics to use OpenCSV 2013-01-30 10:08:47 +01:00
KevinVdV
52bef81f15 [DS-1407] Refactor SOLR Statistics to use OpenCSV 2013-01-30 10:06:08 +01:00
helix84
8bc185f7cf Merge pull request #182 from mushashu/DS-1417_SearchUrlBrokenOnItem
[DS-1417] Thumbnails in discovery search results does not point to the item
2013-01-29 16:31:04 -08:00
mushashu
e3bab72e68 associating thumbnails in search results with the right url 2013-01-30 01:41:03 +02:00
KevinVdV
8fe4bd3dab [DS-1416] NPE when removing roles from Collection workflow steps 2013-01-28 22:23:36 +01:00
KevinVdV
5217ac40a9 [DS-1449] Fixing related items retrieval 2013-01-25 14:15:20 +01:00
Bram Luyten
0270301de4 Adding a return statement when no reports are present 2013-01-24 14:03:26 +01:00
misilot
9caf1f3357 DS-1457 change jquery source to googleapis
Change the source to ajax.googleapis.com, which allows either http or https source.

URL Syntax is from: https://developers.google.com/speed/libraries/devguide#jquery
2013-01-22 15:15:02 +01:00
Ivan Masár
d971eba45f DS-1455 In OAI DOCTYPE tag is displayed on Firefox 2013-01-22 14:50:58 +01:00
Ivan Masár
d48a5f7086 DS-1454 Missing type-bind in input-forms.dtd 2013-01-22 09:36:31 +01:00
akonczak
91de08756e [DS-1435] fix for empty schema name for oracle db 2013-01-22 09:34:38 +01:00
helix84
f92a42d1a8 Merge pull request #167 from lyncode/OAI-ORE-fix3_1
ORE metadata format fix (3.1)
2013-01-16 01:16:16 -08:00
lyncodev
626f1f7967 ORE metadata format fix 2013-01-15 16:26:26 +00:00
Ivan Masár
41ec78907a warn about removing properties from build.properties 2012-12-20 14:01:31 +01:00
akonczak
7be7f132bb DS-1425 - OAI improved support for Oracle DB 2012-12-17 20:32:19 +01:00
Pascal-Nicolas Becker
491c3eaeb6 Declare method register(Context,DspaceObject, String) of
org.dspace.identifier.IdentifierProvider to throw an
IdentifierException. Fixes DS-1424.
2012-12-14 14:21:33 +01:00
Andrea Schweer
ee51662039 DS-1426 Improve SolrLogger performance
Apply the patch to the right file for master
Fix whitespace issues
2012-12-14 13:54:39 +01:00
Keiji Suzuki
f6862fe849 Porting document type-based submission to JSPUI 2012-12-07 10:51:52 +01:00
João Melo
b2443c6168 Merge pull request #153 from lyncode/DS1415-3_x
DS-1415: Harvesting configurations added [dspace-3_x]
2012-12-06 17:39:28 -08:00
Lyncode
64c046b095 Harvesting configurations added 2012-12-06 18:11:34 +00:00
helix84
c707deb4f0 Merge pull request #149 from lyncode/dspace-3_x
DS-1414
2012-12-06 08:34:25 -08:00
lyncodev
60ea3f1a32 MetadataExistsFilter changed to allow then 'field' key parameter 2012-12-06 16:32:07 +00:00
lyncodev
037d41f336 xoai.xml file corrected for MetadataExistsFilter 2012-12-06 16:31:50 +00:00
50 changed files with 164 additions and 117 deletions

6
.gitignore vendored
View File

@@ -22,6 +22,6 @@ nbactions.xml
nb-configuration.xml
META-INF/
## Ignore all *.properties file, EXCEPT build.properties (the default)
*.properties
!build.properties
## Ignore all *.properties file in root folder, EXCEPT build.properties (the default)
/*.properties
!/build.properties

View File

@@ -12,7 +12,7 @@
<parent>
<groupId>org.dspace</groupId>
<artifactId>dspace-parent</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<relativePath>..</relativePath>
</parent>
@@ -423,6 +423,12 @@
<version>0.18.6</version>
</dependency>
<dependency>
<groupId>com.coverity.security</groupId>
<artifactId>coverity-escapers</artifactId>
<version>1.1.1</version>
</dependency>
<!-- Gson: Java to Json conversion -->
<dependency>
<groupId>com.google.code.gson</groupId>

View File

@@ -612,7 +612,7 @@ public class LDAPAuthentication
/*
* Add authenticated users to the group defined in dspace.cfg by
* the ldap.login.groupmap.* key.
* the authentication-ldap.login.groupmap.* key.
*/
private void assignGroupsBasedOnLdapDn(String dn, Context context)
{
@@ -644,7 +644,7 @@ public class LDAPAuthentication
// The group does not exist
log.warn(LogManager.getHeader(context,
"ldap_assignGroupsBasedOnLdapDn",
"Group defined in ldap.login.groupmap." + i + " does not exist :: " + dspaceGroupName));
"Group defined in authentication-ldap.login.groupmap." + i + " does not exist :: " + dspaceGroupName));
}
}
catch (AuthorizeException ae)
@@ -657,7 +657,7 @@ public class LDAPAuthentication
}
}
groupMap = ConfigurationManager.getProperty("ldap.login.groupmap." + ++i);
groupMap = ConfigurationManager.getProperty("authentication-ldap", "login.groupmap." + ++i);
}
}
}

View File

@@ -26,7 +26,7 @@ import java.util.Calendar;
import java.util.GregorianCalendar;
import java.text.SimpleDateFormat;
import java.text.ParseException;
import com.coverity.security.Escape;
import org.apache.log4j.Logger;
/**
@@ -280,21 +280,7 @@ public final class Utils
*/
public static String addEntities(String value)
{
if (value==null || value.length() == 0)
{
return value;
}
value = value.replaceAll("&", "&amp;");
value = value.replaceAll("\"", "&quot;");
// actually, &apos; is an XML entity, not in HTML.
// that's why it's commented out.
// value = value.replaceAll("'", "&apos;");
value = value.replaceAll("<", "&lt;");
value = value.replaceAll(">", "&gt;");
return value;
return Escape.html(value);
}
/**

View File

@@ -13,7 +13,7 @@
<parent>
<groupId>org.dspace</groupId>
<artifactId>dspace-parent</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<relativePath>..</relativePath>
</parent>

View File

@@ -45,8 +45,8 @@ public class LDAPServlet extends DSpaceServlet
HttpServletResponse response)
throws ServletException, IOException, SQLException, AuthorizeException
{
// check if ldap is enables and forward to the correct login form
boolean ldap_enabled = ConfigurationManager.getBooleanProperty("ldap.enable");
// check if ldap is enables and forward to the correct login form
boolean ldap_enabled = ConfigurationManager.getBooleanProperty("authentication-ldap", "enable");
if (ldap_enabled)
{
JSPManager.showJSP(request, response, "/login/ldap.jsp");
@@ -104,4 +104,4 @@ public class LDAPServlet extends DSpaceServlet
"netid=" + netid + ", result=" + String.valueOf(status)));
JSPManager.showJSP(request, response, jsp);
}
}
}

View File

@@ -74,9 +74,6 @@
<filter-mapping>
<filter-name>dspace.request</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<filter-mapping>

View File

@@ -27,6 +27,7 @@
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
<%@ page import="org.dspace.eperson.EPerson" %>
<%@ page import="org.dspace.core.Utils" %>
<%
EPerson[] epeople =
@@ -115,10 +116,10 @@
<%= (e.getEmail() == null ? "" : e.getEmail()) %>
</td>
<td headers="t3" class="<%= row %>RowOddCol">
<%= (e.getLastName() == null ? "" : e.getLastName()) %>
<%= (e.getLastName() == null ? "" : Utils.addEntities(e.getLastName())) %>
</td>
<td headers="t4" class="<%= row %>RowEvenCol">
<%= (e.getFirstName() == null ? "" : e.getFirstName()) %>
<%= (e.getFirstName() == null ? "" : Utils.addEntities(e.getFirstName())) %>
</td>
<td headers="t5" class="<%= row %>RowOddCol" align="center">
<%= e.canLogIn() ? "yes" : "no" %>
@@ -130,7 +131,7 @@
<%= e.getSelfRegistered() ? "yes" : "no" %>
</td>
<td headers="t8" class="<%= row %>RowEvenCol">
<%= (e.getMetadata("phone") == null ? "" : e.getMetadata("phone")) %>
<%= (e.getMetadata("phone") == null ? "" : Utils.addEntities(e.getMetadata("phone"))) %>
</td>
<td headers="t9" class="<%= row %>RowOddCol">
<input type="hidden" name="eperson_id" value="<%= e.getID() %>"/>

View File

@@ -20,6 +20,7 @@
prefix="fmt" %>
<%@ page import="org.dspace.eperson.EPerson" %>
<%@ page import="org.dspace.core.Utils" %>
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
@@ -32,9 +33,9 @@
parenttitlekey="jsp.administer"
parentlink="/dspace-admin">
<%-- <h1>Delete e-person: <%= eperson.getFullName() %> (<%= eperson.getEmail() %>)</h1> --%>
<%-- <h1>Delete e-person: <%= Utils.addEntities(eperson.getFullName()) %> (<%= eperson.getEmail() %>)</h1> --%>
<h1><fmt:message key="jsp.dspace-admin.eperson-confirm-delete.heading">
<fmt:param><%= eperson.getFullName() %></fmt:param>
<fmt:param><%= Utils.addEntities(eperson.getFullName()) %></fmt:param>
<fmt:param><%= eperson.getEmail() %></fmt:param>
</fmt:message></h1>

View File

@@ -28,11 +28,12 @@
<%@ page import="org.dspace.eperson.EPerson" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="org.dspace.core.Utils" %>
<%
EPerson eperson = (EPerson) request.getAttribute("eperson");
List tableList = (List) request.getAttribute("tableList");
String fullName = eperson.getFullName();
String fullName = Utils.addEntities(eperson.getFullName());
Iterator tableIt = tableList.iterator();
%>

View File

@@ -28,6 +28,7 @@
<%@ page import="org.dspace.eperson.EPerson" %>
<%@ page import="org.dspace.eperson.Group" %>
<%@ page import="org.dspace.content.WorkspaceItem" %>
<%@ page import="org.dspace.core.Utils" %>
<%
// get item and group out of the request
@@ -75,7 +76,7 @@
<br/><br/>
<strong><fmt:message key="jsp.dspace-admin.supervise-confirm-remove.authorheader"/></strong>:
<br/>
<a href="mailto:<%= submitter.getEmail() %>"><%= submitter.getFullName() %></a>
<a href="mailto:<%= submitter.getEmail() %>"><%= Utils.addEntities(submitter.getFullName()) %></a>
<br/><br/>
<strong><fmt:message key="jsp.dspace-admin.supervise-confirm-remove.supervisorgroupheader"/></strong>:
<br/>

View File

@@ -28,6 +28,7 @@
<%@ page import="org.dspace.eperson.EPerson" %>
<%@ page import="org.dspace.eperson.Group" %>
<%@ page import="org.dspace.eperson.Supervisor" %>
<%@ page import="org.dspace.core.Utils" %>
<%
// get objects from request
@@ -109,7 +110,7 @@
<%= workspaceItems[i].getID() %>
</td>
<td class="<%= row %>RowEvenCol">
<a href="mailto:<%= submitter.getEmail() %>"><%= submitter.getFullName() %></a>
<a href="mailto:<%= submitter.getEmail() %>"><%= Utils.addEntities(submitter.getFullName()) %></a>
</td>
<td class="<%= row %>RowOddCol">
<%

View File

@@ -25,6 +25,7 @@
<%@ page import="org.dspace.content.SupervisedItem" %>
<%@ page import="org.dspace.eperson.EPerson" %>
<%@ page import="org.dspace.eperson.Group" %>
<%@ page import="org.dspace.core.Utils" %>
<%
// get the object array out of the request
@@ -97,7 +98,7 @@
<%= supervisors[j].getName() %>
</td>
<td class="<%= row %>RowOddCol">
<a href="mailto:<%= submitter.getEmail() %>"><%= submitter.getFullName() %></a>
<a href="mailto:<%= submitter.getEmail() %>"><%= Utils.addEntities(submitter.getFullName()) %></a>
</td>
<td class="<%= row %>RowEvenCol">
<%

View File

@@ -25,7 +25,6 @@
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"
prefix="fmt" %>
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
<%@ page import="javax.servlet.jsp.jstl.fmt.LocaleSupport" %>
@@ -78,7 +77,7 @@
<tr>
<td align="left">
<h1>
<fmt:message key="jsp.mydspace"/>: <%= user.getFullName() %>
<fmt:message key="jsp.mydspace"/>: <%= Utils.addEntities(user.getFullName()) %>
</h1>
</td>
<td align="right" class="standard">
@@ -136,7 +135,7 @@
</td>
<td headers="t2" class="<%= row %>RowEvenCol"><%= Utils.addEntities(title) %></td>
<td headers="t3" class="<%= row %>RowOddCol"><%= owned[i].getCollection().getMetadata("name") %></td>
<td headers="t4" class="<%= row %>RowEvenCol"><a href="mailto:<%= submitter.getEmail() %>"><%= submitter.getFullName() %></a></td>
<td headers="t4" class="<%= row %>RowEvenCol"><a href="mailto:<%= submitter.getEmail() %>"><%= Utils.addEntities(submitter.getFullName()) %></a></td>
<!-- <td headers="t5" class="<%= row %>RowOddCol"></td> -->
<td headers="t5" class="<%= row %>RowEvenCol">
<form action="<%= request.getContextPath() %>/mydspace" method="post">
@@ -200,7 +199,7 @@
</td>
<td headers="t7" class="<%= row %>RowEvenCol"><%= Utils.addEntities(title) %></td>
<td headers="t8" class="<%= row %>RowOddCol"><%= pooled[i].getCollection().getMetadata("name") %></td>
<td headers="t9" class="<%= row %>RowEvenCol"><a href="mailto:<%= submitter.getEmail() %>"><%= submitter.getFullName() %></a></td>
<td headers="t9" class="<%= row %>RowEvenCol"><a href="mailto:<%= submitter.getEmail() %>"><%= Utils.addEntities(submitter.getFullName()) %></a></td>
<td class="<%= row %>RowOddCol">
<form action="<%= request.getContextPath() %>/mydspace" method="post">
<input type="hidden" name="step" value="<%= MyDSpaceServlet.MAIN_PAGE %>" />
@@ -285,7 +284,7 @@
</form>
</td>
<td headers="t10" class="<%= row %>RowEvenCol">
<a href="mailto:<%= submitter.getEmail() %>"><%= submitter.getFullName() %></a>
<a href="mailto:<%= submitter.getEmail() %>"><%= Utils.addEntities(submitter.getFullName()) %></a>
</td>
<td headers="t11" class="<%= row %>RowOddCol"><%= Utils.addEntities(title) %></td>
<td headers="t12" class="<%= row %>RowEvenCol"><%= workspaceItems[i].getCollection().getMetadata("name") %></td>
@@ -332,7 +331,7 @@
</form>
</td>
<td class="<%= row %>RowEvenCol">
<a href="mailto:<%= submitter.getEmail() %>"><%= submitter.getFullName() %></a>
<a href="mailto:<%= submitter.getEmail() %>"><%= Utils.addEntities(submitter.getFullName()) %></a>
</td>
<td class="<%= row %>RowOddCol"><%= Utils.addEntities(title) %></td>
<td class="<%= row %>RowEvenCol"><%= supervisedItems[i].getCollection().getMetadata("name") %></td>

View File

@@ -29,6 +29,7 @@
<%@ page import="org.dspace.app.webui.servlet.RegisterServlet" %>
<%@ page import="org.dspace.eperson.EPerson" %>
<%@ page import="org.dspace.core.Utils" %>
<%
EPerson eperson = (EPerson) request.getAttribute("eperson");
@@ -43,9 +44,9 @@
<%-- <h1>Enter a New Password</h1> --%>
<h1><fmt:message key="jsp.register.new-password.title"/></h1>
<!-- <p>Hello <%= eperson.getFullName() %>,</p> -->
<!-- <p>Hello <%= Utils.addEntities(eperson.getFullName()) %>,</p> -->
<p><fmt:message key="jsp.register.new-password.hello">
<fmt:param><%= eperson.getFullName() %></fmt:param>
<fmt:param><%= Utils.addEntities(eperson.getFullName()) %></fmt:param>
</fmt:message></p>
<%

View File

@@ -25,6 +25,7 @@
<%@ page import="org.dspace.app.webui.servlet.RegisterServlet" %>
<%@ page import="org.dspace.eperson.EPerson" %>
<%@ page import="org.dspace.core.Utils" %>
<%
EPerson eperson = (EPerson) request.getAttribute("eperson");
@@ -35,9 +36,9 @@
<%-- <h1>Registration Complete</h1> --%>
<h1><fmt:message key="jsp.register.registered.title"/></h1>
<%-- <p>Thank you <%= eperson.getFirstName() %>,</p> --%>
<%-- <p>Thank you <%= Utils.addEntities(eperson.getFirstName()) %>,</p> --%>
<p><fmt:message key="jsp.register.registered.thank">
<fmt:param><%= eperson.getFirstName() %></fmt:param>
<fmt:param><%= Utils.addEntities(eperson.getFirstName()) %></fmt:param>
</fmt:message></p>
<%-- <p>You're now registered to use the DSpace system. You can subscribe to

View File

@@ -50,6 +50,7 @@
<%@ page import="org.dspace.content.authority.ChoiceAuthorityManager" %>
<%@ page import="org.dspace.content.authority.Choices" %>
<%@ page import="org.dspace.core.ConfigurationManager" %>
<%@ page import="org.dspace.core.Utils" %>
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
@@ -325,9 +326,9 @@
if (repeatable && !readonly && i < defaults.length)
{
name.setLength(0);
name.append(dpn.getLastName())
name.append(Utils.addEntities(dpn.getLastName()))
.append(' ')
.append(dpn.getFirstNames());
.append(Utils.addEntities(dpn.getFirstNames()));
// put a remove button next to filled in values
sb.append("<td><input type=\"submit\" name=\"submit_")
.append(fieldName)

View File

@@ -281,7 +281,7 @@ function clearEPeople()
{
EPerson e = epeople[i];
// Make sure no quotes in full name will mess up our Javascript
String fullname = e.getFullName().replace('\'', ' ');
String fullname = Utils.addEntities(e.getFullName().replace('\'', ' '));
%>
<tr>
<td headers="t1" class="<%= row %>RowOddCol">
@@ -291,10 +291,10 @@ function clearEPeople()
<td headers="t2" class="<%= row %>RowEvenCol"><%= e.getID() %></td>
<td headers="t3" class="<%= row %>RowOddCol"><%= e.getEmail() %></td>
<td headers="t4" class="<%= row %>RowEvenCol">
<%= (e.getLastName() == null ? "" : e.getLastName()) %>
<%= (e.getLastName() == null ? "" : Utils.addEntities(e.getLastName())) %>
</td>
<td headers="t5" class="<%= row %>RowOddCol">
<%= (e.getFirstName() == null ? "" : e.getFirstName()) %>
<%= (e.getFirstName() == null ? "" : Utils.addEntities(e.getFirstName())) %>
</td>
<td headers="t6" class="<%= row %>RowOddCol">
<%= (e.getLanguage() == null ? "" : e.getLanguage()) %>

View File

@@ -26,6 +26,7 @@
<%@ page import="org.dspace.content.WorkspaceItem" %>
<%@ page import="org.dspace.eperson.EPerson" %>
<%@ page import="javax.servlet.jsp.jstl.fmt.LocaleSupport" %>
<%@ page import="org.dspace.core.Utils" %>
<%
// get the workspace item from the request
@@ -73,7 +74,7 @@
}
%>
<p><strong><a href="mailto:<%= submitter.getEmail() %>"><%= submitter.getFullName() %></a></strong></p>
<p><strong><a href="mailto:<%= submitter.getEmail() %>"><%= Utils.addEntities(submitter.getFullName()) %></a></strong></p>
<p><fmt:message key="jsp.workspace.ws-main.submitmsg"/>
<%= workspaceItem.getCollection().getMetadata("name") %></p>

View File

@@ -10,18 +10,33 @@
<parent>
<groupId>org.dspace</groupId>
<artifactId>dspace-lni</artifactId>
<version>3.0-SNAPSHOT</version>
<relativePath>..</relativePath>
<artifactId>dspace-parent</artifactId>
<version>3.2</version>
<relativePath>../..</relativePath>
</parent>
<properties>
<!-- This is the path to the root [dspace-src] directory. -->
<root.basedir>${basedir}/../..</root.basedir>
</properties>
<!--
Running this profile will regenerate (from WSDL) most of the classes
under the 'org.dspace.app.dav.client' package, based on the existing
'org.dspace.app.dav.LNISoapServlet' class in the dspace-lni API.
This profile is only activated if you explicitly run:
mvn package -P regenerate-wsdl
Please note that after regenerating these classes, you will need to manually
re-apply the DSpace license header, in order for them to pass license header
checks executed during "mvn install" or "mvn release".
-->
<profiles>
<profile>
<id>regenerate-wsdl</id>
<activation>
<property>
<name>regenerate-wsdl</name>
<value>true</value>
</property>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
@@ -174,6 +189,12 @@
<artifactId>servlet-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-lni</artifactId>
<type>jar</type>
<classifier>classes</classifier>
</dependency>
</dependencies>
</project>

View File

@@ -11,7 +11,7 @@
<parent>
<groupId>org.dspace</groupId>
<artifactId>dspace-parent</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<relativePath>..</relativePath>
</parent>

View File

@@ -8,7 +8,7 @@
<parent>
<artifactId>dspace-parent</artifactId>
<groupId>org.dspace</groupId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<relativePath>..</relativePath>
</parent>
@@ -72,7 +72,7 @@
<dependency>
<groupId>com.lyncode</groupId>
<artifactId>xoai</artifactId>
<version>2.2.9</version>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>org.dspace</groupId>

View File

@@ -7,6 +7,8 @@
*/
package org.dspace.xoai.data;
import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
@@ -14,6 +16,7 @@ import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.io.FileUtils;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.dspace.core.ConfigurationManager;
@@ -157,4 +160,36 @@ public class DSpaceIdentify extends AbstractIdentify
return _name;
}
@Override
public List<String> getDescription() {
List<String> result = new ArrayList<String>();
String descriptionFile = ConfigurationManager.getProperty("oai", "description.file");
if (descriptionFile == null) {
// Try indexed
boolean stop = false;
List<String> descriptionFiles = new ArrayList<String>();
for (int i=0;!stop;i++) {
String tmp = ConfigurationManager.getProperty("oai", "description.file."+i);
if (tmp == null && i!=0) stop = true;
else descriptionFiles.add(tmp);
}
for (String path : descriptionFiles) {
try {
result.add(FileUtils.readFileToString(new File(path)));
} catch (IOException e) {
log.error(e.getMessage(), e);
}
}
} else {
try {
result.add(FileUtils.readFileToString(new File(descriptionFile)));
} catch (IOException e) {
log.error(e.getMessage(), e);
}
}
return result;
}
}

View File

@@ -156,7 +156,7 @@ public abstract class DSpaceItemRepository extends AbstractItemRepository
public ListItemsResults getItemsUntil(List<Filter> filters, int offset,
int length, String setSpec, Date from)
{
filters.add(new Filter(new DateFromFilter(from), FilterScope.Query));
filters.add(new Filter(new DateUntilFilter(from), FilterScope.Query));
filters.add(new Filter(new DspaceSetSpecFilter(setSpec),
FilterScope.Query));
return this.getItems(filters, offset, length);

View File

@@ -45,7 +45,6 @@ public class DateUntilFilter extends DSpaceFilter
@Override
public SolrFilterResult getQuery()
{
System.out.println("HEYYYY!!!!");
return new SolrFilterResult("item.lastmodified:[* TO "
+ ClientUtils.escapeQueryChars(DateUtils.formatToSolr(_date, false)) + "]");
}

View File

@@ -165,7 +165,7 @@ public class ItemUtils
Element bitstream = create(factory, "bitstream");
bitstreams.getElement().add(bitstream);
String url = "";
String bsName = bitstream.getName();
String bsName = bit.getName();
String sid = String.valueOf(bit.getSequenceID());
String baseUrl = ConfigurationManager.getProperty("oai",
"bitstream.baseUrl");
@@ -190,7 +190,7 @@ public class ItemUtils
if (handle != null && baseUrl != null)
{
url = baseUrl + "/bitstream/"
+ URLUtils.encode(handle) + "/"
+ handle + "/"
+ sid + "/"
+ URLUtils.encode(bsName);
}

View File

@@ -9,7 +9,7 @@
<parent>
<groupId>org.dspace</groupId>
<artifactId>dspace-parent</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
</parent>
<properties>

View File

@@ -15,7 +15,7 @@
<parent>
<groupId>org.dspace</groupId>
<artifactId>dspace-parent</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<relativePath>..</relativePath>
</parent>

View File

@@ -13,7 +13,7 @@
<parent>
<groupId>org.dspace</groupId>
<artifactId>dspace-parent</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<relativePath>..</relativePath>
</parent>

View File

@@ -11,7 +11,7 @@
<parent>
<groupId>org.dspace</groupId>
<artifactId>dspace-parent</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<relativePath>..</relativePath>
</parent>

View File

@@ -178,17 +178,8 @@ and searching the repository.
<map:serialize type="xml"/>
</map:match>
</map:match>
<map:match type="HandleAuthorizedMatcher" pattern="!READ">
<map:transform type="RestrictedItem">
<map:parameter name="header" value="xmlui.ArtifactBrowser.RestrictedItem.auth_header"/>
<map:parameter name="message" value="xmlui.ArtifactBrowser.RestrictedItem.auth_message"/>
</map:transform>
<map:serialize type="xml"/>
</map:match>
</map:match>
</map:match> <!-- End match handle/*/** -->
<!-- Not a URL we care about, so just pass it on. -->

View File

@@ -117,9 +117,6 @@
<filter-mapping>
<filter-name>dspace.request</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<!--

View File

@@ -531,7 +531,7 @@
<!-- org.dspace.app.xmlui.Submission.submissions -->
<message key="xmlui.Submission.Submissions.title">Submissions &amp; Workflow</message>
<message key="xmlui.Submission.Submissions.trail">Submissions</message>
<message key="xmlui.Submission.Submissions.head">Submissions &amp; workflow tasks</message>
<message key="xmlui.Submission.Submissions.head">Submissions &amp; Workflow Tasks</message>
<message key="xmlui.Submission.Submissions.untitled"><i>Untitled</i></message>
<message key="xmlui.Submission.Submissions.email">email: </message>
<!-- Same transformer, workflow section -->

View File

@@ -0,0 +1 @@
<XOAIDescription xmlns="http://www.lyncode.com/XOAIConfiguration">XOAI: OAI-PMH Java Toolkit</XOAIDescription>

View File

@@ -5,7 +5,7 @@
# faceted-search system. #
#---------------------------------------------------------------#
##### Search Indexing #####
search.server = http://localhost:8080/solr/search
search.server = ${solr.server}/search
#Char used to ensure that the sidebar facets are case insensitive
#solr.facets.split.char=\n|||\n

View File

@@ -18,6 +18,9 @@ bitstream.baseUrl = ${dspace.url}
# Base Configuration Directory
config.dir = ${dspace.dir}/config/crosswalks/oai
# Description
description.file = ${dspace.dir}/config/crosswalks/oai/description.xml
# Cache enabled?
cache.enabled = true

View File

@@ -138,7 +138,7 @@ auth-type = Basic
# The location where uploaded files and packages are
# stored while being processed
upload.tempdir = /dspace/upload
upload.tempdir = ${dspace.dir}/upload
# The metadata field in which to store the updated date for
# items deposited via SWORD.

Binary file not shown.

View File

@@ -17,7 +17,7 @@
<parent>
<groupId>org.dspace</groupId>
<artifactId>modules</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<relativePath>..</relativePath>
</parent>

View File

@@ -12,7 +12,7 @@
<parent>
<groupId>org.dspace</groupId>
<artifactId>modules</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<relativePath>..</relativePath>
</parent>

View File

@@ -13,7 +13,7 @@
<parent>
<groupId>org.dspace</groupId>
<artifactId>modules</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<relativePath>..</relativePath>
</parent>

View File

@@ -12,7 +12,7 @@
<parent>
<artifactId>modules</artifactId>
<groupId>org.dspace</groupId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<relativePath>..</relativePath>
</parent>

View File

@@ -9,7 +9,7 @@
<parent>
<groupId>org.dspace</groupId>
<artifactId>dspace-parent</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<relativePath>../../pom.xml</relativePath>
</parent>

View File

@@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.dspace.modules</groupId>
<artifactId>solr</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<packaging>war</packaging>
<name>DSpace SOLR :: Local Customizations</name>
<description>
@@ -13,7 +13,7 @@
<parent>
<groupId>org.dspace</groupId>
<artifactId>modules</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<relativePath>..</relativePath>
</parent>

View File

@@ -16,7 +16,7 @@
<parent>
<groupId>org.dspace</groupId>
<artifactId>modules</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<relativePath>..</relativePath>
</parent>

View File

@@ -16,7 +16,7 @@
<parent>
<groupId>org.dspace</groupId>
<artifactId>modules</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<relativePath>..</relativePath>
</parent>

View File

@@ -12,7 +12,7 @@
<parent>
<groupId>org.dspace</groupId>
<artifactId>modules</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<relativePath>..</relativePath>
</parent>

View File

@@ -15,7 +15,7 @@
<parent>
<groupId>org.dspace</groupId>
<artifactId>dspace-parent</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<relativePath>..</relativePath>
</parent>

View File

@@ -142,6 +142,7 @@ Common usage:
<echo message="load_registries --> Load metadata &amp; file format registries into the " />
<echo message=" database" />
<echo message="" />
<echo message="clean_backups --> Remove .bak directories under install directory" />
<echo message="clean_database --> Remove DSpace database tables, destroying data" />
<echo message="" />
<echo message="" />

37
pom.xml
View File

@@ -4,7 +4,7 @@
<groupId>org.dspace</groupId>
<artifactId>dspace-parent</artifactId>
<packaging>pom</packaging>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<name>DSpace Parent Project</name>
<url>https://github.com/dspace/DSpace</url>
@@ -377,7 +377,7 @@
</profile>
<!--
Builds LNI WAR for DSpace
Builds LNI WAR & Client for DSpace
-->
<profile>
<id>dspace-lni</id>
@@ -388,6 +388,7 @@
</activation>
<modules>
<module>dspace-lni</module>
<module>dspace-lni/dspace-lni-client</module>
</modules>
</profile>
@@ -444,71 +445,71 @@
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-api</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
</dependency>
<dependency>
<groupId>org.dspace.modules</groupId>
<artifactId>additions</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-sword</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<type>jar</type>
<classifier>classes</classifier>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-sword</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-swordv2</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<type>jar</type>
<classifier>classes</classifier>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-swordv2</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-jspui</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<type>jar</type>
<classifier>classes</classifier>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-jspui</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-oai</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<type>jar</type>
<classifier>classes</classifier>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-oai</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-lni</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<type>jar</type>
<classifier>classes</classifier>
</dependency>
@@ -520,26 +521,26 @@
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-lni</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-xmlui</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<type>jar</type>
<classifier>classes</classifier>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-xmlui</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-services</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.2</version>
</dependency>
<!-- DSpace Localization Packages -->
<dependency>
@@ -1179,7 +1180,7 @@
<connection>scm:git:git@github.com:DSpace/DSpace.git</connection>
<developerConnection>scm:git:git@github.com:DSpace/DSpace.git</developerConnection>
<url>git@github.com:DSpace/DSpace.git</url>
<tag>HEAD</tag>
<tag>dspace-3.2</tag>
</scm>
<!--