New Primo Interface and Zotero
Hi all,
We are using the new Primo interface, which is built using AngularJS. Zotero does not seem to be able to detect citations in this interface, much to the consternation of our devoted Zotero users!
I have inserted COinS tags into our records, but those don't seem to be detected either. I suspect this may be related to the way Angular interacts with the Zotero plugin, but I don't know enough about either to figure out a solution. The fact that I've seen Zotero working on Summon 2.0 sites (which also uses Angular) gives me hope that there *is* a solution.
Here's an example record:
https://stolaf-primo.hosted.exlibrisgroup.com/primo-explore/fulldisplay?docid=01BRC_CCO_ALMA21293421510002971&context=L&vid=01BRC_SOC&search_scope=Everything&tab=default_tab&lang=en_US
and the COinS tag for it:
I'm just wondering if anyone has a suggestion for me--I also have a case open with Ex Libris about the problem. Thank you!
Sarah Johnston
St. Olaf College
We are using the new Primo interface, which is built using AngularJS. Zotero does not seem to be able to detect citations in this interface, much to the consternation of our devoted Zotero users!
I have inserted COinS tags into our records, but those don't seem to be detected either. I suspect this may be related to the way Angular interacts with the Zotero plugin, but I don't know enough about either to figure out a solution. The fact that I've seen Zotero working on Summon 2.0 sites (which also uses Angular) gives me hope that there *is* a solution.
Here's an example record:
https://stolaf-primo.hosted.exlibrisgroup.com/primo-explore/fulldisplay?docid=01BRC_CCO_ALMA21293421510002971&context=L&vid=01BRC_SOC&search_scope=Everything&tab=default_tab&lang=en_US
and the COinS tag for it:
I'm just wondering if anyone has a suggestion for me--I also have a case open with Ex Libris about the problem. Thank you!
Sarah Johnston
St. Olaf College
that'd help things along. Should certainly be possible to do.
@zuphilip -- are you experimenting with the new display in Mannheim?
The PNX data is available via the Angular directives' properties; that's how I'm building the COinS tag. Is that what you're after?
Sarah
For articles, books this works fine; we're seeing some limitations on other doctypes
(for reference:
https://github.com/zotero/zotero/blob/master/chrome/content/zotero/xpcom/openurl.js#L327 )
Generally, PNX is a lot richer and more versatile than COinS, which really isn't all that good as a metadata format (for which it wasn't really designed). So if there's anyway to convince ExLibris to let us get to the PNX, that'd be preferable.
Getting metadata out of the page source code seems to be an issue in angular...
About the PNX: the info displayed using &showPnx is exactly what we need, but unfortunately it's a) some human readable format embedded into a webpage rather than just plain XML, which makes this much harder and b) as you note, loaded into the window with some js/angular, so that I'm not sure how our browser add-on would get to it, even if we were willing to scrape it from the page and re-convert it to xml.
<textarea>
and loaded dynamically afterwards. Thus, with the usual Zotero functions one will just see a more or less empty website. It seems that Primo PNX Rest API could be handy, but AFAIS this only works with a secret API key.I am a developer working on Primo at Danish Royal Library.
The issue has been discussed in a user community, and Ex Libris noted that the Rest API is not a supported option for this. They were notified that the 'showPnx=true' parameter does not work as it probably should, but I am not sure if they will act upon.
In the meantime, the PNX data is available within angular as javascript objects. So, the relevant PNX data can be inserted into the page instead of COinS metadata, or it could even be aggregated into an array and assigned to a variable/property that zotero can recognize.
Would such solutions be feasible for zotero?
Regards,
Murat Seyhan
Primo is planned to include the zotero plugin, which inserts coins metadata, in the May release. I think they should be willing to add a better solution instead. Before that, we can share it with the user community, so that it can be added by the other libraries.
Can zotero already scrape PNX data?
What could still work is the showPNX.jsp see https://developers.exlibrisgroup.com/blog/showPNX_Revisited . At least from the Zotero side nothing should have changed. Can this still be installed in the new Primo interface?
Zotero can already understand PNX data, at least there was quite some effort to support the standards as well as some localized fields/values/habits. The current translator can be found here https://github.com/zotero/translators/blob/master/Primo.js .
I do not think showPNX.jsp can be installed in the new primo. I am not aware of a mechanism to utilize JSPs.
I experimented a bit with the new primo, but was not able to come up with a way to serve PNX directly. So instead, I modified the existing plugin to convert the available PNX data into XML and insert it along with COinS data, yielding elements in the form of (span title="COinS data" pnx="PNX data")(/span). I did not remove the COinS data, just not to break the existing functionality. See here, https://rex.kb.dk/primo-explore/search?query=any,contains,free&tab=default_tab&search_scope=KGL&sortby=rank&vid=NUI&lang=en_US&offset=0 .
Could this be useful?
Not via JSP but for any result parameter &showPnx=true can be added in order to get the PNX.
Can this help?
We see that Ex Libris mentions development of Zotero/Primo in November release notes:
https://knowledge.exlibrisgroup.com/Primo/Product_Documentation/Highlights/026Primo_November_2017_Highlights
Please forgive my lack of understanding, but could you tell us what this means? Does this mean that the Zotero plugin is now ready to go? Or do you still have to do work on your end?
I was able to make a direct call with the API they provide, but I am not sure what they are expecting us (Primo users) to be able to do with it.
http://search.library.brandeis.edu/primo-explore/search?vid=BRAND
and the PNX ID:
BRAND_ALMA21179047310001921
then you can get the old XML PNX with this link format:
http://search.library.brandeis.edu/primo_library/libweb/action/display.do?doc=BRAND_ALMA21179047310001921&showPnx=true
We're actually just making progress with the Primo team who have put out a test release that we're getting to work.
Thanks for the reply!
Edit: Thanks to zuphilip for doing the work on the Zotero side and thanks to ExLibris, who were really great about working with us on this.
Unfortunately, I also need to report it's not working for us (we're hosted by Ex Libris and should have the latest release). When we look at a detailed record in Primo, we see the generic "website" icon in the browser rather than the specific icon indicating Zotero has recognized the metadata. Here's a screen shot of what I see (Google Chrome 64 on a Mac):
https://screencast.com/t/uYKTRyHSzWh7
And a permalink to the same item in our Primo:
https://redlands.primo.exlibrisgroup.com/discovery/fulldisplay?docid=proquest218186076&context=PC&vid=01UOR_INST:01UOR&search_scope=MyInst_and_CI&tab=Armacost_resources&lang=en
At least one other librarian (at Whitman College) has reported seeing the same thing to the Primo-L listserv.
Could someone from Zotero work with me on troubleshooting this problem? I wonder if there is something missing from our PNX records that we could configure. We are using Ex Libris' new PrimoVE product in case that is significant.
Best regards,
Sanjeet Mann
Arts & Systems Librarian
University of Redlands
sanjeet_mann@redlands.edu