ScholarPress COinS should support multiple values for some DC fields
Copying from https://redmine.gc.cuny.edu/issues/5490#change-26583:
Testing on http://jitpstaging.commons.gc.cuny.edu/city-of-lit-collaborative-research-in-literature-and-new-media/, I can confirm that the ScholarPress COinS translator kicks in as planned, and Zotero grabs whatever data is in the custom fields assigned by it. Thanks, Dan, for all your hard work on this plugin!
That said, unless I'm missing a way to trigger it, the plugin currently only allows for one author, with a single clear "last name" field. In the case of multiple authors, I tried a workaround of treating only the first author's last name as the requested "last name," and putting all other authors in the "first name" field, just to see what Zotero would do with it. Perhaps unsurprisingly, it treats this as a single author with a simple last name and a really complicated first name.
Don't get me wrong: it's still a vast improvement, and I'm grateful for it, and in many citation styles it'll probably even look right. But if there could be some way to make "author" a multi-valued array that Zotero could digest, that would be better still.
Dan, could you look into adding multi-tag support? Author is the one that's being requested above, but once you have an interface for that, it might make sense to use the same interface (rather than a comma-separated list) for Subject. Are there other tags that should allow multiple values?
#2 Updated by Ben Miller over 2 years ago
Author's the main one, though Zotero also allows multiple categories of creator: Contributor, Editor, etc, if we want to generalize beyond our specific use-case.
Also, I didn't realize it until going in to check for those creator types, but we're also currently passing "Web Site" as the Item Type; might that also be settable in the plugin? In our case, "Journal Article" would be more on target. That's probably a different issue, though.
#3 Updated by Ben Miller over 2 years ago
Dear Boone and Dan,
I just wanted to check in on this issue to see what your anticipated timeline is for multi-author support on the COinS plugin. The new issue of JITP should be ready to launch some time next week, so of course that would be ideal for us, but I know you both have many other things going on. If this is impossible for now, I'll go ahead with the kludge for multiple authors of treating secondary authors as a complex first name for the primary author.
All best, and gratefully,
#9 Updated by Daniel Jones over 1 year ago
I've got this up and running for version 2.2 of the plugin - https://github.com/scholarpress/scholarpress-coins/commit/d330a4a0131913fe68a0066977f744d152aa6842
Boone, or someone else, other eyes and some quick testing would be great. I think it's working but it's been finicky in the past.
#10 Updated by Boone Gorges over 1 year ago
Functionality generally looks good to me. I never would have thought to store all last names together and all first names together, instead of as pairs, but it seems to work :)
I pushed up a couple changes related to internationalization. Once you've had a review, I think we're good for a release. We could probably sneak these improvements into a minor release if they come as part of a public scholarpress-coins update.
#11 Updated by Daniel Jones over 1 year ago
Those changes look good - thank you Boone! I also addressed some of the other lingering issues raised in the GitHub repo. Should I go ahead and do a public update for the Wordpress plugin directory?
#14 Updated by Boone Gorges over 1 year ago
- Status changed from Assigned to Resolved
Updated from the WP repo in https://github.com/cuny-academic-commons/cac/commit/12bc77b9f21cb47322fe00f3d2a6ec83dbf9432a, so I think we're set here. Thanks, Dan!