-
Notifications
You must be signed in to change notification settings - Fork 55
Redirect / Translator selection problem (JavaScript, www.redi-bw.de => ebscohost) #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This might be a bad example because the redirect is based on the request source IP, so you will not be able to reproduce it from your location. I will provide additional information how the redirect works. |
I suppose this kind of redirect is not supported by zotero translation server yet? |
Redirects should be handled fine. What's the debug output? |
I see... so could this be a translator selection problem in combination with the redirect? |
Since we can't access this, you're going to have to debug this on your end. From the above debug output, it's trying to translate the |
I will try. It would be great if you could have a look at #48. Seems to be a similar problem, but with a test case that can be reproduced anywhere. |
It seems like there are multiple redirects happening here. Redirection from redi-bw.de to the plink page works fine. The plink page itself contains a JS redirect:
What would be Best Practice here? To write a translator which handles the redirect and calls the correct translator on the target URL? |
URL:
http://www.redi-bw.de/db/ebsco.php/search.ebscohost.com/login.aspx%3fdirect%3dtrue%26db%3dreh%26AN%3dATLAiGFE171113003879%26site%3dehost-live
Result:
[{"key":"8VGWTYLW","version":0,"itemType":"webpage","url":"http://web.b.ebscohost.com/plink?key=10.81.11.197_8000_1381733013&scope=site&db=reh&AN=ATLAiGFE171113003879&site=ehost-live","title":"","accessDate":"2018-11-07T14:46:22Z"}]
If you open the above URL in Browser, there is a redirect to this URL:
http://web.a.ebscohost.com/ehost/detail/detail?vid=0&sid=210b94b5-d4c1-41a3-bc71-a267c3a20ce2%40sessionmgr4007&bdata=JnNpdGU9ZWhvc3QtbGl2ZQ%3d%3d#AN=ATLAiGFE171113003879&db=reh
If you use web endpoint on this URL directly, you get the following result:
[{"key":"M9FHFV2Q","version":0,"itemType":"journalArticle","creators":[{"firstName":"Evgenia","lastName":"Fotiou","creatorType":"author"},{"firstName":"Diana","lastName":"Riboli","creatorType":"author"},{"firstName":"Davide","lastName":"Torri","creatorType":"author"},{"firstName":"Dimitra Mari","lastName":"Varvarezou","creatorType":"author"}],"tags":[{"tag":"International Society for Academic Research on Shamanism","type":1},{"tag":"Shamanism -- Study and teaching","type":1},{"tag":"Animism","type":1},{"tag":"Peer reviewed","type":1}],"title":"The First Conference of the International Society for Academic Research on Shamanism (ISARS), Delphi, Greece, in 2015","date":"2017","journalAbbreviation":"Shaman","volume":"25","issue":"1-2","pages":"5-14","ISSN":"1216-7827","libraryCatalog":"EBSCOhost","publicationTitle":"Shaman"}]
Is there a redirect problem?
The text was updated successfully, but these errors were encountered: