inukshuk / anystyle

Fast citation reference parsing
https://anystyle.io
Other
1.05k stars 90 forks source link

Anystyle not saving parsed results #143

Open GSViva opened 4 years ago

GSViva commented 4 years ago

The three links to the saving formats return a blank page.

inukshuk commented 4 years ago

Works fine for me. If you share the input data to reproduce this, I'll take a look!

GSViva commented 4 years ago

Thank you every so much!

I'm probably doing something wrong, since it's the first time I'm trying to use it. Any help will be appreciated. I've got a huge bibliography that is just unformatted in Word, and I'm about to embark on a monograph, I can't bear the idea of re-creating the bibliography from scratch them or having to sort out the references myself.

This is what i copy and paste: Abraham, Anna. 2018. ‘The Forest versus the Trees: Creativity, Cognition and Imagination’, in Rex E. Jung and Oshin Vartanian (eds) The Cambridge Handbook of the Neuroscience of Creativity, Cambridge University Press, 195-210.

Baker, Mona. 1996. Corpus-based Translation Studies: The challenges that lie ahead.”In Terminology, LSP and Translation: Studies in Language Engineering in Honour of Juan C. Sager, edited by Harold Somers, 175–186. Amsterdam: John Benjamins.

Bassnett, Susan and Peter Bush. (eds) 2006. The Translator as Writer. London & New York: Continuum. Abraham, Anna. 2018. ‘The Forest versus the Trees: Creativity, Cognition and Imagination’, in Rex E. Jung and Oshin Vartanian (eds) The Cambridge Handbook of the Neuroscience of Creativity, Cambridge University Press, 195-210.

Baker, Mona. 1996. Corpus-based Translation Studies: The challenges that lie ahead.”In Terminology, LSP and Translation: Studies in Language Engineering in Honour of Juan C. Sager, edited by Harold Somers, 175–186. Amsterdam: John Benjamins.

Bassnett, Susan and Peter Bush. (eds) 2006. The Translator as Writer. London & New York: Continuum.

And I get the parsing fine, can assign labels (I need to change something for it to work, otherwise the "use my data ..." remains greyed and I can't do anything else), but when I click on BibText or XML, then I get an untitled page that says 'about:blank' in the url field.

inukshuk commented 4 years ago

Odd! Maybe there's a configuration issue with your browser? When you click on the link a new page should open and, depending on your browser preferences, the bibliography should be displayed or downloaded. For example, my browser is configured to show the XML and JSON format in the window (I would then use File -> Save to download the data), while BibTeX would prompt me to download.

If your browser is configured to automatically download files, it's possible that the empty window opens and that the file is automatically saved to your default downloads folder. Have you checked there?

You don't need to make any changes to the labels for it to work. If you make no changes, there is no reason to use the 'use my data' checkbox (we would only save changed fields for training, because there is little benefit in using data which was already labeled correctly by the parser). Regardless of whether or not you make changes, and whether or not you check the 'use my data' checkbox, you can use the buttons to save your results.

urspx commented 4 years ago

Hm, perhaps I am running into a similar issue. It seems to have something to do with browsers, sort of:

With the following input data:

Andrejevic, M. (2014). The big data divide. International Journal of Communication, 8, 1673–1689. https://ijoc.org/index.php/ijoc/article/view/2161

Bitman, N., & John, N. A. (2019). Deaf and hard of hearing smartphone users: Intersectionality and the penetration of ableist communication norms. Journal of Computer-Mediated Communication, 24(2), 56–72. https://doi.org/10.1093/jcmc/zmy024

Chadwick, D., & Wesson, C. (2016). Digital inclusion and disability. In A. Attrill, & C. Fullwood (Eds.), Applied cyberpsychology (pp. 1-23). Palgrave Macmillan. https://doi.org/10.1057/9781137517036_1

Cihak, D. F., Wright, R., Smith, C. C., McMahon, D., & Kraiss, K. (2015). Incorporating functional digital literacy skills as part of the curriculum for high school students with intellectual disability. Education and Training in Autism and Developmental Disabilities, 50(2), 155–171. https://www.jstor.org/stable/24827532

In Firefox (Nightly, 79.0a1 (2020-06-16)):

The change you wanted was rejected.

Maybe you tried to change something you didn't have access to.

If you are the application owner check the logs for more information.


* It's perhaps worth noting that saving from Firefox used to work a few weeks ago.
* I can copy and past the JSON from the `Raw Data` tab in the Firefox preview and save it as a working file, though.

In **Safari** (Version 13.1.1 (14609.2.9.1.3)):
* cmd-clicking (i.e. open in new tab) the CSL-JSON button opens an error page:
> The page you were looking for doesn't exist.
> You may have mistyped the address or the page may have moved.
> If you are the application owner check the logs for more information.
* clicking it opens a correct preview of the JSON, which I can save.
inukshuk commented 4 years ago

Thanks!

While you're working the server does not save any of your data; so what the save buttons actually do is send your references back to the server, which will then convert them to the desired format. It's sort of like submitting a web form. When you cmd-click in Safari, it seems that Safari will just send a normal request to the server (without any data) -- that's why you get the 404 as a response.

What happens in Firefox is a different problem: I guess that when you save the results Firefox seems to download the results a second time (i.e., it re-sends the original request) which is rejected for security reasons.

There are certainly ways to improve the site to handle this more gracefully, but I'm afraid I won't be spending time on this in the near future, because I think it should be possible to address all of these via the browser configuration, if it causes issues.

cicibauer commented 4 years ago

I was having the same issue with saving the parsed references on the web. I used Chrome. After hitting the save button, a blank page appeared and nothing else, regardless of what output format I use. Then I tried Safari, and everything works just fine! Thank you for developing this tool - it really saved my life!

BenWilliams-NOAA commented 2 years ago

having the same issue with blank page generation, multiple browsers

inukshuk commented 2 years ago

There's a download that starts automatically on the blank page. Some browsers / extensions do not allow such downloads for security reasons. If it does not work (also check the downloads folder, since some browsers will just save the file there without prompting) you may need to try with switching off pertinent extensions.

davdent commented 1 year ago

I had the same issue with Chrome. Switched to Firefox and it worked perfectly. Went back to Chrome and changed settings / Site Settings, added Anystyle.io and changed settings to allow automatic downloads and popups. This solves the problem.