Compare commits

...

65 Commits

Author SHA1 Message Date
Denis Fdz
5333d8f230 DS-2013 implement ItemDAOOracle to fix thumbnails in browse 2014-06-05 10:24:56 -04:00
Mark H. Wood
9ad80cf697 [DS-1961] Use HTTPS with oss.sonatype.org repository 2014-05-29 16:34:02 -04:00
Mini
7f8c1b1fb3 DS-1958 Fix SolrLogger Memory Error 2014-05-22 20:54:48 +02:00
Ivan Masár
5eb55eb0de DS-1998 fix the "dspace classpath" CLI command 2014-05-21 16:21:39 -04:00
KevinVdV
e885efa22d [DS-1834] Collection content source harvesting test does not check sets properly 2014-02-17 15:42:05 +01:00
KevinVdV
4b4e65cf0f [DS-1898] OAI not always closing contexts 2014-02-14 10:19:17 +01:00
Andrea Bollini
ffa5f8c35e DS-1619 Unable to remove items after enabling SOLRBrowseDAOs 2014-02-06 10:55:10 +01:00
Àlex Magaz Graça
5eca1c03e9 DS-1536 having a DOT in handle prefix causes identifier.uri to be cut off when being created. 2014-02-05 16:38:35 -05:00
KevinVdV
79e4e966a7 [DS-1893] Get page refresh after adding a value in the submission forms clears all metadata in XMLUI 2014-01-30 11:53:34 +01:00
rradillen
c8f9d1f981 DS-1890 correct scope logging of searches
logged scopeId and scopeType properly.
2014-01-29 10:12:32 +01:00
Ivan Masár
7f7db29a40 DS-1816 add missing DSO type to DRI (focus.containerType) 2014-01-27 14:30:27 +01:00
Adán Román Ruiz
41e21bb2c4 DS-1881 Remove filter button in XMLUI Discovery filters deletes all "New filters" 2014-01-27 14:30:23 +01:00
Hélder Silva
422ac256a1 DS-1634 XOAI OpenAire dc.relation filter is incorrect 2013-08-19 16:24:40 +02:00
Sam Ottenhoff
c875743d99 DS-1632 adding missing abstract into to XOAI QDC crosswalk 2013-08-19 11:04:46 +02:00
Ivan Masár
fe56465a93 DS-1605 add .travis.yml for Travis-CI integration 2013-07-26 17:47:57 +02:00
Hardy Pottinger
768146ca3b [maven-release-plugin] prepare for next development iteration 2013-07-24 13:38:07 -05:00
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
66 changed files with 315 additions and 172 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

1
.travis.yml Normal file
View File

@@ -0,0 +1 @@
language: java

View File

@@ -12,7 +12,7 @@
<parent>
<groupId>org.dspace</groupId>
<artifactId>dspace-parent</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.3-SNAPSHOT</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

@@ -372,6 +372,9 @@ public class SolrBrowseCreateDAO implements BrowseCreateDAO,
public void insertIndex(String table, int itemID, Map sortCols)
throws BrowseException
{
// this is required to be sure that communities2item will be cleaned
// after the switch to SOLRBrowseDAOs. See DS-1619
dbCreateDAO.deleteCommunityMappings(itemID);
}
@Override

View File

