The histhub widget can display sameas resources from histhub linking services. You can integrate it into your site and display links to other providers. __The widget and the apis are in beta status. They may change in the future.__
The histhub-net widget can display sameas resources from histhub linking services. You can integrate it into your site and display links to other providers.
__The widget and the api's are in beta status. They may change in the future.__
## Webcomponent
## Webcomponent
The widget itself is a [webcomponent](https://en.wikipedia.org/wiki/Web_Components). It integrates smoothly into an existing website. You just need to add some markup and load a javascript file.
The widget itself is a [webcomponent](https://en.wikipedia.org/wiki/Web_Components). It integrates smoothly into an existing website. You just need to add some markup and load a javascript file.
## Integration
## Integration
Just have a look at the examp,e folder. There you can find a set of working examples.
Just have a look at the example folder. There you can find a set of working examples.
```html
```html
<html>
<html>
<head>
<head>
...
@@ -22,6 +24,8 @@ The endpoint defines the restapi, where the widget makes the call to get the lin
...
@@ -22,6 +24,8 @@ The endpoint defines the restapi, where the widget makes the call to get the lin
Choose one of the endpoint to get links for your resource
Choose one of the endpoint to get links for your resource
...
@@ -30,11 +34,11 @@ The endpoint uses different technologies to generate the links. Those technologi
...
@@ -30,11 +34,11 @@ The endpoint uses different technologies to generate the links. Those technologi
__Tagcloud and Orgalinker__
__Tagcloud and Orgalinker__
For those two services we provide the `resolvermanual` . The links provided by this resolver are done by humans. See examle 1 and example 2
For those two services we provide the `resolvermanual` . The links provided by this resolver are done by humans. See example 1 and example 2
__Geolinker__
__Geolinker__
The geolinker provides for the `sameas` endpoint the `resolverneo4j` resolver. The links provided by this resolver are done semiautomatical. See example 3
The geolinker provides for the `sameas` endpoint the `resolverneo4j` resolver. The links provided by this resolver are done semi-automatically. See example 3
For the `similarto` endpoint the geolinker provides a `elasticsearchresolver`. The data are guessed based on a matching algorithm. See example 4
For the `similarto` endpoint the geolinker provides a `elasticsearchresolver`. The data are guessed based on a matching algorithm. See example 4
<title>Example of the histhub widget (beta) </title>
<title>Example of the histHub-Net widget (beta) </title>
<script src="../src/histhub-widget.js"></script>
<script src="../src/histhub-widget.js"></script>
<style>
<style>
.container{
.container{
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</head>
</head>
<body>
<body>
<divclass="container">
<divclass="container">
<h1>Example of the histhub widget (beta)</h1>
<h1>Example of the histHub-Net widget (beta)</h1>
<p>The histhub widget can fetch sameas resources for different resoucrces. It makes a simple http request to one of the backends and gets a list of links from there. It finally renders the links in a list and display them.</p>
<p>The histhub widget can fetch sameas resources for different resoucrces. It makes a simple http request to one of the backends and gets a list of links from there. It finally renders the links in a list and display them.</p>