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

MCR-3198 add additional test cases #2295

Open
wants to merge 1 commit into
base: issues/MCR-3198-EventHandler-for-merging-duplicate-categories
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,157 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<mycoreclass xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="MCRClassification.xsd" ID="mir_genres">
<label xml:lang="en" text="genre" description="A list of publication types" />
<label xml:lang="x-uri" text="http://www.mycore.org/classifications/mir_genres" />
<label xml:lang="de" text="Genre" description="Liste der Publikationsarten" />
<mycoreclass ID="mir_genres" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="MCRClassification.xsd">
<label xml:lang="x-uri" text="http://www.mycore.org/classifications/mir_genres"/>
<categories>
<category ID="article" counter="1">
<label xml:lang="en" text="Article / Chapter" />
<label xml:lang="x-mapping" text="diniPublType:article" />
<label xml:lang="de" text="Artikel / Aufsatz" />
<label xml:lang="x-hosts" text="journal newspaper collection festschrift proceedings standalone" />
<category ID="chapter" counter="0">
<label xml:lang="en" text="Book chapter" />
<label xml:lang="de" text="Buchkapitel" />
<label xml:lang="x-hosts" text="book collection" />
<category ID="subchapter" counter="0">
<label xml:lang="en" text="Book subchapter" />
<label xml:lang="de" text="Buchunterkapitel" />
<label xml:lang="x-hosts" text="book collection" />
</category>
<category ID="x">
<category ID="x-1">
<category ID="x-1-1"/>
</category>
<category ID="entry" counter="0">
<label xml:lang="en" text="Encyclopedia entry" />
<label xml:lang="x-hosts" text="lexicon" />
<label xml:lang="de" text="Lexikoneintrag" />
</category>
<category ID="preface" counter="0">
<label xml:lang="de" text="Vorwort / Nachwort" />
<label xml:lang="x-hosts" text="journal collection festschrift proceedings lexicon" />
<label xml:lang="en" text="Preface (foreword) / Postface" />
</category>
<category ID="speech" counter="0">
<label xml:lang="en" text="Lecture / Speech" />
<label xml:lang="de" text="Vortrag" />
<label xml:lang="x-hosts" text="proceedings standalone" />
</category>
<category ID="review" counter="0">
<label xml:lang="de" text="Rezension" />
<label xml:lang="en" text="Review" />
<label xml:lang="x-hosts" text="journal newspaper collection festschrift proceedings standalone" />
</category>
</category>
<category ID="thesis" counter="2">
<label xml:lang="en" text="Thesis" />
<label xml:lang="de" text="Hochschulschriften" />
<label xml:lang="x-hosts" text="series standalone" />
<label xml:lang="x-editor" text="false" />
<category ID="exam" counter="0">
<label xml:lang="de" text="Examensarbeit" />
<label xml:lang="en" text="Exam" />
<label xml:lang="x-hosts" text="series standalone" />
</category>
<category ID="dissertation" counter="0">
<label xml:lang="de" text="Dissertation" />
<label xml:lang="x-hosts" text="series standalone" />
<label xml:lang="en" text="Dissertation" />
</category>
<category ID="habilitation" counter="0">
<label xml:lang="de" text="Habilitation" />
<label xml:lang="x-hosts" text="series standalone" />
<label xml:lang="en" text="Habilitation" />
</category>
<category ID="diploma_thesis" counter="0">
<label xml:lang="x-hosts" text="series standalone" />
<label xml:lang="en" text="Diploma thesis" />
<label xml:lang="de" text="Diplomarbeit" />
</category>
<category ID="master_thesis" counter="0">
<label xml:lang="x-mapping" text="diniPublType:masterThesis" />
<label xml:lang="en" text="Master thesis" />
<label xml:lang="de" text="Abschlussarbeit (Master)" />
<label xml:lang="x-hosts" text="series standalone" />
</category>
<category ID="bachelor_thesis" counter="2">
<label xml:lang="x-mapping" text="diniPublType:StudyThesis" />
<label xml:lang="de" text="Abschlussarbeit (Bachelor)" />
<label xml:lang="en" text="Bachelor thesis" />
<label xml:lang="x-hosts" text="series standalone" />
</category>
<category ID="student_resarch_project" counter="0">
<label xml:lang="en" text="Student research project" />
<label xml:lang="x-hosts" text="series standalone" />
<label xml:lang="de" text="Studienarbeit" />
</category>
<category ID="magister_thesis" counter="0">
<label xml:lang="en" text="Magister thesis" />
<label xml:lang="de" text="Magisterarbeit" />
<label xml:lang="x-hosts" text="series standalone" />
</category>
</category>
<category ID="collection" counter="0">
<label xml:lang="de" text="Sammelwerk" />
<label xml:lang="x-hosts" text="series standalone" />
<label xml:lang="en" text="Collection" />
<category ID="festschrift" counter="0">
<label xml:lang="en" text="Festschrift" />
<label xml:lang="x-hosts" text="series standalone" />
<label xml:lang="de" text="Festschrift" />
</category>
<category ID="proceedings" counter="0">
<label xml:lang="en" text="Proceedings" />
<label xml:lang="de" text="Tagungsband" />
<label xml:lang="x-hosts" text="series standalone" />
</category>
<category ID="lexicon" counter="0">
<label xml:lang="x-hosts" text="series standalone" />
<label xml:lang="en" text="Lexicon" />
<label xml:lang="de" text="Lexikon" />
</category>
</category>
<category ID="report" counter="0">
<label xml:lang="x-hosts" text="standalone" />
<label xml:lang="de" text="Report" />
<label xml:lang="en" text="Report" />
<category ID="research_results" counter="0">
<label xml:lang="x-hosts" text="standalone" />
<label xml:lang="en" text="Research Results" />
<label xml:lang="de" text="Forschungsergebnisse" />
</category>
<category ID="in_house" counter="0">
<label xml:lang="x-hosts" text="standalone" />
<label xml:lang="en" text="In house" />
<label xml:lang="de" text="Hausinterne Veröffentlichung" />
</category>
<category ID="press_release" counter="0">
<label xml:lang="x-hosts" text="standalone" />
<label xml:lang="de" text="Presseerklärung" />
<label xml:lang="en" text="Press release" />
</category>
<category ID="declaration" counter="0">
<label xml:lang="x-hosts" text="standalone" />
<label xml:lang="de" text="Fachliche Stellungnahme" />
<label xml:lang="en" text="Professional declaration" />
</category>
</category>
<category ID="teaching_material" counter="0">
<label xml:lang="de" text="Lehrmaterial" />
<label xml:lang="x-hosts" text="standalone lecture" />
<label xml:lang="en" text="Teaching Resource" />
<category ID="lecture_resource" counter="0">
<label xml:lang="x-hosts" text="standalone lecture" />
<label xml:lang="de" text="Vorlesungsmaterial" />
<label xml:lang="en" text="Lecture Resource" />
</category>
<category ID="course_resources" counter="0">
<label xml:lang="x-hosts" text="standalone lecture" />
<label xml:lang="de" text="Kurs- und Seminarmaterial" />
<label xml:lang="en" text="Course Resources" />
</category>
</category>
<category ID="book" counter="0">
<label xml:lang="de" text="Buch" />
<label xml:lang="x-hosts" text="series standalone" />
<label xml:lang="en" text="Book" />
</category>
<category ID="y"/>
<category ID="z"/>
</categories>
</mycoreclass>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<mycoreclass ID="marcrelator" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="MCRClassification.xsd">
<label xml:lang="x-uri" text="http://www.mycore.org/classifications/marcrelator"/>
<label xml:lang="x-auth" text="marcrelator"/>
<categories>
<category ID="x">
<category ID="x-1">
<category ID="x-1-1"/>
</category>
</category>
<category ID="y"/>
<category ID="z"/>
</categories>
</mycoreclass>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<mycoreclass ID="mir_licenses" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="MCRClassification.xsd">
<label xml:lang="x-uri" text="http://www.mycore.org/classifications/mir_licenses"/>
<categories>
<category ID="x">
<category ID="x-1">
<category ID="x-1-1"/>
</category>
</category>
<category ID="y"/>
<category ID="z"/>
</categories>
</mycoreclass>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<mods:mods xmlns:mods="http://www.loc.gov/mods/v3" xmlns:xlink="http://www.w3.org/1999/xlink">
<mods:accessCondition type="foo" xlink:type="simple">x</mods:accessCondition>
<mods:accessCondition type="bar" xlink:type="simple">x-1</mods:accessCondition>
<mods:accessCondition type="baz" xlink:type="simple">x-1-1</mods:accessCondition>
<mods:accessCondition type="foo" xlink:type="simple">y</mods:accessCondition>
</mods:mods>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<mods:mods xmlns:mods="http://www.loc.gov/mods/v3" xmlns:xlink="http://www.w3.org/1999/xlink">
<mods:accessCondition type="foo" xlink:type="simple">x</mods:accessCondition>
<mods:accessCondition type="foo" xlink:type="simple">x-1</mods:accessCondition>
<mods:accessCondition type="foo" xlink:type="simple">x-1-1</mods:accessCondition>
<mods:accessCondition type="foo" xlink:type="simple">y</mods:accessCondition>
</mods:mods>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<mods:mods xmlns:mods="http://www.loc.gov/mods/v3">
<mods:classification displayLabel="foo" authority="sdnb">x</mods:classification>
<mods:classification displayLabel="foo" authority="sdnb2">x-1</mods:classification>
<mods:classification displayLabel="foo" authority="sdnb3">x-1-1</mods:classification>
<mods:classification displayLabel="foo" authority="sdnb">y</mods:classification>
</mods:mods>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<mods:mods xmlns:mods="http://www.loc.gov/mods/v3">
<mods:classification displayLabel="foo" authority="sdnb">x</mods:classification>
<mods:classification displayLabel="bar" authority="sdnb">x-1</mods:classification>
<mods:classification displayLabel="baz" authority="sdnb">x-1-1</mods:classification>
<mods:classification displayLabel="foo" authority="sdnb">y</mods:classification>
</mods:mods>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<mods:mods xmlns:mods="http://www.loc.gov/mods/v3">
<mods:classification displayLabel="foo" authority="sdnb">x</mods:classification>
<mods:classification displayLabel="foo" authority="sdnb">x-1</mods:classification>
<mods:classification displayLabel="foo" authority="sdnb">x-1-1</mods:classification>
<mods:classification displayLabel="foo" authority="sdnb">y</mods:classification>
</mods:mods>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<mods:mods xmlns:mods="http://www.loc.gov/mods/v3">
<mods:genre type="intern" authorityURI="http://www.mycore.org/classifications/mir_genres" valueURI="http://www.mycore.org/classifications/mir_genres#x"/>
<mods:genre type="intern" authorityURI="http://www.mycore.org/classifications/mir_genres" valueURI="http://www.mycore.org/classifications/mir_genres#x-1"/>
<mods:genre type="intern" authorityURI="http://www.mycore.org/classifications/mir_genres" valueURI="http://www.mycore.org/classifications/mir_genres#x-1-1"/>
<mods:genre type="intern" authorityURI="http://www.mycore.org/classifications/mir_genres" valueURI="http://www.mycore.org/classifications/mir_genres#y"/>
</mods:mods>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<mods:mods xmlns:mods="http://www.loc.gov/mods/v3">
<mods:genre type="intern" authorityURI="http://www.mycore.org/classifications/mir_genres" valueURI="http://www.mycore.org/classifications/mir_genres#y"/>
<mods:genre type="intern" authorityURI="http://www.mycore.org/classifications/mir_genres" valueURI="http://www.mycore.org/classifications/mir_genres#x-1-1"/>
<mods:genre type="intern" authorityURI="http://www.mycore.org/classifications/mir_genres" valueURI="http://www.mycore.org/classifications/mir_genres#x-1"/>
<mods:genre type="intern" authorityURI="http://www.mycore.org/classifications/mir_genres" valueURI="http://www.mycore.org/classifications/mir_genres#x"/>
</mods:mods>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<mods:mods xmlns:mods="http://www.loc.gov/mods/v3" xmlns:xlink="http://www.w3.org/1999/xlink">
<mods:relatedItem type="series" xlink:href="host">
<mods:genre type="intern" authorityURI="http://www.mycore.org/classifications/mir_genres" valueURI="http://www.mycore.org/classifications/mir_genres#x"/>
<mods:genre type="intern" authorityURI="http://www.mycore.org/classifications/mir_genres" valueURI="http://www.mycore.org/classifications/mir_genres#x-1"/>
<mods:genre type="intern" authorityURI="http://www.mycore.org/classifications/mir_genres" valueURI="http://www.mycore.org/classifications/mir_genres#x-1-1"/>
<mods:genre type="intern" authorityURI="http://www.mycore.org/classifications/mir_genres" valueURI="http://www.mycore.org/classifications/mir_genres#y"/>
</mods:relatedItem>
</mods:mods>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<mods:mods xmlns:mods="http://www.loc.gov/mods/v3">
<mods:language>
<mods:languageTerm authority="rfc5646" type="code">x</mods:languageTerm>
</mods:language>
<mods:language>
<mods:languageTerm authority="rfc5646" type="code">x-1</mods:languageTerm>
</mods:language>
<mods:language>
<mods:languageTerm authority="rfc5646" type="code">x-1-1</mods:languageTerm>
</mods:language>
<mods:language>
<mods:languageTerm authority="rfc5646" type="code">y</mods:languageTerm>
</mods:language>
</mods:mods>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<mods:mods xmlns:mods="http://www.loc.gov/mods/v3" xmlns:xlink="http://www.w3.org/1999/xlink">
<mods:relatedItem type="series" xlink:href="host">
<mods:language>
<mods:languageTerm authority="rfc5646" type="code">x</mods:languageTerm>
<mods:languageTerm authority="rfc5646" type="code">x-1</mods:languageTerm>
<mods:languageTerm authority="rfc5646" type="code">x-1-1</mods:languageTerm>
<mods:languageTerm authority="rfc5646" type="code">y</mods:languageTerm>
</mods:language>
</mods:relatedItem>
</mods:mods>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<mods:mods xmlns:mods="http://www.loc.gov/mods/v3">
<mods:language>
<mods:languageTerm authority="rfc5646" type="code">x</mods:languageTerm>
<mods:languageTerm authority="rfc5646" type="code">x-1</mods:languageTerm>
<mods:languageTerm authority="rfc5646" type="code">x-1-1</mods:languageTerm>
<mods:languageTerm authority="rfc5646" type="code">y</mods:languageTerm>
</mods:language>
</mods:mods>
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<mods:mods xmlns:mods="http://www.loc.gov/mods/v3" xmlns:xlink="http://www.w3.org/1999/xlink">
<mods:name type="personal" xlink:type="simple">
<mods:role>
<mods:roleTerm authority="marcrelator" type="code">x</mods:roleTerm>
</mods:role>
<mods:displayForm>foo</mods:displayForm>
</mods:name>
<mods:name type="personal" xlink:type="simple">
<mods:role>
<mods:roleTerm authority="marcrelator" type="code">x-1</mods:roleTerm>
</mods:role>
<mods:displayForm>bar</mods:displayForm>
</mods:name>
<mods:name type="personal" xlink:type="simple">
<mods:role>
<mods:roleTerm authority="marcrelator" type="code">x-1-1</mods:roleTerm>
</mods:role>
<mods:displayForm>baz</mods:displayForm>
</mods:name>
<mods:name type="personal" xlink:type="simple">
<mods:role>
<mods:roleTerm authority="marcrelator" type="code">y</mods:roleTerm>
</mods:role>
<mods:displayForm>foo</mods:displayForm>
</mods:name>
</mods:mods>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<mods:mods xmlns:mods="http://www.loc.gov/mods/v3" xmlns:xlink="http://www.w3.org/1999/xlink">
<mods:name type="personal" xlink:type="simple">
<mods:role>
<mods:roleTerm authority="marcrelator" type="code">x</mods:roleTerm>
</mods:role>
<mods:role>
<mods:roleTerm authority="marcrelator" type="code">x-1</mods:roleTerm>
</mods:role>
<mods:role>
<mods:roleTerm authority="marcrelator" type="code">x-1-1</mods:roleTerm>
</mods:role>
<mods:role>
<mods:roleTerm authority="marcrelator" type="code">y</mods:roleTerm>
</mods:role>
<mods:displayForm>foo</mods:displayForm>
</mods:name>
</mods:mods>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<mods:mods xmlns:mods="http://www.loc.gov/mods/v3" xmlns:xlink="http://www.w3.org/1999/xlink">
<mods:name type="personal" xlink:type="simple">
<mods:role>
<mods:roleTerm authority="marcrelator" type="code">x</mods:roleTerm>
<mods:roleTerm authority="marcrelator" type="code">x-1</mods:roleTerm>
<mods:roleTerm authority="marcrelator" type="code">x-1-1</mods:roleTerm>
<mods:roleTerm authority="marcrelator" type="code">y</mods:roleTerm>
</mods:role>
<mods:displayForm>foo</mods:displayForm>
</mods:name>
</mods:mods>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<mods:mods xmlns:mods="http://www.loc.gov/mods/v3">
<mods:typeOfResource>x</mods:typeOfResource>
<mods:typeOfResource>x-1</mods:typeOfResource>
<mods:typeOfResource>x-1-1</mods:typeOfResource>
<mods:typeOfResource>y</mods:typeOfResource>
</mods:mods>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<mycoreclass ID="rfc5646" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="MCRClassification.xsd">
<label xml:lang="x-auth" text="rfc5646"/>
<categories>
<category ID="x">
<category ID="x-1">
<category ID="x-1-1"/>
</category>
</category>
<category ID="y"/>
<category ID="z"/>
</categories>
</mycoreclass>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<mycoreclass ID="SDNB" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="MCRClassification.xsd">
<label xml:lang="x-auth" text="sdnb"/>
<label xml:lang="x-uri" text="http://www.mycore.org/classifications/SDNB"/>
<categories>
<category ID="x">
<category ID="x-1">
<category ID="x-1-1"/>
</category>
</category>
<category ID="y"/>
<category ID="z"/>
</categories>
</mycoreclass>
Loading
Loading