# Arxiv onebox plugin

**URL:** <https://meta.discourse.org/t/arxiv-onebox-plugin/44312>\
**Category:** Feature\
**Created:** [May 16, 2016, 2:56pm UTC](https://meta.discourse.org/t/arxiv-onebox-plugin/44312 "2016-05-16T14:56:41Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhyolight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rhyolight/32/120422_2.png) [@rhyolight](https://meta.discourse.org/u/rhyolight)\
**Post date:** [May 16, 2016, 2:56pm UTC](https://meta.discourse.org/t/arxiv-onebox-plugin/44312/1 "2016-05-16T14:56:41Z")

</div>

Anyone know if there is a plugin for Arxiv links? Our community references a lot of scientific papers from this website. Here’s an example link:

> **[Encoding Data for HTM Systems](https://arxiv.org/abs/1602.05925)**
>
> Hierarchical Temporal Memory (HTM) is a biologically inspired machine intelligence technology that mimics the architecture and processes of the neocortex. In this white paper we describe how to encode data as Sparse Distributed Representations (SDRs)...

The important data for the onebox would be the title, author, submission date, and abstract.

 ![](https://global.discourse-cdn.com/meta/original/3X/3/7/37a6096f6f3f6cc105b8b97fdb38fe005a838951.png)

If there is not one yet, I’m thinking about creating one. If anyone else would use it, please ❤.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [May 16, 2016, 8:02pm UTC](https://meta.discourse.org/t/arxiv-onebox-plugin/44312/2 "2016-05-16T20:02:32Z")

</div>

Do they support opengraph or oembed? Check that first. Then you could simply whitelist the domain.

---

<div class="post-metadata">

**Author:** ![rhyolight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rhyolight/32/120422_2.png) [@rhyolight](https://meta.discourse.org/u/rhyolight)\
**Post date:** [May 16, 2016, 8:16pm UTC](https://meta.discourse.org/t/arxiv-onebox-plugin/44312/3 "2016-05-16T20:16:28Z")

</div>

> [@codinghorror](#):
>
> Do they support opengraph or oembed?

It doesn’t seem like it. At least I can’t find any details on their website about support. It looks like onebox plugins are not that difficult to put together. At least this one seems pretty simple:

> <https://github.com/fearlessfrog/steamstorewidget-onebox/blob/master/plugin.rb>

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [May 16, 2016, 8:30pm UTC](https://meta.discourse.org/t/arxiv-onebox-plugin/44312/4 "2016-05-16T20:30:54Z")

</div>

What does [Iframely URL Debugger - Open Graph, Twitter Cards, oEmbed](http://iframely.com/debug) say?

> **[Iframely URL Debugger - Open Graph, Twitter Cards, oEmbed](https://debug.iframely.com?uri=http%3A%2F%2Farxiv.org%2Fabs%2F1602.05925)**
>
> Check your URL against Open Graph, Twitter Cards, oEmbed specs. See what other apps see.

---

<div class="post-metadata">

**Author:** ![rhyolight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rhyolight/32/120422_2.png) [@rhyolight](https://meta.discourse.org/u/rhyolight)\
**Post date:** [May 16, 2016, 9:46pm UTC](https://meta.discourse.org/t/arxiv-onebox-plugin/44312/5 "2016-05-16T21:46:40Z")

</div>

It doesn’t look awful. The JSON looks decent:

```json
{
    "citation_title": "Encoding Data for HTM Systems",
    "citation_author": "Purdy, Scott",
    "citation_date": "2016/02/18",
    "citation_online_date": "2016/02/18",
    "citation_pdf_url": "http://arxiv.org/pdf/1602.05925",
    "citation_arxiv_id": 1602.05925,
    "html-title": "[1602.05925] Encoding Data for HTM Systems",
    "shortcut icon": {
        "href": "http://arxiv.org/favicon.ico",
        "type": "image/x-icon"
    },
    "charset": "UTF-8"
}

```

Not a good icon, but better than nothing.

---

<div class="post-metadata">

**Author:** ![rhyolight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rhyolight/32/120422_2.png) [@rhyolight](https://meta.discourse.org/u/rhyolight)\
**Post date:** [May 16, 2016, 11:05pm UTC](https://meta.discourse.org/t/arxiv-onebox-plugin/44312/6 "2016-05-16T23:05:45Z")

</div>

I updated my onebox whitelist to include `arxiv.org`, but they still do not resolve to anything. Just the same URL I pasted.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [May 16, 2016, 11:24pm UTC](https://meta.discourse.org/t/arxiv-onebox-plugin/44312/7 "2016-05-16T23:24:13Z")

</div>

They are cached very very heavily so be sure to use a new URL that you haven’t used in the last 48 hours.

---

<div class="post-metadata">

**Author:** ![rhyolight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rhyolight/32/120422_2.png) [@rhyolight](https://meta.discourse.org/u/rhyolight)\
**Post date:** [May 16, 2016, 11:27pm UTC](https://meta.discourse.org/t/arxiv-onebox-plugin/44312/8 "2016-05-16T23:27:46Z")

</div>

No dice with a new URL. I see the little loading icon by the URL in the preview for a split second, then just the URL after the icon goes away.

The fact that the loading indicator icon comes up seems to indicate that the whitelist is working, but the onebox is not loading.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [May 16, 2016, 11:28pm UTC](https://meta.discourse.org/t/arxiv-onebox-plugin/44312/9 "2016-05-16T23:28:36Z")

</div>

Sure @techapj can have a quick look now that we’ve done the basic due diligence.

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [May 17, 2016, 4:54am UTC](https://meta.discourse.org/t/arxiv-onebox-plugin/44312/10 "2016-05-17T04:54:40Z")

</div>

Hi Matt,

I looks like [[1602.05925] Encoding Data for HTM Systems](http://arxiv.org/abs/1602.05925) does not have OpenGraph or oEmbed tags with content information. Onebox requires these meta tags to parse the data.

> [@rhyolight](#):
>
> It looks like onebox plugins are not that difficult to put together.

Yes, onebox support can be added via plugin, but since you are on Standard plan you will not be able to install custom plugin on your instance. Only Enterprise plan supports installation of custom plugins.

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [May 20, 2016, 11:45pm UTC](https://meta.discourse.org/t/arxiv-onebox-plugin/44312/11 "2016-05-20T23:45:35Z")

</div>

> [@techAPJ](#):
>
> Yes, onebox support can be added via plugin, but since you are on Standard plan you will not be able to install custom plugin on your instance. Only Enterprise plan supports installation of custom plugins.

This means that the best course of action is to make it part of the onebox repo, as arxiv is a sufficiently general website that I think multiple Discourse websites would benefit from having it.

---

<div class="post-metadata">

**Author:** ![rriemann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rriemann/32/115238_2.png) [@rriemann](https://meta.discourse.org/u/rriemann)\
**Post date:** [May 23, 2016, 9:01am UTC](https://meta.discourse.org/t/arxiv-onebox-plugin/44312/12 "2016-05-23T09:01:11Z")

</div>

Hey @rhyolight,

have you tried already to convince Arxiv to support opengraph/oembed?

---

<div class="post-metadata">

**Author:** ![rhyolight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rhyolight/32/120422_2.png) [@rhyolight](https://meta.discourse.org/u/rhyolight)\
**Post date:** [May 23, 2016, 4:43pm UTC](https://meta.discourse.org/t/arxiv-onebox-plugin/44312/13 "2016-05-23T16:43:48Z")

</div>

Yes I have, but I doubt they will support it. Arxiv is a very basic website without much funding for website administration or continuing development.

---

<div class="post-metadata">

**Author:** ![rriemann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rriemann/32/115238_2.png) [@rriemann](https://meta.discourse.org/u/rriemann)\
**Post date:** [May 23, 2016, 4:57pm UTC](https://meta.discourse.org/t/arxiv-onebox-plugin/44312/14 "2016-05-23T16:57:05Z")

</div>

Than maybe a 3rd party website instead that allows to search in arXiv as well?  
Something like Google Schoolar?

---

<div class="post-metadata">

**Author:** ![rhyolight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rhyolight/32/120422_2.png) [@rhyolight](https://meta.discourse.org/u/rhyolight)\
**Post date:** [May 23, 2016, 7:36pm UTC](https://meta.discourse.org/t/arxiv-onebox-plugin/44312/15 "2016-05-23T19:36:39Z")

</div>

> [@rriemann](#):
>
> Something like Google Schoolar?

That’s a good idea. I can find arxiv papers via Google Scholar, but they do not have their own page, just search results. Each result links directly to the arxiv paper.
