Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump org.xmlunit:xmlunit-core from 2.9.1 to 2.10.0 in /dspace-api #519

Open
wants to merge 119 commits into
base: 7_x-prod
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
779d580
Port some configs from DSpace 6
alanorth Aug 4, 2022
5583ce9
dspace/config: enable localhost:4000 for REST API
alanorth Aug 4, 2022
ca9ccf8
dspace.cfg: disable extra "browse by"
alanorth Aug 4, 2022
007147b
dspace: add controlled vocabularies
alanorth Aug 5, 2022
bcc4031
dspace/config: import latest spider lists
alanorth Aug 5, 2022
08a0113
dspace/config: adjust usage statistics
alanorth Sep 6, 2022
35708c2
dspace.cfg: override ImageMagick density
alanorth Nov 1, 2022
e2808fd
dspace.cfg: enable eperson.subscription.onlynew
alanorth Dec 8, 2022
1a47dd7
dspace/config: enable LDAP authentication
alanorth Dec 11, 2022
a3829bf
Add IDs to controlled vocabularies
alanorth Feb 27, 2023
92948e3
Add IDs to dcterms-subject.xml
alanorth Feb 28, 2023
a34b6e9
discovery.xml: add some CGSpace filters
alanorth Mar 2, 2023
2950ca6
discovery.xml: update default filters
alanorth Mar 2, 2023
fa9d517
discovery.xml: more filter adjustments
alanorth Mar 2, 2023
a699466
discovery.xml: add more facets
alanorth Mar 2, 2023
2b6cc7b
dspace/config/spiders: update agents
alanorth Mar 3, 2023
2d89cec
dspace.cfg: increase thumbnail size to 500px
alanorth Mar 10, 2023
0e6830b
dspace: use CG Core fields for CrossRef import
alanorth May 31, 2023
1ef63be
dspace: use cg.identifier.doi for Datacite import
alanorth May 31, 2023
fab1133
dspace: use CG Core fields for PubMed import
alanorth May 31, 2023
29907dd
Add dspace/config/default.license
alanorth Jun 13, 2023
b1a9efd
dspace/config: import submission forms again
alanorth Jun 14, 2023
269f697
dspace/config: enable Sherpa Romeo summary for ISSNs
alanorth Jun 14, 2023
b0cd680
dspace.cfg: enable item counts aka "strengths"
alanorth Jun 16, 2023
3600736
dspace/config: dc.date.issued → dcterms.issued
alanorth Jun 16, 2023
228d66b
dspace/config: enable LDAP authentication
alanorth Jun 21, 2023
95fdbb1
dspace/config: use OU=ILRIHUB in ldap group map
alanorth Jun 21, 2023
f91bc42
dspace/config: disable ldap groupmap
alanorth Jun 21, 2023
ed37bb4
dspace/config: update abstract in discovery.xml
alanorth Jun 21, 2023
02b1cae
dspace/config: remove subregion value pairs from submission form
alanorth Jun 27, 2023
d59a5a3
dspace/config: update discovery.xml
alanorth Jun 27, 2023
8d508f6
dspace/config: update discovery.xml
alanorth Jun 28, 2023
e902e7a
dspace/config: remove srsc from submission-forms.xml
alanorth Jun 29, 2023
1a03ab8
dspace.cfg: enable linked browse for some fields
alanorth Jul 26, 2023
1f33330
dspace-rest: allow bundleName parameter in bitstream endpoint
alanorth Aug 14, 2023
2316be2
discovery.xml: move subject facet up
alanorth Aug 30, 2023
6924ae6
discovery.xml: add publisher to search facets
alanorth Aug 31, 2023
f613739
discovery.xml: Update indexes
alanorth Sep 4, 2023
e3aa943
submission-forms.xml: use input type tag for more fields
alanorth Sep 8, 2023
98f124f
submission-forms.xml: move CRPs down
alanorth Sep 8, 2023
9b8cacd
submission-forms.xml: move SDGs down
alanorth Sep 8, 2023
2d2f5c2
submission-forms.xml: add CGIAR Impact Platforms
alanorth Sep 8, 2023
0b0b232
submission-forms.xml: indicate CRPs are 2012-2021
alanorth Sep 8, 2023
2137790
dspace.cfg: disable automatic browses for some fields
alanorth Sep 8, 2023
5491708
submission-forms.xml: revert some changes to tags
alanorth Sep 10, 2023
68234bd
submission-forms.xml: don't use tag input type
alanorth Sep 10, 2023
520bb03
submission-forms.xml: fix AGROVOC field
alanorth Sep 11, 2023
d288fef
discovery.xml: re-work facets
alanorth Sep 11, 2023
71cfe20
dspace/config: remove browse links
alanorth Sep 12, 2023
79cb14b
dspace.cfg: add Google Analytics key
alanorth Sep 18, 2023
4b26abc
submission-forms.xml: update CGIAR Impact Platforms
alanorth Sep 21, 2023
14cab6e
dspace/config/modules: disable automatic Discovery reindexing
alanorth Sep 25, 2023
208eef9
dspace: disable versioning
alanorth Oct 3, 2023
893a4ba
discovery.xml: re-order sort fields for MyDSpace
alanorth Oct 3, 2023
514a900
dspace/config/dspace.cfg: enable assumelogin
alanorth Oct 11, 2023
b71de73
dspace/config/crosswalks: update OAI mods crosswalk
alanorth Oct 17, 2023
f0c5099
dspace/config/crosswalks: update other crosswalks
alanorth Oct 17, 2023
486a8bd
Revert "dspace/config: disable ldap groupmap"
alanorth Oct 30, 2023
0f561b5
dspace/config/log4j2.xml: reduce noisy logs
alanorth Nov 2, 2023
6a0b609
discovery.xml: minor adjustment to date sorting
alanorth Nov 6, 2023
2c75ee7
dspace/config: add more bot overrides
alanorth Nov 23, 2023
43f9017
dspace/config: update OAI mods crosswalk
alanorth Nov 30, 2023
8cd0496
dspace/config: update ORCID in submission form
alanorth Dec 1, 2023
331af88
dspace/config: make DOI non-repeatable in submission form
alanorth Dec 5, 2023
0fc31ce
dspace/config: make series name/number not repeatable
alanorth Dec 5, 2023
8cc7581
dspace/config/spiders: remove ^mozilla from spiders
alanorth Dec 12, 2023
a54634b
dspace/config: make related reference repeatable
alanorth Dec 27, 2023
26f0aee
Add country code tagger curation task
alanorth Jan 2, 2024
626aefa
dspace/config: add CGIAR Trust Fund to sponsors
alanorth Jan 8, 2024
f311b46
Add ilri scripts
alanorth Jan 8, 2024
35ab9e8
dspace/config: remove subregion browse
alanorth Jan 8, 2024
980eec3
dspace/config: update ORCID identifiers
alanorth Jan 9, 2024
ad1a69b
dspace/solr: Increase maxBooleanClauses for all cores
alanorth Jan 9, 2024
35395e8
dspace/config: add controlled vocabulary for publishers
alanorth Jan 10, 2024
c7f3963
dspace/config: update affiliations
alanorth Jan 14, 2024
b4cf167
dspace/config: update author controlled vocab
alanorth Jan 16, 2024
7db5f69
dspace/config: update Initiative name
alanorth Jan 18, 2024
01a8fe2
dspace/config: update author
alanorth Jan 22, 2024
74cd120
ilri: set connection read_only for dry run
alanorth Jan 23, 2024
cf63976
dspace/config: update ORCID identifiers
alanorth Jan 23, 2024
4eb31f2
dspace/config: add cg.place to submission-forms.xml
alanorth Jan 24, 2024
7e5252a
dspace/config: adjust submission form
alanorth Jan 26, 2024
b3863e2
dspace/config: add project identifier to submission form
alanorth Jan 26, 2024
eba4a01
dspace/config: add IFPRI publication rank to submission form
alanorth Jan 26, 2024
1bc3c9c
dspace/config: remove incorrect ORCID identifier
alanorth Feb 1, 2024
5a6c1cd
dspace/config: update sponsor hint in submission form
alanorth Feb 1, 2024
56d1507
dspace/config: move common languages in submission form
alanorth Feb 1, 2024
f160bd2
dspace/config: remove some old donors from vocabulary
alanorth Feb 1, 2024
8e9d82c
dspace/config: minor update on submission form hint
alanorth Feb 1, 2024
8aa0b3d
dspace/config: remove duplicate ORCID identifier
alanorth Feb 2, 2024
f91e366
dspace/config: update controlled vocabulary for ORCID identifiers
alanorth Feb 6, 2024
c24949c
dspace/config: add controlled vocabulary for project identifier
alanorth Feb 8, 2024
f12f9d6
dspace/config: only show ISSN for journal articles
alanorth Feb 9, 2024
898b13c
dspace/config: minor tweak to related reference
alanorth Feb 9, 2024
8f8ca8c
submission-forms.xml: re-work some URL fields
alanorth Feb 22, 2024
4625cba
dspace: fix author name in controlled vocabulary
alanorth Feb 26, 2024
d7c24c8
dspace/config: fix IFPRI project identifier
alanorth Feb 27, 2024
7c396f3
dspace/config: update author controlled vocabulary
alanorth Feb 27, 2024
bd52848
dspace/config: update project identifiers
alanorth Feb 29, 2024
dd72d9b
dspace: disable controlled vocabulary for journal
alanorth Mar 1, 2024
fe60e6a
dspace: update controlled vocabulary for affiliation
alanorth Mar 3, 2024
796e671
dspace: remove duplicate authors
alanorth Mar 5, 2024
467adbe
dspace/config: update UNICEF in controlled vocabularies
alanorth Mar 8, 2024
c900e5c
ilri/generate_thumbnails.py: use webp for thumbnails
alanorth Mar 8, 2024
5b57db5
ilri/generate_thumbnails.py: minor optimization
alanorth Mar 8, 2024
cc58f3c
ilri/generate_thumbnails.py: use f-strings
alanorth Mar 8, 2024
cf90779
ilri/generate_thumbnails.py: run black
alanorth Mar 8, 2024
40f4d33
ilri/generate_thumbnails.py: bump version
alanorth Mar 8, 2024
c10a1cc
dspace/config: update ORCID identifiers
alanorth Mar 19, 2024
c3202fe
dspace/config: update authors
alanorth Mar 22, 2024
c3c00ef
dspace/config: update IFPRI project identifiers
alanorth Apr 4, 2024
baaca13
dspace/config/emails: update subscription message
alanorth Apr 6, 2024
038ac11
dspace/config: update ORCID identifiers
alanorth Apr 19, 2024
f96b889
dspace/config: comment out default curation tasks
alanorth Apr 23, 2024
e2a96b3
dspace/modules/additions: use cgspace-java-helpers v7.6.1.1
alanorth Apr 23, 2024
34a248c
dspace/config/modules: enable normalizedois curation task
alanorth Apr 23, 2024
096f439
dspace/config: Enable workflow curation tasks
alanorth Apr 23, 2024
e3ad5f5
dspace/module/additions: use v7.6.1.2 of cgspace-java-helpers
alanorth Apr 25, 2024
257e2f9
build(deps): bump org.xmlunit:xmlunit-core in /dspace-api
dependabot[bot] May 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dspace-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@
<dependency>
<groupId>org.xmlunit</groupId>
<artifactId>xmlunit-core</artifactId>
<version>2.9.1</version>
<version>2.10.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
22 changes: 18 additions & 4 deletions dspace-rest/src/main/java/org/dspace/rest/ItemsResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ public Response addItemMetadata(@PathParam("item_id") String itemId,
@POST
@Path("/{item_id}/bitstreams")
public Bitstream addItemBitstream(@PathParam("item_id") String itemId, InputStream inputStream,
@QueryParam("name") String name, @QueryParam("description") String description,
@QueryParam("name") String name, @QueryParam("description") String description, @QueryParam("bundleName") String bundleName,
@QueryParam("groupId") String groupId, @QueryParam("year") Integer year,
@QueryParam("month") Integer month,
@QueryParam("day") Integer day, @QueryParam("userIP") String user_ip,
Expand All @@ -467,15 +467,29 @@ public Bitstream addItemBitstream(@PathParam("item_id") String itemId, InputStre
log.trace("Creating bitstream in item.");
org.dspace.content.Bundle bundle = null;
org.dspace.content.Bitstream dspaceBitstream = null;
List<Bundle> bundles = itemService.getBundles(dspaceItem, org.dspace.core.Constants.CONTENT_BUNDLE_NAME);
List<Bundle> bundles = dspaceItem.getBundles();

// add bitstream to specified bundle
if (bundleName == null) {
bundleName = "ORIGINAL";
}
for (Bundle existingBundle : bundles)
{
if (existingBundle.getName().equals(bundleName))
{
bundle = existingBundle;
break;
}
}

if (bundles != null && bundles.size() != 0) {
bundle = bundles.get(0); // There should be only one bundle ORIGINAL.
}
if (bundle == null) {
log.trace("Creating bundle in item.");
dspaceBitstream = itemService.createSingleBitstream(context, inputStream, dspaceItem);
log.trace("Creating bundle "+bundleName+" in item.");
dspaceBitstream = itemService.createSingleBitstream(context, inputStream, dspaceItem, bundleName);
} else {

log.trace("Getting bundle from item.");
dspaceBitstream = bitstreamService.create(context, bundle, inputStream);
}
Expand Down
1,037 changes: 1,037 additions & 0 deletions dspace/config/controlled-vocabularies/cg-contributor-affiliation.xml

Large diffs are not rendered by default.

786 changes: 786 additions & 0 deletions dspace/config/controlled-vocabularies/cg-contributor-donor.xml

Large diffs are not rendered by default.

87 changes: 87 additions & 0 deletions dspace/config/controlled-vocabularies/cg-coverage-subregion.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Subregions need to be defined both here and in input-forms.xml (for Atmire L&R) -->
<node id="Subregion" label="">
<isComposedBy>
<node id="1" label="Alberta" />
<node id="2" label="An Giang" />
<node id="3" label="Andhra Pradesh" />
<node id="4" label="Ashanti" />
<node id="5" label="Assam" />
<node id="6" label="Badulla" />
<node id="7" label="Bali" />
<node id="8" label="Balochistan" />
<node id="9" label="Bamako" />
<node id="10" label="Bihar" />
<node id="11" label="British Columbia" />
<node id="12" label="Cajamarca" />
<node id="13" label="California" />
<node id="14" label="Cauca" />
<node id="15" label="Chhattisgarh" />
<node id="16" label="Dakar" />
<node id="17" label="Delaware" />
<node id="18" label="Florida" />
<node id="19" label="Gampaha" />
<node id="20" label="Gandaki" />
<node id="21" label="Guanajuato" />
<node id="22" label="Gujarat" />
<node id="23" label="Haryana" />
<node id="24" label="Helmand" />
<node id="25" label="Himachal Pradesh" />
<node id="26" label="Houaphan" />
<node id="27" label="Iowa" />
<node id="28" label="Iringa" />
<node id="29" label="Jambi" />
<node id="30" label="Jharkhand" />
<node id="31" label="Kaabong" />
<node id="32" label="Kalimantan" />
<node id="33" label="Kampala" />
<node id="34" label="Kandal" />
<node id="35" label="Karnali" />
<node id="36" label="Karnataka" />
<node id="37" label="Kasungu" />
<node id="38" label="Kerala" />
<node id="39" label="Khon Kaen" />
<node id="40" label="Kunduz" />
<node id="41" label="Kwazulu-Natal" />
<node id="42" label="Lima" />
<node id="43" label="Limpopo" />
<node id="44" label="Madhya Pradesh" />
<node id="45" label="Maharashtra" />
<node id="46" label="Maputo" />
<node id="47" label="Masvingo" />
<node id="48" label="Meghalaya" />
<node id="49" label="Mendoza" />
<node id="50" label="Missouri" />
<node id="51" label="Nabeul" />
<node id="52" label="Nagaland" />
<node id="53" label="Nebraska" />
<node id="54" label="New South Wales" />
<node id="55" label="New York" />
<node id="56" label="Odisha" />
<node id="57" label="Osh" />
<node id="58" label="Pando" />
<node id="59" label="Punjab" />
<node id="60" label="Queensland" />
<node id="61" label="Rajasthan" />
<node id="62" label="Rajshahi" />
<node id="63" label="Riau" />
<node id="64" label="Sabah" />
<node id="65" label="Sahel" />
<node id="66" label="Salyan" />
<node id="67" label="Sindh" />
<node id="68" label="South Australia" />
<node id="69" label="Sulawesi" />
<node id="70" label="Tamil Nadu" />
<node id="71" label="Telangana" />
<node id="72" label="Texas" />
<node id="73" label="Tigray" />
<node id="74" label="Turkana" />
<node id="75" label="Uttar Pradesh" />
<node id="76" label="Uttarakhand" />
<node id="77" label="Victoria" />
<node id="78" label="Washington" />
<node id="79" label="West Bengal" />
<node id="80" label="Western Cape" />
<node id="81" label="Yogyakarta" />
</isComposedBy>
</node>
Loading