GithubHelp home page GithubHelp logo

o2r-project / o2r-extender Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 3.0 1.94 MB

Allows the integration of badges into several research websites and data repositories.

Home Page: https://doi.org/10.31223/osf.io/xtsqh

License: Apache License 2.0

JavaScript 70.59% CSS 0.53% HTML 28.88%

o2r-extender's Introduction

Spreading scholarly badges using a Chrome Web Extension

The o2r-extender is part of the o2r project which aims to make reproduction of research results possbile:

The o2r-extender consists of a Chrome Web Extension that allows for integration of badges on several research websites. Additionally, it integrates buttons for the o2r project into data repositories and collaboration platforms.

Based on the study project "Badges for computational geoscience containers" available at geocontainer-badges/reproducability.

Installation

In order to use this API, make sure that you have installed Chrome and enabled extensions in the settings.

Web store installation

To install the extension directly from the Chrome Web Store open the following link and click the "Add to Chrome" button:

https://chrome.google.com/webstore/detail/open-reproducible-researc/fhhfncpkfohlhphlcgpkbpialfhkmbil

Development installation

  1. Clone this repository: git clone https://github.com/o2r-project/o2r-extender/

  2. Add the o2r Badge Integrator extension:

    • Open chrome://extensions/ in Chrome,
    • make sure that "Developer mode" in the top-right corner is enabled,
    • click "Load unpacked extension..."
    • and select the o2r Badge Integrator directory of this repository.
  3. Start the o2r-badger to generate badges. Installation instructions

  4. Right click the new "o2r" extension icon and select options. Change the Badge endpoint setting to the local badger address, e.g. http://localhost:8089/api/1.0/badge/

  5. When visiting one of the supported websites make sure to allow mixed content in Chrome:

    • select "Load unsafe scripts" by clicking the shield icon in the address bar (detailed explanation)

Usage

Upon successful installation, you will notice the applications' icon in the top-right corner next to the URL line. Navigate to your chosen website, search for the name of the research you are interested in, and everything will happen automatically. Filter and badges are loaded and nicely integrated into the service's search results.

Supported research services

Supported data repositories

Supported collaboration platforms

Development

To release a new version to the Chrome Web Store, we use the Web Store Upload CLI.

npm install -g chrome-webstore-upload-cli

Release process

  • add a tag matching the version from manifest.json prepended with v, e.g. v0.1.0
git tag v0.1.0
  • go to directory extension and put keys and IDs into environment variables:
cd extension
EXTENSION_ID=fhhfncpkfohlhphlcgpkbpialfhkmbil
CLIENT_ID=<secret>
CLIENT_SECRET=<secret>
REFRESH_TOKEN=<secret>
  • upload directory bash``` webstore upload --extension-id $EXTENSION_ID --client-id $CLIENT_ID --client-secret $CLIENT_SECRET --refresh-token $REFRESH_TOKEN
- publish extension
```bash
webstore publish --extension-id $EXTENSION_ID --client-id $CLIENT_ID --client-secret $CLIENT_SECRET --refresh-token $REFRESH_TOKEN
  • push the tag to GitHub
git push upstream v0.1.0

List of contributors

  • Antonia van Eek
  • Clara Rendel
  • Lasse Einfeldt
  • Laura Meierkort
  • Marlena Götza
  • Salman Khalid
  • Shahzeib Tariq Jaswal
  • Nimrod Gavish
  • Matthias Mohr
  • Daniel Nüst
  • Lukas Lohoff

How to cite

If you reference this project in scholarly communication, please use the citations provided on EarthArxiv: https://doi.org/10.31223/osf.io/xtsqh

Nüst, Daniel, Lukas Lohoff, Lasse Einfeldt, Nimrod Gavish, Marlena Götza, Shahzeib T. Jaswal, Salman Khalid, et al. 2019. “Guerrilla Badges for Reproducible Geospatial Data Science (AGILE 2019 Short Paper).” EarthArXiv. June 19. doi:10.31223/osf.io/xtsqh.

Code archive: DOI

License

This project is licensed under Apache License 2.0.

o2r-extender's People

Contributors

antoniave avatar crend02 avatar lukaslohoff avatar m-mohr avatar nuest avatar shahzeib avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

o2r-extender's Issues

Add support for oaDOI's API about open access publications

https://oadoi.org/api

Example: https://api.oadoi.org/10.1038/nature12373

returns

{

    "results": [
        {
            "_best_open_url": "http://www.ncbi.nlm.nih.gov/pmc/articles/PMC4221854",
            "_closed_base_ids": [ ],
            "_closed_urls": [ ],
            "_green_base_collections": [ ],
            "_open_base_ids": [ ],
            "_open_urls": [
                "http://www.ncbi.nlm.nih.gov/pmc/articles/PMC4221854",
                "https://dash.harvard.edu/bitstream/handle/1/12285462/Nanometer-Scale%20Thermometry.pdf?sequence=1"
            ],
            "doi": "10.1038/nature12373",
            "doi_resolver": "crossref",
            "evidence": "oa repository (via pmcid lookup)",
            "found_green": true,
            "found_hybrid": false,
            "free_fulltext_url": "http://www.ncbi.nlm.nih.gov/pmc/articles/PMC4221854",
            "is_boai_license": false,
            "is_free_to_read": true,
            "is_subscription_journal": true,
            "license": null,
            "oa_color": "green",
            "oa_color_long": "green_only",
            "reported_noncompliant_copies": [ ],
            "url": "http://doi.org/10.1038/nature12373",
            "version": null,
            "year": 2013
        }
    ]

}

We could use the lookup to provide direct full-text access, see ourresearch/oadoi#1 (comment)

Extend README

  • mention license
  • add intro paragraph mentioning o2r project
  • add manual contributors list

Add "powered by o2r" overlay somehow

The user might install our chrome extension and then forget about it, and suddenly see the badges and buttons and now know where they come from. Maybe we can add a small "powered by o2r" image overlay in the bottom right corner, that shows the extension's help page when clicked, and disappears after 10 seconds. The notification overlay can be deactivated completely in the extension settings for users who are annoyed by it.

Alternative phrases: "augmented by o2r", "extended by o2r", ...

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.