Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upNew translator for Cowles Foundation publications #2061
Conversation
Thanks! |
This comment has been minimized.
This comment has been minimized.
Thank you for your quick feedback! This is my first translator and I'm not used to Github so I apologize in advance for any silly mistakes |
This comment has been minimized.
This comment has been minimized.
This all looks very good now thanks (and apologies for the delay).
|
This comment has been minimized.
This comment has been minimized.
I am not sure how to do without the root part because, if I understand it correctly, Zotero inserts the current url argument if I don't specify it; while it would work on the items pages or the list of publications, it would break eg on an authors' page where the current url does not match the beginning of an item's url (for example: you're on this page https://cowles.yale.edu/author/herbert-e-scarf, and select an item to import to zotero. The current url used is https://cowles.yale.edu/author and if I just append the item url for "/cfdp-2212" it throws a 404 because the actual beginning should be https://cowles.yale.edu/publications/cfdp). Same goes for the PDF, as what is scraped is an address starting at the root of the site; if I delete Maybe I missed something because I did not take the time yet to see how Zotero connector works please tell me if you think I could do it using only relative links |
This comment has been minimized.
This comment has been minimized.
Did you test? Relative links always refer to the host, i.e what you call the root and that's what Zotero uses (or certainly should use). In other words |
This comment has been minimized.
This comment has been minimized.
Sorry I was confused it seems I got that error by testing without the initial /, in that case apparently Zotero appends the entire current URL and not just the host. It seems to work now with the initial / |
placardo commentedNov 21, 2019
•
edited
A translator for the documents on the Cowles Foundation website (https://cowles.yale.edu/).
The translator works on the authors' pages and on the different lists of publications (for monographs, discussion papers and published articles), and gets pdfs when available.
I tried to follow the guidelines at https://www.zotero.org/support/dev/translators.