Skip to content

Commit 23aca5e

Browse files
milanmajchrakclaude
andcommitted
Add the DSpace licence header to the CCMM test fixtures
license-maven-plugin checks src/** and fails the dspace-oai build without it. The check runs in the verify phase, so it only surfaced once the unit tests stopped failing first. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent e0be57c commit 23aca5e

11 files changed

Lines changed: 99 additions & 0 deletions

dspace-oai/src/test/resources/xoai-ccmm-academic-licence-test.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
The contents of this file are subject to the license and copyright
5+
detailed in the LICENSE and NOTICE files at the root of the source
6+
tree and available online at
7+
8+
http://www.dspace.org/license/
9+
10+
-->
211
<!--
312
An ACA (academic use) item. DSpace computed open.access from the bitstream policies, but the
413
download is gated behind the CLARIN identity form, so the feed must not call it open.

dspace-oai/src/test/resources/xoai-ccmm-approximate-date-test.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
The contents of this file are subject to the license and copyright
5+
detailed in the LICENSE and NOTICE files at the root of the source
6+
tree and available online at
7+
8+
http://www.dspace.org/license/
9+
10+
-->
211
<!--
312
XOAI metadata XML exercising the CLARIN-DSpace approximate-date convention:
413
dc.date.issued is the literal "0000" ("exact date unknown") and the real

dspace-oai/src/test/resources/xoai-ccmm-clarin-access-test.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
The contents of this file are subject to the license and copyright
5+
detailed in the LICENSE and NOTICE files at the root of the source
6+
tree and available online at
7+
8+
http://www.dspace.org/license/
9+
10+
-->
211
<!--
312
A CLARIN item whose real downloadability disagrees with others/access-status: the licence is
413
PUB and the file is fetched anonymously, while DefaultAccessStatusHelper called it restricted.

dspace-oai/src/test/resources/xoai-ccmm-date-shapes-test.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
The contents of this file are subject to the license and copyright
5+
detailed in the LICENSE and NOTICE files at the root of the source
6+
tree and available online at
7+
8+
http://www.dspace.org/license/
9+
10+
-->
211
<!--
312
Date shapes DSpace actually stores, plus two that no format string can parse. Every branch of
413
FormatDate has to produce a value xs:date accepts, or produce nothing at all.

dspace-oai/src/test/resources/xoai-ccmm-embargo-test.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
The contents of this file are subject to the license and copyright
5+
detailed in the LICENSE and NOTICE files at the root of the source
6+
tree and available online at
7+
8+
http://www.dspace.org/license/
9+
10+
-->
211
<!--
312
An embargoed item. No CLARIN licence category is present, so others/access-status decides
413
and has to reach the COAR embargo term rather than the restricted fallback.

dspace-oai/src/test/resources/xoai-ccmm-enumerated-date-test.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
The contents of this file are subject to the license and copyright
5+
detailed in the LICENSE and NOTICE files at the root of the source
6+
tree and available online at
7+
8+
http://www.dspace.org/license/
9+
10+
-->
211
<!--
312
"1920, 1932" enumerates two attested years; it is not a continuous range. The migrated
413
catalogue blob states the year the resource itself was created.

dspace-oai/src/test/resources/xoai-ccmm-minimal-test.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
The contents of this file are subject to the license and copyright
5+
detailed in the LICENSE and NOTICE files at the root of the source
6+
tree and available online at
7+
8+
http://www.dspace.org/license/
9+
10+
-->
211
<!--
312
Minimal XOAI metadata XML for CCMM crosswalk fallback testing.
413
Missing most DC fields to trigger fallback behavior for required CCMM elements:

dspace-oai/src/test/resources/xoai-ccmm-no-identifier-test.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
The contents of this file are subject to the license and copyright
5+
detailed in the LICENSE and NOTICE files at the root of the source
6+
tree and available online at
7+
8+
http://www.dspace.org/license/
9+
10+
-->
211
<!--
312
A record carrying no dc.identifier and no others/handle at all. identifier is 1..unbounded,
413
so the crosswalk still has to produce one.

dspace-oai/src/test/resources/xoai-ccmm-restricted-flag-test.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
The contents of this file are subject to the license and copyright
5+
detailed in the LICENSE and NOTICE files at the root of the source
6+
tree and available online at
7+
8+
http://www.dspace.org/license/
9+
10+
-->
211
<!--
312
A PUB-licensed item with files that nevertheless carries others/restrictedAccess, which
413
ItemUtils sets when a bitstream licence demands the identity form. The flag outranks the

dspace-oai/src/test/resources/xoai-ccmm-stock-dspace-test.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
The contents of this file are subject to the license and copyright
5+
detailed in the LICENSE and NOTICE files at the root of the source
6+
tree and available online at
7+
8+
http://www.dspace.org/license/
9+
10+
-->
211
<!--
312
A stock DSpace item: ISO 639-1 language with a region subtag, a type from the default
413
submission list, no repository URL, and no access-status plugin. None of the CLARIN-specific

0 commit comments

Comments
 (0)