citatons and bibliography: preserving field codes when copying text and pasting in Fidus Writer
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Chrome. It worked when I reloaded the browser.
> you can quickly see the type under "Example Citations" at the top right and you can see all metadata for all those items in the Search by Example area on the left.
Right, but how do I get the type output into the inline citation? This looks like it should work, but a bit cumbersome.
<choose>
<if type="article" match="any">
<text value="type: article"/>
</if>
<else-if type="article-journal" match="any">
<text value="type: article-journal"/>
</else-if>
<else-if type="article-magazine" match="any">
<text value="type: article-magazine"/>
</else-if>
...
</choose>
<text variable=“type”/>
. But as others have said in this thread, CSL styles are more intended for lossless data transfer, so you will not be able to achieve smooth transfer of data from any CSL style to a raw data format.Interesting. I could not find this in the documentation or the editor.
> But as others have said in this thread, CSL styles are more intended for lossless data transfer, so you will not be able to achieve smooth transfer of data from any CSL style to a raw data format.
Right, not 100% perfect, but there isn't really an alternative either for handling paste. The only thing we can really do is pick a delimiter that is sufficiently odd so that it does not appear in the text naturally, and then hope for the best. In most cases it should work.
<text variable=“type”/>
is not a valid code but it works. But do not remember, that some Zotero types are mapped to the different CSL types - see https://aurimasv.github.io/z2csl/typeMap.xmlcode by @johanneswilm looks better for me