Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Ilja Sidoroff
2016-09-13 09:54:58 +00:00
6 changed files with 32 additions and 25 deletions

View File

@@ -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

View File

@@ -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))

View File

@@ -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

View File

@@ -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");

View File

@@ -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>
@@ -240,6 +240,8 @@
<Filter id="openAireFilter"> <Filter id="openAireFilter">
<Definition> <Definition>
<And> <And>
<LeftCondition>
<And>
<LeftCondition> <LeftCondition>
<And> <And>
<LeftCondition> <LeftCondition>
@@ -251,11 +253,13 @@
</And> </And>
</LeftCondition> </LeftCondition>
<RightCondition> <RightCondition>
<And>
<LeftCondition>
<Custom ref="driverDocumentTypeCondition"/> <Custom ref="driverDocumentTypeCondition"/>
</RightCondition>
</And>
</LeftCondition> </LeftCondition>
<RightCondition> <RightCondition>
<Or>
<LeftCondition>
<And> <And>
<LeftCondition> <LeftCondition>
<Or> <Or>
@@ -267,12 +271,15 @@
</RightCondition> </RightCondition>
</Or> </Or>
</LeftCondition> </LeftCondition>
<RightCondition>
<Custom ref="driverAccessCondition"/>
</RightCondition>
</And>
</LeftCondition>
<RightCondition> <RightCondition>
<Custom ref="openaireRelationCondition"/> <Custom ref="openaireRelationCondition"/>
</RightCondition> </RightCondition>
</And> </Or>
</RightCondition>
</And>
</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>

View File

@@ -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>