Giter VIP home page Giter VIP logo

ember-osf-preprints's People

Contributors

aaxelb avatar abought avatar adlius avatar alexschiller avatar binoculars avatar bnosek avatar brianjgeiger avatar caneruguz avatar caseyrollins avatar chrisseto avatar dependabot-preview[bot] avatar el1t avatar erinspace avatar fabmiz avatar felliott avatar futa-ikeda avatar hmoco avatar icereval avatar jamescdavis avatar kant avatar laurenbarker avatar laurenrevere avatar mfraezz avatar ml3ha avatar pattisdr avatar saradbowman avatar sheriefvt avatar sloria avatar terroni avatar zachjanicki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ember-osf-preprints's Issues

Setting up a new preprint server

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

Download button filtered by uBlock's "Fanboy annoyance" and "Fanboy social" filter lists

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

How to change "meta[name$='/config/environment']" value

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 ?

environment variable not evaluated correctly in config

@pattisdr

https://github.com/CenterForOpenScience/ember-preprints/blob/ddb252cd0cf72a5056737e58b8292b9f543dd485/config/environment.js#L61

[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.

[EOSF-655] Investigate making 'preprints' text a variable

Preprint appearances

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.

Solutions

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

Installation questions

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:

  1. 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.

  2. 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/

Is there an API to search for preprints only?

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?

Allow PDFs to be viewed in the browser without downloading

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.