Skip to content
Snippets Groups Projects
Commit b03408a5 authored by Gregor Gawol's avatar Gregor Gawol
Browse files

refs #16538

* complete documentation
parent f401b483
Branches issue/26470
Tags
No related merge requests found
Pipeline #5617 passed with stage
in 13 seconds
...@@ -2,22 +2,67 @@ ...@@ -2,22 +2,67 @@
Introduction Introduction
------------ ------------
This module is an Open Source Software of the University Library Leipzig. This module is an Open Source Software of the University Library Leipzig.
The module retrieve the data of [BSZ One Stop Search (BOSS)](https://wiki.bsz-bw.de/doku.php?id=projekte:boss:start). The module retrieve the data of [BSZ One Stop Search (BOSS)](https://wiki.bsz-bw.de/doku.php?id=projekte:boss:start).
Installation Installation
------------ ------------
**Composer**
Packagist Repo [Module for BOSS Webservice](https://packagist.org/packages/finc/boss-module) Packagist Repo [Module for BOSS Webservice](https://packagist.org/packages/finc/boss-module)
To Install use Composer To Install use Composer
php composer require finc\boss-module php composer require finc\boss-module
**VuFind**
*theme.config.php*
Write to the configuration a *mixins*-statement.
```
return [
[...],
'mixins' => [
'boss'
],
[...]
];
```
*templates/**file**.phtml*
To display the data when write the following JS-Script in to a PHTML-File
```
<? $script = <<<JS
$(document).ready(function() {
var recordId = $('.hiddenId').val();
var recordSource = $('.hiddenSource').val();
$.ajax({
dataType: 'json',
url: VuFind.path + '/AJAX/JSON?method=getBoss',
method: 'GET',
data: {id: recordId, source: recordSource}
}).done(function(response) {
$('.boss-data-false').html(response.data.html);
});
});
JS;
?>
<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $script, 'SET');?>
<div class="boss-data"></div>
```
Configuration Configuration
------------- -------------
You must to create a configuration file in config folder. You must to create a configuration file in config folder.
Filename: boss.ini **boss.ini**
; Which networks do you want to retrieve data? ; Which networks do you want to retrieve data?
[General] [General]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment