feature request #6834
openfeature request #4719: [MASTER] Implement IntextReference
[DISCUSS] add inner text to Intextreference or other ideas for easier handling of intextReferences in TaxEditor
Added by Katja Luther almost 7 years ago. Updated over 6 years ago.
0%
Description
In taxeditor the convertion of the cdm markup of an intextreference is performed quite often, therefore maybe it is reasonable to store also the innertext in Intextreference to have the possibility to create the whole html or cdm markup text.
I will add some information tomorrow.
Related issues
Updated by Katja Luther over 6 years ago
We also need to discuss how we want to handle references cited more than once in a text. Do we have an intextReference object for all occurences or only one and how can we delete one of these citations and how we can delete all occurences or do we do not allow to delete all occurrences at once?
Updated by Andreas Müller over 6 years ago
Katja Luther wrote:
We also need to discuss how we want to handle references cited more than once in a text. Do we have an intextReference object for all occurences or only one and how can we delete one of these citations and how we can delete all occurences or do we do not allow to delete all occurrences at once?
As you can see in the model LanguageString can have more than 1 IntextReference. Each IntextReference links to exactly one external resource, may it be a reference, a name, a taxon, a key, a media, ...
By the way writing this I realize that maybe we should better link to an OriginalSource instead of a pure reference. This needs to be discussed: Copied to #6916
Updated by Andreas Müller over 6 years ago
- Copied to feature request #6916: Link IntextReference to OriginalSource, not Reference added
Updated by Katja Luther over 6 years ago
Andreas Müller wrote:
Katja Luther wrote:
We also need to discuss how we want to handle references cited more than once in a text. Do we have an intextReference object for all occurences or only one and how can we delete one of these citations and how we can delete all occurences or do we do not allow to delete all occurrences at once?
As you can see in the model LanguageString can have more than 1 IntextReference. Each IntextReference links to exactly one external resource, may it be a reference, a name, a taxon, a key, a media, ...
By the way writing this I realize that maybe we should better link to an OriginalSource instead of a pure reference. This needs to be discussed: Copied to #6916
This is already implemented, but sometimes there is one reference cited more than once in a text, maybe this is not very often in our case but we should be able to handle it.
Updated by Andreas Müller over 6 years ago
Katja Luther wrote:
Andreas Müller wrote:
Katja Luther wrote:
We also need to discuss how we want to handle references cited more than once in a text. Do we have an intextReference object for all occurences or only one and how can we delete one of these citations and how we can delete all occurences or do we do not allow to delete all occurrences at once?
As you can see in the model LanguageString can have more than 1 IntextReference. Each IntextReference links to exactly one external resource, may it be a reference, a name, a taxon, a key, a media, ...
By the way writing this I realize that maybe we should better link to an OriginalSource instead of a pure reference. This needs to be discussed: Copied to #6916This is already implemented, but sometimes there is one reference cited more than once in a text, maybe this is not very often in our case but we should be able to handle it.
Each IntextReference reference 1 CDM object. If this is the same object for 2 different IntextReference they are handled separately. It is a task for the output software to deduplicate them if required, the IntextReference itself can't be deduplicated as it is not a duplicate (at different places).
More difficult is it to use 2 citations for the same text part. This is difficult to handle in XML as no overlapping of tags is allowed in XML as the tags have no identifier. Same if name appears e.g. in the title of a reference.
Updated by Andreas Müller over 6 years ago
Is the original task of this ticket still an issue. I think I send an answer once. I am not sure that we really need the text to be stored. If still an issue please add more information why it is required.
Updated by Katja Luther over 6 years ago
this was the email discussion:
Nachtrag: aber ich bin da auch nicht grundsätzlich abgeneigt. Und wenn es nur zum Debuggen ist, macht es ja manchmal Sinn solche Informationen zu haben. Nur muss man alles was man speichert auch synchron halten und daher bin ich vorsichtig, da mehr reinzustecken, als notwendig.
AM
Von: Müller, Andreas
Gesendet: Dienstag, 18. Juli 2017 14:17
An: Luther, Katja
Betreff: AW: IntextReference Klasse
Hallo Katja,
du kannst da gerne mal ein Modelticket als DISCUSS für aufmachen, dann können wir die Diskussion dort speichern.
Bislang ist mir das noch nicht ganz klar, warum es sinnvoll wäre. Eigentlich sollte es Text unabhängig sein. Insbesondere muss man beachten, dass der gleiche Text ja an mehreren Stellen stehen kann. Man kann sich also auf die Suche nicht verlassen, bei der Bestimmung der Stelle.
Vielleicht kannst du mir ja mal deinen Code zeigen.
Wäre gut, wenn du ihn in einen Branch schieben kannst. Macht ja bei einer so großen OP sowieso Sinn, dann ist die Gefahr nicht so groß versehentlich falsche Dinge zu committen oder zu vergessen.
Viele Grüße,
Andreas M.
Von: Luther, Katja
Gesendet: Dienstag, 18. Juli 2017 13:33
An: Müller, Andreas
Betreff: IntextReference Klasse
Hallo Andreas,
für die Konvertierung von cdm Markup zu html und zurück wäre es einfacher, wenn man den innerText von dem Markup auch in der IntextReferenz speichern würde. Da das dann eine Modelländerung ist, wollte ich fragen, ob das für dich ok wäre.
Dann könnte man nämlich den Text, nachdem man sucht recht leicht anhand des IntextReferenz Objektes erzeugen.
Alternativ geht es auch über einen regulären Ausdruck… das habe ich jetzt von mark up zu html implementiert.
Viele Grüße,
Katja
Updated by Katja Luther over 6 years ago
Andreas Müller wrote:
More difficult is it to use 2 citations for the same text part. This is difficult to handle in XML as no overlapping of tags is allowed in XML as the tags have no identifier. Same if name appears e.g. in the title of a reference.
what do you mean with two citations for the same text part something like this "this is a text with two citations (Müller 2017, Luther 2017)", I think this should not be a problem or that "Müller 2017" should point to two citations? Is this possible?