-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add integration test for re-import of process metadata
- Loading branch information
Showing
9 changed files
with
168 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
Kitodo/src/test/resources/importRecords/reimportMetadata.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
* (c) Kitodo. Key to digital objects e. V. <[email protected]> | ||
* | ||
* This file is part of the Kitodo project. | ||
* | ||
* It is licensed under GNU General Public License version 3 or later. | ||
* | ||
* For the full copyright and license information, please read the | ||
* GPL3-License.txt file that was distributed with this source code. | ||
--> | ||
<srw:searchRetrieveResponse xmlns:srw="http://www.loc.gov/zing/srw/"> | ||
<srw:version>1.2</srw:version> | ||
<srw:numberOfRecords>1</srw:numberOfRecords> | ||
<srw:records> | ||
<srw:record> | ||
<srw:recordSchema>mods</srw:recordSchema> | ||
<srw:recordPacking>xml</srw:recordPacking> | ||
<srw:recordData> | ||
<mods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="http://www.loc.gov/mods/v3" | ||
version="3.4" | ||
xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd"> | ||
<identifier type="uri">http://www.test.id</identifier> | ||
<recordInfo> | ||
<recordIdentifier source="1">789</recordIdentifier> | ||
<recordCreationDate encoding="marc">2020-11-09</recordCreationDate> | ||
<recordChangeDate encoding="iso8601">2020-11-09</recordChangeDate> | ||
</recordInfo> | ||
<originInfo eventType="publication"> | ||
<publisher>Test Publisher</publisher> | ||
</originInfo> | ||
</mods> | ||
</srw:recordData> | ||
</srw:record> | ||
</srw:records> | ||
</srw:searchRetrieveResponse> |
33 changes: 33 additions & 0 deletions
33
Kitodo/src/test/resources/metadata/metadataFiles/testmetaReimport.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
* (c) Kitodo. Key to digital objects e. V. <[email protected]> | ||
* | ||
* This file is part of the Kitodo project. | ||
* | ||
* It is licensed under GNU General Public License version 3 or later. | ||
* | ||
* For the full copyright and license information, please read the | ||
* GPL3-License.txt file that was distributed with this source code. | ||
--> | ||
<mets:mets xmlns:mets="http://www.loc.gov/METS/"> | ||
<mets:dmdSec ID="DMDLOG_0000"> | ||
<mets:mdWrap MDTYPE="OTHER" OTHERMDTYPE="KITODO"> | ||
<mets:xmlData> | ||
<kitodo:kitodo xmlns:kitodo="http://meta.kitodo.org/v1/" version="1.0"> | ||
<kitodo:metadata name="PublisherName">Test Publisher</kitodo:metadata> | ||
<kitodo:metadata name="document_type">Monograph</kitodo:metadata> | ||
<kitodo:metadata name="PublicationStart">2019</kitodo:metadata> | ||
<kitodo:metadata name="CatalogIDDigital">789</kitodo:metadata> | ||
</kitodo:kitodo> | ||
</mets:xmlData> | ||
</mets:mdWrap> | ||
</mets:dmdSec> | ||
<mets:fileSec/> | ||
<mets:structMap TYPE="LOGICAL"> | ||
<mets:div DMDID="DMDLOG_0000" ID="LOG_0000" TYPE="Monograph"/> | ||
</mets:structMap> | ||
<mets:structMap TYPE="PHYSICAL"> | ||
<mets:div DMDID="DMDPHYS_0000" ID="PHYS_0000" TYPE="physSequence"/> | ||
</mets:structMap> | ||
<mets:structLink/> | ||
</mets:mets> |