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?
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?
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.
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).
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.
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,
Do I miss something here?
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..