omeka / plugin-Coins

Adds COinS metadata to item pages, making them readable by the free bibliographic program, Zotero (http://zotero.org)
http://omeka.org/codex/Plugins/Coins
3 stars 7 forks source link

Coins overrides Identifier #2

Open zerocrates opened 11 years ago

zerocrates commented 11 years ago

Coins assigns the current absolute_url to the rft.identifier key. This is the key used by Dublin Core Identifier data.

The Coins spec says the URL for the item being described should go in the rft_id key, not rft.identifier. A glance at Zotero's parsing code suggests it looks for URLs in both those places, so moving our automatic url inclusion to rft_id would let us keep the automatic import of the URL, and let users specify an identifier as well (possibly overriding our automatic one) by setting a DC Identifier that's a URL.

Finally, the "automatic" URL isn't one that points to the item, as it should, it's simply the URL for whatever is the current page. On a browse page, this means all items just show the browse page as their "link."

zerocrates commented 10 years ago

Note: Zotero seems to look at the DC identifier last, so any URL/DOI/etc. there would override one from rft_id if both were present. The rules for what Zotero looks for in the two places are also slightly different.

In the interest of consistency at least, I think we'll leave this as-is for now.