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

Annotate Differences from Versions #13

Open
dizzzz opened this issue Mar 5, 2018 · 0 comments
Open

Annotate Differences from Versions #13

dizzzz opened this issue Mar 5, 2018 · 0 comments
Labels

Comments

@dizzzz
Copy link
Member

dizzzz commented Mar 5, 2018

copied from eXist-db/exist#626 // @StephanMa


Java Version 1.6.0_35
eXist-db Version 2.0
Ubuntu 15.04 x64

also testet with
Java Version 1.8.0_40
eXist-db Version 2.2
Ubuntu 15.04 x64

There are two bugs inside the version:annotate function:

Document Origin

<cei:diplomaticAnalysis>
                        <cei:listBiblEdition>
                            <cei:bibl>Wichner I, 8 </cei:bibl>
                            <cei:bibl>StUB I, 96 </cei:bibl>
                            <cei:bibl>GP I/1, S. 90 (Regest)</cei:bibl>
                        </cei:listBiblEdition>
                    </cei:diplomaticAnalysis>

Document Modified

<cei:diplomaticAnalysis>
                        <cei:listBibl>
                            <cei:bibl/>
                        </cei:listBibl>
                        <cei:listBiblEdition>
                            <cei:bibl/>
                        </cei:listBiblEdition>
                        <cei:listBiblRegest>
                            <cei:bibl/>
                        </cei:listBiblRegest>
                        <cei:listBiblFaksimile>
                            <cei:bibl/>
                        </cei:listBiblFaksimile>
                        <cei:listBiblErw>
                            <cei:bibl/>
                        </cei:listBiblErw>
                    </cei:diplomaticAnalysis>

The version:diff shows the Information about the deleted and added Entries.

<v:delete XXX:ref="1.7.2.3.2.5.1.1.1" XXX:name="" XXX:parent="cei:bibl"/>
<v:delete XXX:ref="1.7.2.3.2.5.1.2.1" XXX:name="" XXX:parent="cei:bibl"/>
<v:delete XXX:ref="1.7.2.3.2.5.1.3.1" XXX:name="" XXX:parent="cei:bibl"/>
...
<v:insert XXX:ref="1.7.2.3.2.5.1" XXX:name="cei:listBiblEdition" XXX:parent="cei:diplomaticAnalysis">
<cei:listBibl xmlns:cei="http://www.monasterium.net/NS/cei">
<cei:bibl/>
</cei:listBibl>
</v:insert>
<v:insert XXX:ref="1.7.2.3.2.5.1.2" XXX:name="cei:bibl" XXX:parent="cei:listBiblEdition">
<v:end XXX:namespace="http://www.monasterium.net/NS/cei" XXX:name="cei:listBiblEdition"/>
<v:start XXX:namespace="http://www.monasterium.net/NS/cei" XXX:name="cei:listBiblRegest"/>
</v:insert>
<v:insert XXX:ref="1.7.2.3.2.5.1.3" XXX:name="cei:bibl" XXX:parent="cei:listBiblEdition">
<v:end XXX:namespace="http://www.monasterium.net/NS/cei" XXX:name="cei:listBiblRegest"/>
<v:start XXX:namespace="http://www.monasterium.net/NS/cei" XXX:name="cei:listBiblFaksimile"/>
</v:insert>

But when i want to have an Annotation of the Origin file, i get

<cei:diplomaticAnalysis v:change="changed">
<cei:listBibl v:change="added">
<cei:bibl/>
</cei:listBibl>
<cei:listBiblEdition v:change="changed">
<cei:bibl v:change="changed">
<v:wrapper v:change="deleted">Wichner I, 8 </v:wrapper>
</cei:bibl>
</cei:listBiblEdition>
<cei:listBiblRegest v:change="tag-added">
<cei:bibl v:change="changed">
<v:wrapper v:change="deleted">StUB I, 96 </v:wrapper>
</cei:bibl>
</cei:listBiblRegest>
<cei:listBiblFaksimile v:change="tag-added">
<cei:bibl v:change="changed">
<v:wrapper v:change="deleted">GP I/1, S. 90 (Regest)</v:wrapper>
</cei:bibl>
</cei:listBiblFaksimile>
</cei:diplomaticAnalysis>

The Deletion of the bibl-Elements are linked to different Parent-Nodes.

Document Origin

                    <cei:issued>
                        <cei:placeName>Lateran</cei:placeName>
                        <cei:date value="11041025">11041025</cei:date>
                    </cei:issued>

Document Modified

                    <cei:issued>
                        <cei:placeName>Tokyo</cei:placeName>
                        <cei:date value="19830205">19830205</cei:date>
                        <cei:dateRange from="99999999" to="99999999">21.01.1234</cei:dateRange>
                    </cei:issued>

Diff

<v:delete XXX:ref="1.7.2.3.2.2.2.2" XXX:name="" XXX:parent="cei:date"/>
...
<v:insert XXX:ref="1.7.2.3.2.2.2.1" XXX:name="value" XXX:parent="cei:date">
<v:attribute XXX:value="19830205"/>
19830205</v:insert>

Annotation

<cei:date v:change="changed" value="19830205">
<v:wrapper v:change="deleted">11041025</v:wrapper>
</cei:date>

For me, there should be another wrapper-entry with the attribute "added" and the correct value.

Thank you and have a nice day
Stephan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant