mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-08 02:24:18 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -49,7 +49,7 @@ public class ItemCounter
|
|||||||
protected ConfigurationService configurationService;
|
protected ConfigurationService configurationService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct a new item counter which will use the give DSpace Context
|
* Construct a new item counter which will use the given DSpace Context
|
||||||
*
|
*
|
||||||
* @param context current context
|
* @param context current context
|
||||||
* @throws ItemCountException if count error
|
* @throws ItemCountException if count error
|
||||||
|
@@ -76,7 +76,7 @@ public class PubmedService
|
|||||||
if (StringUtils.isNotBlank(title))
|
if (StringUtils.isNotBlank(title))
|
||||||
{
|
{
|
||||||
query.append("((").append(title).append("[TI]) OR (");
|
query.append("((").append(title).append("[TI]) OR (");
|
||||||
// [TI] non funziona sempre, titolo di capitoli di libro
|
// [TI] does not always work, book chapter title
|
||||||
query.append("(").append(title).append("[book]))");
|
query.append("(").append(title).append("[book]))");
|
||||||
}
|
}
|
||||||
if (StringUtils.isNotBlank(author))
|
if (StringUtils.isNotBlank(author))
|
||||||
|
@@ -32,11 +32,11 @@ public class ItemCollectionGenerator extends ATOMCollectionGenerator
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Build the collection around the give DSpaceObject. If the object
|
* Build the collection around the given DSpaceObject. If the object
|
||||||
* is not an instance of a DSpace Item this method will throw an
|
* is not an instance of a DSpace Item this method will throw an
|
||||||
* exception.
|
* exception.
|
||||||
*
|
*
|
||||||
* @param dso the dso for which the collection should be build
|
* @param dso the dso for which the collection should be built
|
||||||
* @throws DSpaceSWORDException if the dso is not an instance of Item
|
* @throws DSpaceSWORDException if the dso is not an instance of Item
|
||||||
*/
|
*/
|
||||||
public Collection buildCollection(DSpaceObject dso)
|
public Collection buildCollection(DSpaceObject dso)
|
||||||
@@ -95,7 +95,7 @@ public class ItemCollectionGenerator extends ATOMCollectionGenerator
|
|||||||
scol.setAbstract(dcAbstract);
|
scol.setAbstract(dcAbstract);
|
||||||
}
|
}
|
||||||
|
|
||||||
// do we suppot mediated deposit
|
// do we support mediated deposit
|
||||||
scol.setMediation(swordConfig.isMediated());
|
scol.setMediation(swordConfig.isMediated());
|
||||||
|
|
||||||
// the list of mime types that we accept, which we take from the
|
// the list of mime types that we accept, which we take from the
|
||||||
|
@@ -237,12 +237,12 @@
|
|||||||
<!-- The following javascript removes the default text of empty text areas when they are focused on or submitted -->
|
<!-- The following javascript removes the default text of empty text areas when they are focused on or submitted -->
|
||||||
<!-- There is also javascript to disable submitting a form when the 'enter' key is pressed. -->
|
<!-- There is also javascript to disable submitting a form when the 'enter' key is pressed. -->
|
||||||
<script>
|
<script>
|
||||||
//Clear default text of emty text areas on focus
|
//Clear default text of empty text areas on focus
|
||||||
function tFocus(element)
|
function tFocus(element)
|
||||||
{
|
{
|
||||||
if (element.value == '<i18n:text>xmlui.dri2xhtml.default.textarea.value</i18n:text>'){element.value='';}
|
if (element.value == '<i18n:text>xmlui.dri2xhtml.default.textarea.value</i18n:text>'){element.value='';}
|
||||||
}
|
}
|
||||||
//Clear default text of emty text areas on submit
|
//Clear default text of empty text areas on submit
|
||||||
function tSubmit(form)
|
function tSubmit(form)
|
||||||
{
|
{
|
||||||
var defaultedElements = document.getElementsByTagName("textarea");
|
var defaultedElements = document.getElementsByTagName("textarea");
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
<Contexts>
|
<Contexts>
|
||||||
<Context baseurl="request" name="Default Context">
|
<Context baseurl="request" name="Default Context">
|
||||||
<!-- Restrict access to hidden items by default -->
|
<!-- Restrict access to hidden items by default -->
|
||||||
<Filter ref="defaultFilter" />
|
<Filter ref="defaultFilter"/>
|
||||||
|
|
||||||
<Format ref="oaidc"/>
|
<Format ref="oaidc"/>
|
||||||
<Format ref="mets"/>
|
<Format ref="mets"/>
|
||||||
@@ -60,9 +60,9 @@
|
|||||||
</Context>
|
</Context>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
OpenAIRE Guidelines 1.1:
|
OpenAIRE Guidelines 3.0:
|
||||||
|
|
||||||
- https://guidelines.openaire.eu/en/latest/
|
- https://guidelines.openaire.eu/
|
||||||
|
|
||||||
There is a limitation over the embargoedEndDate parameter:
|
There is a limitation over the embargoedEndDate parameter:
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@
|
|||||||
<Format ref="oaidc"/>
|
<Format ref="oaidc"/>
|
||||||
<Format ref="mets"/>
|
<Format ref="mets"/>
|
||||||
<Description>
|
<Description>
|
||||||
This context complies with OpenAIRE rules.
|
This contexts complies with OpenAIRE Guidelines for Literature Repositories v3.0.
|
||||||
</Description>
|
</Description>
|
||||||
</Context>
|
</Context>
|
||||||
</Contexts>
|
</Contexts>
|
||||||
@@ -243,19 +243,23 @@
|
|||||||
<LeftCondition>
|
<LeftCondition>
|
||||||
<And>
|
<And>
|
||||||
<LeftCondition>
|
<LeftCondition>
|
||||||
<Custom ref="titleExistsCondition"/>
|
<And>
|
||||||
|
<LeftCondition>
|
||||||
|
<Custom ref="titleExistsCondition"/>
|
||||||
|
</LeftCondition>
|
||||||
|
<RightCondition>
|
||||||
|
<Custom ref="authorExistsCondition"/>
|
||||||
|
</RightCondition>
|
||||||
|
</And>
|
||||||
</LeftCondition>
|
</LeftCondition>
|
||||||
<RightCondition>
|
<RightCondition>
|
||||||
<Custom ref="authorExistsCondition"/>
|
<Custom ref="driverDocumentTypeCondition"/>
|
||||||
</RightCondition>
|
</RightCondition>
|
||||||
</And>
|
</And>
|
||||||
</LeftCondition>
|
</LeftCondition>
|
||||||
<RightCondition>
|
<RightCondition>
|
||||||
<And>
|
<Or>
|
||||||
<LeftCondition>
|
<LeftCondition>
|
||||||
<Custom ref="driverDocumentTypeCondition"/>
|
|
||||||
</LeftCondition>
|
|
||||||
<RightCondition>
|
|
||||||
<And>
|
<And>
|
||||||
<LeftCondition>
|
<LeftCondition>
|
||||||
<Or>
|
<Or>
|
||||||
@@ -268,11 +272,14 @@
|
|||||||
</Or>
|
</Or>
|
||||||
</LeftCondition>
|
</LeftCondition>
|
||||||
<RightCondition>
|
<RightCondition>
|
||||||
<Custom ref="openaireRelationCondition"/>
|
<Custom ref="driverAccessCondition"/>
|
||||||
</RightCondition>
|
</RightCondition>
|
||||||
</And>
|
</And>
|
||||||
|
</LeftCondition>
|
||||||
|
<RightCondition>
|
||||||
|
<Custom ref="openaireRelationCondition"/>
|
||||||
</RightCondition>
|
</RightCondition>
|
||||||
</And>
|
</Or>
|
||||||
</RightCondition>
|
</RightCondition>
|
||||||
</And>
|
</And>
|
||||||
</Definition>
|
</Definition>
|
||||||
@@ -360,6 +367,7 @@
|
|||||||
<string>annotation</string>
|
<string>annotation</string>
|
||||||
<string>contributionToPeriodical</string>
|
<string>contributionToPeriodical</string>
|
||||||
<string>patent</string>
|
<string>patent</string>
|
||||||
|
<string>dataset</string>
|
||||||
<string>other</string>
|
<string>other</string>
|
||||||
</list>
|
</list>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
@@ -374,7 +382,6 @@
|
|||||||
<string name="field">dc.rights</string>
|
<string name="field">dc.rights</string>
|
||||||
<string name="operator">contains</string>
|
<string name="operator">contains</string>
|
||||||
<list name="values">
|
<list name="values">
|
||||||
<string>open access</string>
|
|
||||||
<string>openAccess</string>
|
<string>openAccess</string>
|
||||||
</list>
|
</list>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
@@ -400,7 +407,7 @@
|
|||||||
<Configuration>
|
<Configuration>
|
||||||
<string name="field">dc.relation</string>
|
<string name="field">dc.relation</string>
|
||||||
<string name="operator">starts_with</string>
|
<string name="operator">starts_with</string>
|
||||||
<string name="value">info:eu-repo/grantAgreement/EC</string>
|
<string name="value">info:eu-repo/grantAgreement/</string>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
</CustomCondition>
|
</CustomCondition>
|
||||||
</Filters>
|
</Filters>
|
||||||
@@ -412,8 +419,8 @@
|
|||||||
<!-- Just an alias -->
|
<!-- Just an alias -->
|
||||||
</Set>
|
</Set>
|
||||||
<Set id="openaireSet">
|
<Set id="openaireSet">
|
||||||
<Spec>ec_fundedresources</Spec>
|
<Spec>openaire</Spec>
|
||||||
<Name>EC_fundedresources set</Name>
|
<Name>OpenAIRE</Name>
|
||||||
<!-- Just an alias -->
|
<!-- Just an alias -->
|
||||||
</Set>
|
</Set>
|
||||||
</Sets>
|
</Sets>
|
||||||
|
4
pom.xml
4
pom.xml
@@ -1140,12 +1140,12 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.pdfbox</groupId>
|
<groupId>org.apache.pdfbox</groupId>
|
||||||
<artifactId>pdfbox</artifactId>
|
<artifactId>pdfbox</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.pdfbox</groupId>
|
<groupId>org.apache.pdfbox</groupId>
|
||||||
<artifactId>fontbox</artifactId>
|
<artifactId>fontbox</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.bouncycastle</groupId>
|
<groupId>org.bouncycastle</groupId>
|
||||||
|
Reference in New Issue
Block a user