See a related request.
(I tried to create a citation with an OCLC number for fun: the system thinks it's a PMID, so I get a result, but not the one I wanted!
I used the first one listed in Template:OCLC, that is, 22239204.)
- Use pmc
- Use oclc
• Elitre | |
Oct 12 2015, 11:42 AM |
F7531240: Screen Shot 2017-04-13 at 09.33.35.png | |
Apr 13 2017, 5:53 PM |
F7531241: Screen Shot 2017-04-13 at 09.34.39.png | |
Apr 13 2017, 5:53 PM |
See a related request.
(I tried to create a citation with an OCLC number for fun: the system thinks it's a PMID, so I get a result, but not the one I wanted!
I used the first one listed in Template:OCLC, that is, 22239204.)
Subject | Repo | Branch | Lines /- | |
---|---|---|---|---|
Enable multiple results | mediawiki/services/citoid | master | 836 -619 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T165321 New param/pattern in service for requesting a single citation based on a unique identifier | |||
Open | None | T115248 Strings of digits currently only search for PMIDs; Add multiple results and include OCLC and PMC in the search |
I think you provided a good example of why this currently wouldn't work! We have absolutely no way to tell the difference between a pmid and an oclc number. So this really wouldn't work out. I could see maybe in the future expanding the api so you could tell the system which you were asking for, but that would make the corresponding ui too complicated, so I don't think we'd use that in the extension anyway...
Now that we have access to worldcat api, this is definitely possible.
We could just request both the OCLC and the pubmed and return both results. The extension can handle that and multiple results are allowed by the service as well... we just have never done that yet. Seems like a good idea, Y/N?
Change 335008 had a related patch set uploaded (by Mvolz):
[WIP] Enable multiple results
How would this work in practice though? We are pasting just strings without the identifiers' acronyms, would we get a dropdown that allows a choice, or? PMC=3359843 and PMID=3359843 are different articles. Should we allow specifying the identifier?
Change 335008 merged by jenkins-bot:
[mediawiki/services/citoid@master] Enable multiple results
Mentioned in SAL (#wikimedia-operations) [2017-04-13T15:46:23Z] <mobrovac@tin> Started deploy [citoid/deploy@212800d]: Enable multiple results for T115248 and remove b/c for T114515
This is live now for pmid/pmcid: Try 14656 as an example.
I think the dialog seems a bit crowded?
Mentioned in SAL (#wikimedia-operations) [2017-04-13T15:49:33Z] <mobrovac@tin> Finished deploy [citoid/deploy@212800d]: Enable multiple results for T115248 and remove b/c for T114515 (duration: 03m 10s)
A couple of screenshots:
At the top | Scrolled down a bit |
Yeah, maybe a thin line to separate items would help? Also maybe we should limit each preview item's height to four or five lines and fade out with "…" so you can see there's a second/third result?