centerforopenscience / ember-osf-preprints Goto Github PK
View Code? Open in Web Editor NEWOSF Preprints: The open preprint repository network
Home Page: https://osf.io/preprints/
License: Apache License 2.0
OSF Preprints: The open preprint repository network
Home Page: https://osf.io/preprints/
License: Apache License 2.0
Hello,
I would like to set up a new preprint server but I am not a developer. So, my question is: can set up such a server using the EMBER-OSF-Preprint provided here?
Actually, I downloaded the files but cannot figure out how to install it on Windows (or using webserver such as WAMP) as there is a lot of dependencies and web tools that I do not understand much!
Thank you,
Regards,
G
Hey,
the download button is nested within a div of class "share-row". The cosmetic filters of various lists blacklist and hide any elements of this class (e.g. Fanboy's annoyance and social lists).
Result:
Download button is not visible when using uBlock Origin or any adblock with the mentioned filters activated.
Workaround:
I suggest simply renaming the class. See also pull request #224, which introduced the class.
Cheers
I have problem
GET http://myIpAddress:5000/assets/vendor.css 404 (NOT FOUND)
I want to change
http://myIpAddress:5000/preprints/assets/vendor.css
var encodedConfig = document.head.querySelector("meta[name$='/config/environment']").content;
var config = JSON.parse(unescape(encodedConfig));
var assetSuffix = config.ASSET_SUFFIX ? '-' + config.ASSET_SUFFIX : '';
var origin = window.location.origin;
window.isProviderDomain = !~config.OSF.url.indexOf(origin);
var prefix = '/' + (window.isProviderDomain ? '' : 'preprints/') + 'assets/';
config.OSF.url value is just 'localhost:5000'
I want to change this value.
How can I do ?
[process.env.KEEN_ENVIRONMENT] || ['production']
should be:
[process.env.KEEN_ENVIRONMENT || 'production']
the first one always evaluates to an array, which is truthy (production never gets referenced). I don't think it affects anything, just for reference. Alternatively, we can use object destructuring with default values.
All preprint appearances in the app are covered by the translation files (good job localization peeps!).
TODO: Check that ember-osf components don't break this pattern!
Also important: this will only probably work for providers (which is the only use case as far as I know anyways), as osf preprint assets have Preprints written all over them.
need to involve talking to to the translation engine!
Will probably involve built-in options or monkey patches surrounding https://github.com/jamesarosen/ember-i18n
I am installing this app, and succeeded in starting the ember app, which is serving content via local curl
calls. Currently stuck at starting up the API server, and the add-domain.js
script.
My questions are:
Is this project a generic preprint server, or is it the network linking together multiple preprint servers. I am trying to setup a generic stand-alone preprint server, that could one day join the network.
Does the main OSF app need to be installed first for the preprint server to work? The following section of the installation instructions seem to imply that OSF needs to be installed. I would rather just run a preprint server without any other faetures of the OSF platform.
Running / Development
For local development, this is designed to run alongside (and from within) the flask application for osf.io.
Check out this OSF feature branch: https://github.com/CenterForOpenScience/osf.io/tree/feature/ember-preprints
Start your Ember server: ember serve
Copy these lines to your website/settings/local.py file. Uncomment '/preprints/': 'http://localhost:4200', and restart your flask app.
Visit your app at http://localhost:5000/preprints/
OSF preprint servers could be sources of scientific preprints to Searx users. There already are BASE and coming PubMed, CORE, OpenAIRE.
I found the API for the OSF. Is there a filtering option to just get preprints? Or maybe a separate API?
When viewing a preprint, there appears to be no simple way to view a PDF directly via the browser's PDF viewer. The only way is to download the PDF and then open it, which seems unnecessary. This is a major inconvenience for people who use plugins to help with reading, and it discourages reading because the google scholar link tries to download the file instead of opening it.
Perhaps there is a simple mime-type setting that would allow the "download" button to view the file rather than save it?
cc @domoritz
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.