Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-stoehr committed Dec 21, 2023
1 parent 0b32e6e commit ee8dedb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Module to display icons of belugino instead of noCoverAvailableImage image.
# BeluginoCover
This module displays icons for different media types of the belugino font instead of noCoverAvailableImage image.
See [beluga-core.de/belugino](https://www.beluga-core.de/belugino/) for available icons.

See https://www.beluga-core.de/belugino/ for available icons.
## Usage
Integrate the module in the `modules` directory of VuFind and activate it by adding `BeluginoCover` to `VUFIND_LOCAL_MODULES`.
When adding the module manually make sure to copy and adapt the config file and copy/symlink the theme.
9 changes: 7 additions & 2 deletions src/BeluginoCover/View/Helper/BeluginoCover/BeluginoCover.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
*
* BeluginoCover helper
*/
namespace BeluginoCover\View\Helper\BeluginoCover;

Expand All @@ -11,13 +11,18 @@ class BeluginoCover extends AbstractHelper
protected $config;

/**
*
* Constructor
*/
public function __construct($config)
{
$this->config = $config;
}

/**
* Get icon class for given media type
* @param $format media type
* @return mixed
*/
public function getIconClass($format) {
return $this->config['belugino'][$format];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
use Laminas\ServiceManager\Factory\FactoryInterface;

/**
* SearchBox helper factory.
* BeluginoCover helper factory.
*
* @category VuFind
* @package View_Helpers
Expand Down

0 comments on commit ee8dedb

Please sign in to comment.