@@ -9,25 +9,107 @@ package org.dspace.content.dao;
import org.dspace.core.Context;
import org.dspace.content.Bitstream;
import org.dspace.storage.rdbms.DatabaseManager;
import org.dspace.storage.rdbms.TableRowIterator;
import org.dspace.storage.rdbms.TableRow;
import java.sql.SQLException;
public class ItemDAOOracle extends ItemDAO
{
{
private static final String selectPrimaryBitstreamID =
"SELECT bundle.primary_bitstream_id FROM item2bundle, bundle " +
"WHERE item2bundle.item_id=? AND item2bundle.bundle_id=bundle.bundle_id AND bundle.name=?";
private static final String selectFirstBitstreamID =
"SELECT bundle2bitstream.bitstream_id FROM item2bundle, bundle, bundle2bitstream " +
"WHERE item2bundle.item_id=? AND item2bundle.bundle_id=bundle.bundle_id AND bundle.name=? " +
"AND bundle.bundle_id=bundle2bitstream.bundle_id";
private static final String selectNamedBitstreamID =
"SELECT bitstream.bitstream_id FROM item2bundle, bundle, bundle2bitstream, bitstream " +
"WHERE item2bundle.item_id=? AND item2bundle.bundle_id=bundle.bundle_id AND bundle.name=? " +
"AND bundle.bundle_id=bundle2bitstream.bundle_id AND bundle2bitstream.bitstream_id=bitstream.bitstream_id " +
"AND bitstream.name=?";
ItemDAOOracle(Context ctx)
{
super(ctx);
}
public Bitstream getPrimaryBitstream(int itemId, String bundleName) throws SQLException {
return null; //To change body of implemented methods use File | Settings | File Templates.
public Bitstream getPrimaryBitstream(int itemId, String bundleName) throws SQLException
{
TableRowIterator tri = null;
try
{
tri = DatabaseManager.query(context, selectPrimaryBitstreamID, itemId, bundleName);
if (tri.hasNext())
{
TableRow row = tri.next();
int bid = row.getIntColumn("primary_bitstream_id");
return Bitstream.find(context, bid);
}
}
finally
{
if (tri != null)
{
tri.close();
}
}
return null;
}
public Bitstream getFirstBitstream(int itemId, String bundleName) throws SQLException {
return null; //To change body of implemented methods use File | Settings | File Templates.
public Bitstream getFirstBitstream(int itemId, String bundleName) throws SQLException
{
TableRowIterator tri = null;
try
{
tri = DatabaseManager.query(context, selectFirstBitstreamID, itemId, bundleName);
if (tri.hasNext())
{
TableRow row = tri.next();
int bid = row.getIntColumn("bitstream_id");
return Bitstream.find(context, bid);
}
}
finally
{
if (tri != null)
{
tri.close();
}
}
return null;
}
public Bitstream getNamedBitstream(int itemId, String bundleName, String fileName) throws SQLException {
return null; //To change body of implemented methods use File | Settings | File Templates.
public Bitstream getNamedBitstream(int itemId, String bundleName, String fileName) throws SQLException
{
TableRowIterator tri = null;
try
{
tri = DatabaseManager.query(context, selectNamedBitstreamID, itemId, bundleName, fileName);
if (tri.hasNext())
{
TableRow row = tri.next();
int bid = row.getIntColumn("bitstream_id");
return Bitstream.find(context, bid);
}
}
finally
{
if (tri != null)
{
tri.close();
}
}
return null;
}
}

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,6 +13,7 @@ import org.apache.commons.collections.Transformer;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.commons.io.IOUtils;
import org.apache.commons.io.input.AutoCloseInputStream;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.time.DateFormatUtils;
@@ -1198,7 +1199,6 @@ public class SolrServiceImpl implements SearchService, IndexingService {
log.debug(" Added Grouping");
Vector<InputStreamReader> readers = new Vector<InputStreamReader>();
try {
// now get full text of any bitstreams in the TEXT bundle
@@ -1216,17 +1216,12 @@ public class SolrServiceImpl implements SearchService, IndexingService {
for (Bitstream myBitstream : myBitstreams)
{
try {
InputStreamReader is = new InputStreamReader(
myBitstream.retrieve()); // get input
readers.add(is);
// Add each InputStream to the Indexed Document
String value = IOUtils.toString(is);
doc.addField("fulltext", value);
doc.addField("fulltext", new AutoCloseInputStream(myBitstream.retrieve()));
if(hitHighlightingFields.contains("*") || hitHighlightingFields.contains("fulltext"))
{
doc.addField("fulltext_hl", value);
doc.addField("fulltext_hl", new AutoCloseInputStream(myBitstream.retrieve()));
}
log.debug(" Added BitStream: "
@@ -1247,16 +1242,6 @@ public class SolrServiceImpl implements SearchService, IndexingService {
{
log.error(e.getMessage(), e);
}
finally {
Iterator<InputStreamReader> itr = readers.iterator();
while (itr.hasNext()) {
InputStreamReader reader = itr.next();
if (reader != null) {
reader.close();
}
}
log.debug("closed " + readers.size() + " readers");
}
//Do any additional indexing, depends on the plugins
List<SolrServiceIndexPlugin> solrServiceIndexPlugins = new DSpace().getServiceManager().getServicesByType(SolrServiceIndexPlugin.class);
@@ -1275,6 +1260,8 @@ public class SolrServiceImpl implements SearchService, IndexingService {
}
}
/**
* Create Lucene document with all the shared fields initialized.
*

View File

@@ -29,6 +29,8 @@ import java.util.TimeZone;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerException;
import ORG.oclc.oai.harvester2.verb.*;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import org.dspace.authorize.AuthorizeException;
import org.dspace.content.Bitstream;
@@ -63,12 +65,6 @@ import org.jdom.input.DOMBuilder;
import org.jdom.output.XMLOutputter;
import org.xml.sax.SAXException;
import ORG.oclc.oai.harvester2.verb.GetRecord;
import ORG.oclc.oai.harvester2.verb.Identify;
import ORG.oclc.oai.harvester2.verb.ListMetadataFormats;
import ORG.oclc.oai.harvester2.verb.ListRecords;
import ORG.oclc.oai.harvester2.verb.ListSets;
/**
* This class handles OAI harvesting of externally located records into this repository.
@@ -945,29 +941,21 @@ public class OAIHarvester {
try {
//If we do not want to harvest from one set, then skip this.
if(!"all".equals(oaiSetId)){
ListSets ls = new ListSets(oaiSource);
ListIdentifiers ls = new ListIdentifiers(oaiSource, null, null, oaiSetId, DMDOAIPrefix);
// The only error we can really get here is "noSetHierarchy"
if (ls.getErrors() != null && ls.getErrors().getLength() > 0) {
for (int i=0; i<ls.getErrors().getLength(); i++) {
String errorCode = ls.getErrors().item(i).getAttributes().getNamedItem("code").getTextContent();
errorSet.add(errorCode);
errorSet.add(OAI_SET_ERROR + ": The OAI server does not have a set with the specified setSpec (" + errorCode + ")");
}
}
else {
// Drilling down to /OAI-PMH/ListSets/set
Document reply = db.build(ls.getDocument());
Element root = reply.getRootElement();
List<Element> sets= root.getChild("ListSets",OAI_NS).getChildren("set",OAI_NS);
for (Element set : sets)
{
String setSpec = set.getChildText("setSpec", OAI_NS);
if (setSpec.equals(oaiSetId)) {
foundSet = true;
break;
}
}
//Check if we can find items, if so this indicates that we have children and our sets exist
foundSet = 0 < root.getChild("ListIdentifiers",OAI_NS).getChildren().size();
if (!foundSet) {
errorSet.add(OAI_SET_ERROR + ": The OAI server does not have a set with the specified setSpec");

View File

@@ -545,7 +545,7 @@ public class VersionedHandleIdentifierProvider extends IdentifierProvider {
protected String getCanonical(Item item)
{
String canonical = item.getHandle();
if( canonical.lastIndexOf(DOT)!=-1)
if( canonical.matches(".*/.*\\.\\d+") && canonical.lastIndexOf(DOT)!=-1)
{
canonical = canonical.substring(0, canonical.lastIndexOf(DOT));
}
@@ -556,7 +556,7 @@ public class VersionedHandleIdentifierProvider extends IdentifierProvider {
protected String getCanonical(String identifier)
{
String canonical = identifier;
if( canonical.lastIndexOf(DOT)!=-1)
if( canonical.matches(".*/.*\\.\\d+") && canonical.lastIndexOf(DOT)!=-1)
{
canonical = canonical.substring(0, canonical.lastIndexOf(DOT));
}

View File

@@ -365,8 +365,8 @@ public class SolrLogger
}
//Store the scope
if(scope != null){
solrDoc.addField("scopeId", scope.getType());
solrDoc.addField("scopeType", scope.getID());
solrDoc.addField("scopeId", scope.getID());
solrDoc.addField("scopeType", scope.getType());
}
if(rpp != -1){

View File

@@ -117,6 +117,10 @@ public class DescribeStep extends AbstractProcessingStep
throws ServletException, IOException, SQLException,
AuthorizeException
{
if(!request.getParameterNames().hasMoreElements()){
//In case of an empty request do NOT just remove all metadata, just return to the submission page
return STATUS_MORE_INPUT_REQUESTED;
}
// check what submit button was pressed in User Interface
String buttonPressed = Util.getSubmitButton(request, NEXT_BUTTON);

View File

@@ -13,7 +13,7 @@
<parent>
<groupId>org.dspace</groupId>
<artifactId>dspace-parent</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.3-SNAPSHOT</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.3-SNAPSHOT</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.3-SNAPSHOT</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.3-SNAPSHOT</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

@@ -158,6 +158,11 @@ public class DSpaceOAIDataProvider extends HttpServlet
"Requested OAI context \""
+ request.getPathInfo().replace("/", "")
+ "\" does not exist");
} finally {
if(context != null && context.isValid())
{
context.abort();
}
}
}

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.3-SNAPSHOT</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.3-SNAPSHOT</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.3-SNAPSHOT</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.3-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

View File

@@ -211,13 +211,22 @@ public class Navigation extends AbstractDSpaceTransformer implements CacheablePr
{
if (dso instanceof Item)
{
pageMeta.addMetadata("focus","containerType").addContent("type:item");
pageMeta.addMetadata("focus","object").addContent("hdl:"+dso.getHandle());
this.getObjectManager().manageObject(dso);
dso = ((Item) dso).getOwningCollection();
}
if (dso instanceof Collection || dso instanceof Community)
if (dso instanceof Collection)
{
pageMeta.addMetadata("focus","containerType").addContent("type:collection");
pageMeta.addMetadata("focus","container").addContent("hdl:"+dso.getHandle());
this.getObjectManager().manageObject(dso);
}
if (dso instanceof Community)
{
pageMeta.addMetadata("focus","containerType").addContent("type:community");
pageMeta.addMetadata("focus","container").addContent("hdl:"+dso.getHandle());
this.getObjectManager().manageObject(dso);
}

View File

@@ -39,6 +39,7 @@ import org.xml.sax.SAXException;
* @author Kevin Van de Velde (kevin at atmire dot com)
* @author Mark Diggory (markd at atmire dot com)
* @author Ben Bosman (ben at atmire dot com)
* @author Adán Román Ruiz <aroman@arvo.es> (Bugfix)
*/
public class SimpleSearch extends AbstractSearch implements CacheableProcessingComponent {
/**
@@ -185,8 +186,8 @@ public class SimpleSearch extends AbstractSearch implements CacheableProcessingC
if(StringUtils.isNotBlank(filterValue))
{
Row row = filtersTable.addRow("used-filters-" + i, Row.ROLE_DATA, "search-filter used-filter");
addFilterRow(filterFields, i, row, filterType, filterOperator, filterValue);
Row row = filtersTable.addRow("used-filters-" + i+1, Row.ROLE_DATA, "search-filter used-filter");
addFilterRow(filterFields, i+1, row, filterType, filterOperator, filterValue);
}
}
filtersTable.addRow("filler-row", Row.ROLE_DATA, "search-filter filler").addCell(1, 4).addContent("");

View File

@@ -133,13 +133,22 @@ public class Navigation extends AbstractDSpaceTransformer implements CacheablePr
{
if (dso instanceof Item)
{
pageMeta.addMetadata("focus","containerType").addContent("type:item");
pageMeta.addMetadata("focus","object").addContent("hdl:"+dso.getHandle());
this.getObjectManager().manageObject(dso);
dso = ((Item) dso).getOwningCollection();
}
if (dso instanceof Collection || dso instanceof Community)
if (dso instanceof Collection)
{
pageMeta.addMetadata("focus","containerType").addContent("type:collection");
pageMeta.addMetadata("focus","container").addContent("hdl:"+dso.getHandle());
this.getObjectManager().manageObject(dso);
}
if (dso instanceof Community)
{
pageMeta.addMetadata("focus","containerType").addContent("type:community");
pageMeta.addMetadata("focus","container").addContent("hdl:"+dso.getHandle());
this.getObjectManager().manageObject(dso);
}

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

@@ -119,7 +119,7 @@
//Hide ourselves & clear our values!
parentRow.find('input[type=text]", select').val('');
}else{
if(parentRow.parents('table:first').find('tr[id^="aspect_discovery_SimpleSearch_row_used-filters-"]').length == 1)
if(parentRow.is('[id^="aspect_discovery_SimpleSearch_row_used-filters-"]') && parentRow.parents('table:first').find('tr[id^="aspect_discovery_SimpleSearch_row_used-filters-"]').length == 1)
{
parentRow.next().remove();
parentRow.prev().remove();

View File

@@ -61,6 +61,12 @@ else
fi
# If the user only wants the CLASSPATH, just give it now.
if [ "$1" = "classpath" ]; then
echo $FULLPATH
exit 0
fi
#Allow user to specify java options through JAVA_OPTS variable

View File

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

View File

@@ -41,6 +41,7 @@
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='description']/doc:element[@name='abstract']/doc:element/doc:field[@name='value']">
<dcterms:abstract xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:value-of select="." />
</dcterms:abstract>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='date']/doc:element[@name='available']/doc:element/doc:field[@name='value']">

View File

@@ -239,7 +239,7 @@
<Value>starts_with</Value>
</Parameter>
<Parameter key="value">
<Value>info:eurepo/grantAgreement/EC/FP</Value>
<Value>info:eu-repo/grantAgreement/EC/FP</Value>
</Parameter>
</Filter>
</Filters>

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.3-SNAPSHOT</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.3-SNAPSHOT</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.3-SNAPSHOT</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.3-SNAPSHOT</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.3-SNAPSHOT</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.3-SNAPSHOT</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.3-SNAPSHOT</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.3-SNAPSHOT</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.3-SNAPSHOT</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.3-SNAPSHOT</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.3-SNAPSHOT</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="" />

39
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.3-SNAPSHOT</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.3-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.dspace.modules</groupId>
<artifactId>additions</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.3-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-sword</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.3-SNAPSHOT</version>
<type>jar</type>
<classifier>classes</classifier>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-sword</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.3-SNAPSHOT</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-swordv2</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.3-SNAPSHOT</version>
<type>jar</type>
<classifier>classes</classifier>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-swordv2</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.3-SNAPSHOT</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-jspui</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.3-SNAPSHOT</version>
<type>jar</type>
<classifier>classes</classifier>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-jspui</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.3-SNAPSHOT</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-oai</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.3-SNAPSHOT</version>
<type>jar</type>
<classifier>classes</classifier>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-oai</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.3-SNAPSHOT</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-lni</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.3-SNAPSHOT</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.3-SNAPSHOT</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-xmlui</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.3-SNAPSHOT</version>
<type>jar</type>
<classifier>classes</classifier>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-xmlui</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.3-SNAPSHOT</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-services</artifactId>
<version>4.0-SNAPSHOT</version>
<version>3.3-SNAPSHOT</version>
</dependency>
<!-- DSpace Localization Packages -->
<dependency>
@@ -1196,8 +1197,8 @@
<repository>
<id>sonatype-releases</id>
<name>Sonatype Releases Repository</name>
<url>http://oss.sonatype.org/content/repositories/releases/</url>
<url>https://oss.sonatype.org/content/repositories/releases/</url>
</repository>
</repositories>
</project>