hcts-hra / ziziphus

10 stars 2 forks source link

attributes inherited to all other entries #363

Closed SimonGruening closed 8 years ago

SimonGruening commented 8 years ago

It seems as if, when you enter an extent to the very first entry in a set, this extent is inherited to all following / newly added entries of that set. When you enter a new extent, the previous one is overwritten.

image

Another example: in XML

<materialSet dataDate="2015-11-18T15:28:45.662+01:00">
        <display dataDate="2015-11-18T14:27:31.694+01:00"/>
        <notes dataDate="2015-11-18T14:27:31.694+01:00"/>
        <material dataDate="2015-11-18T15:28:45.662+01:00" extent="anderer extent" pref="false" refid="300162391" type="medium" vocab="aat" source="http://cco.vrafoundation.org/index.php/toolkit/index_of_examples/category_examples_2_decorative_arts_and_utilitarian_objects/example_107_chair_related_works">cloth</material>
        <material dataDate="2015-11-18T15:28:45.662+01:00" extent="anderer extent" pref="false" refid="300343775" source="http://cco.vrafoundation.org/index.php/toolkit/index_of_examples/category_examples_2_decorative_arts_and_utilitarian_objects/example_107_chair_related_works" type="medium" vocab="aat">white pine</material>
        <material dataDate="2015-11-18T15:28:45.662+01:00" pref="false" refid="300011973" source="http://cco.vrafoundation.org/index.php/toolkit/index_of_examples/category_examples_2_decorative_arts_and_utilitarian_objects/example_107_chair_related_works" type="medium" vocab="aat" extent="test">birch</material>
        <material dataDate="2015-11-18T15:28:45.662+01:00" extent="test" pref="false" refid="300164025" source="http://cco.vrafoundation.org/index.php/toolkit/index_of_examples/category_examples_2_decorative_arts_and_utilitarian_objects/example_107_chair_related_works" type="medium" vocab="aat">ash</material>
        <material dataDate="2015-11-18T15:28:45.662+01:00" extent="test" pref="false" refid="300012055" source="http://cco.vrafoundation.org/index.php/toolkit/index_of_examples/category_examples_2_decorative_arts_and_utilitarian_objects/example_107_chair_related_works" type="medium" vocab="aat">ebony</material>
        <material dataDate="2015-11-18T15:21:48.284+01:00" extent="test" pref="false" refid="300012221" source="http://cco.vrafoundation.org/index.php/toolkit/index_of_examples/category_examples_2_decorative_arts_and_utilitarian_objects/example_107_chair_related_works" type="medium" vocab="aat">mahogany</material>
</materialSet>

image

in Ziziphus image

Same thing is happening to source - compare XML vs. Ziziphus.

SimonGruening commented 8 years ago

Looks like this needs to be tested for every set separately. I had no problems with the MeasurementsSet, but it's an issue for the SourceSet as well, though this is not a controlled vocabulary set - which was what I first suspected to be an issue.

MeasurementsSet image

SourceSet image

Though I figured for the SourceSet, that when I delete the extent - I did so for the very first entry - and add a new source after that and only then save the changes - then the attribute (here "extent") is deleted correctly.

zwobit commented 8 years ago

Cannot reproduce with ppcol. :(

MatthiasArnold commented 8 years ago

@SimonGruening please verify in current version

SimonGruening commented 8 years ago

Scheint behoben zu sein.