group library item URLs

I'd like to use the item URI stored in Word/LibreOffice to get to an item's library page like
https://www.zotero.org/groups/qdr_annotation_testing/items/itemKey/A5X7AKTH

From the item URI I get http://zotero.org/groups/483726/items/A5X7AKTH

That auto-redirects to
http://zotero.org/groups/qdr_annotation_testing/items/A5X7AKTH

So far so good, but those pages are a lot less useful (no collections on the side, attachments and notes hidden, etc.). Now I figured I'd just replace /items/ with /items/itemKey/ and this would work. Unfortunately
http://zotero.org/groups/483726/items/itemKey/A5X7AKTH does _not_ work and does not redirect.

Two questions:
1. Would it be possible to redirect URLs in the form groups/<groupNumber>/items/itemKey/<itemID> to groups/<groupName>/items/itemKey/<itemID> the way that already happens for the /items/<itemID> ones?

2. If not, is there another way I can construct a URL that does get me to the library view from the item URI embedded in the word processor without an API call?
  • I'm going to bump this in the hope that fcheslack sees it...
  • Probably wise, though I did actually see it the first time. I just hadn't had time to look at what was actually happening, which looks like a bug in some of the redirect patterns.

    So yes, we can definitely make this better. That less useful page itself is mostly left over from when loading collections server side was causing serious problems.
  • Cool, thanks, just wasn't sure how the weekend might interfere. Let me know as this changes, please.
    I'm presenting a mock-up of what I have in mind on Wednesday, but I can just hardcode the group name in the replace pattern for that purpose, as long as I can be reasonably sure that in the not-too-distant future this will work in a generalizable way (i.e. the redirect works).
  • Both of those should now go to the item details in the full library interface.

    Let me know if you see any unexpected behaviour.

    The first version was as intended, for both page load and search indexing purposes, but hopefully neither should be a concern anymore.

    The latter case was a bug. In trying to handle multiple conditions that triggered redirects it was losing some of the data in the url.
  • that's even better than I thought. Works nicely. Thanks for doing that so quickly, really appreciate it.
  • Dear all,

    I have a problem and think you will help me to overcome it.
    I made a group library and the URL of it was shared at my organization webpage. The idea of this library is as follows: readers go and see items in this library and then download full pdf-s to get to know the topic better, without registering the zotero.

    URL link works and group library looks good but when someone goes to download the full pdf the download button is inactive.

    Could you please advice me if there is a chance for zotero non-users to download pdf-s?

    Here is the link of group library URL https://www.zotero.org/groups/rbf_for_mch/items

    Looking forward to hearing from you,
    Thanks,
  • You can't use zotero to share pdfs with the public. Only group members in closed groups can access attachments
  • Dear @adamsmith The post is old but the probelem still exists (correct me if i am wrong) But generating a URI (with zutilo) leads me to a webversion of the library where only the right panel shows the entry, the left panel is in default high level view. I would expect to see the collection where its in and the attachments.
    Do I miss something here?
  • a webversion of the library where only the right panel shows the entry, the left panel is in default high level view.
    That's by design. Since an item can be in multiple collections, it wouldn't make sense to have one of these collections expanded/showing.
  • @adamsmith i understand. Its a bit confusion though, if I create a link to the standalone app, the item get selected and using ctrl i can identify the collection. Following the online link nothing is selected and i takes a while to find out that the right panel is showing the item detail. However, it not a big deal. I was just wondering if this feature helps me to share specific items with my team, since this links (https://www.zotero.org/groups) are easier to process in apps such as MSteams. (zotero://select/groups/...) are not recognized as links and have to be copied to a browser to reach zotero...
  • Following the online link nothing is selected
    This is a technical limitation dictated by the fact that web library works with a limited subset of data, otherwise it could potentially take a very long time to load the entire library before showing anything. We are aware of this problem and might be able to improve this behaviour in the future.
    the item get selected and using ctrl i can identify the collection
    This feature is planned in the web library.
  • edited July 23, 2020
    @tnajdek
    Thank you very much for the update. For now, I ask my group to use the app and Zotero:// links. Its a bit cumbersome since the links are not recognized by most apps but it gives me the full functionality of the Zotero Standalone. I will follow the issue on git. thx for your work Best Alf

    UPDATE
    Basically i want to do it to collaborate (annotate) the pdfs in group library. the only version only allows me to download the pdf effectively creating duplicates. Is there an option to open the item in my local app and have the syncing done there..
Sign In or Register to comment.