If you are preparing a digital resource and want it to be properly cited, you may want to make it easy for readers to save your page directly to their reference management of choice, e.g. Zotero. One way to do that is to integrate COinS metadata in the HTML code (Bleier 2021).
For the grammateus project, we wanted to make our pages easily saved, to encourage people to cite the content properly. But easier said than done! The COinS website is not accessible anymore, and it is not obvious which field to use for which piece of metadata, in particular the type and the DOI which I needed to include.
After digging around, here is the solution I have found.
Step by Step
- Open Zotero and create the ideal citation
- Export it to COinS
- If necessary, adapt it with more options:
rft.type
to specify the type of resource (book, webpage, dataset, blog post, document...)rft.id
to specify the DOI
- Copy the
span
created to your HTML page - VoilĂ !
Example
Example from a grammateus page:
<span class="Z3988" title="url_ver=Z39.88-2004&ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fzotero.org%3A2&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&rft.type=webpage&rft_id=info%3Adoi%2Fhttp%3A%2F%2Fdoi.org%2F10.26037/yareta:4bcjmpoy6zavbozlhn46ckrrci&rft.title=Description%20of%20Greek%20Documentary%20Papyri:%20Warrant&rft.source=grammateus%20project&rft.identifier=https://grammateus.unige.ch/descriptions/warrant&rft.aufirst=Gianluca&rft.aulast=Bonagura&rft.au=Gianluca%20Bonagura&rft.au=Ruey-Lin%20Chang&rft.au=Lavinia%20Ferretti&rft.au=Susan%20Fogarty&rft.au=Elisa%20Nury&rft.au=Paul%20Schubert&rft.date=2024&rft.language=en"></span>
If you use the Zotero connector to save the page, it should appear properly among your references. Although Zotero is inventing a short title out of thin air, but that is not a big deal.
Why not meta tags?
When I was looking for options, I started first with the meta tags described on the page for exposing metadata. It might be sufficient in some cases, but I did not find how to specify the type of resource, for instance if I wanted to save a page as a dataset.