Skip to content

Commit

Permalink
Merge pull request #1 from qcovery/vufind9
Browse files Browse the repository at this point in the history
Vufind9
  • Loading branch information
jschultze authored Mar 5, 2024
2 parents df3a927 + 3d0e04d commit 0b7c297
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 139 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions Module.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
* @link https://github.com/dmj/vf2-proxy
*/
namespace DependentWorks;
use Zend\ModuleManager\ModuleManager,
Zend\Mvc\MvcEvent;
use Laminas\ModuleManager\ModuleManager,
Laminas\Mvc\MvcEvent;

/**
* Template for ZF2 module for storing local overrides.
Expand Down Expand Up @@ -58,7 +58,7 @@ public function getConfig()
public function getAutoloaderConfig()
{
return array(
'Zend\Loader\StandardAutoloader' => array(
'Laminas\Loader\StandardAutoloader' => array(
'namespaces' => array(
__NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
),
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# DependentWorks
This module displays related publications and volumes.

## Usage
Integrate the module in the `modules` directory of VuFind and activate it by adding `DependentWorks` to `VUFIND_LOCAL_MODULES`.
When adding the module manually make sure to copy and adapt the config file and copy/symlink the theme.

Add the following line to your detail view:
```php
<?=$this->render('RecordDriver/SolrDefault/dependentworks-core.phtml') ?>
```
Empty file modified composer.json
100644 → 100755
Empty file.
18 changes: 15 additions & 3 deletions config/module.config.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,23 @@
$config = [
'service_manager' => [
'allow_override' => true,
'aliases' => [
'getDependentWorks' => 'DependentWorks\AjaxHandler\GetDependentWorks'
],
'factories' => [
'DependentWorks\AjaxHandler\PluginManager' => 'VuFind\ServiceManager\AbstractPluginManagerFactory',
'DependentWorks\AjaxHandler\GetDependentWorks' => 'DependentWorks\AjaxHandler\GetDependentWorksFactory',
],
'aliases' => [
'VuFind\AjaxHandler\PluginManager' => 'DependentWorks\AjaxHandler\PluginManager'
],
'vufind' => [
'plugin_managers' => [
'ajaxhandler' => [
'aliases' => [
'getDependentWorks' => 'DependentWorks\AjaxHandler\GetDependentWorks'
],
'factories' => [
'DependentWorks\AjaxHandler\GetDependentWorks' => 'DependentWorks\AjaxHandler\GetDependentWorksFactory',
],
],
],
],
];
Expand Down
Empty file modified config/vufind/dependent-works.ini
100644 → 100755
Empty file.
8 changes: 4 additions & 4 deletions src/DependentWorks/AjaxHandler/GetDependentWorks.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
use VuFind\AjaxHandler\AbstractBase;
use VuFind\Search\Results\PluginManager as ResultsManager;
use VuFind\I18n\Translator\TranslatorAwareInterface;
use Zend\Http\PhpEnvironment\Request;
use Zend\Mvc\Controller\Plugin\Params;
use Zend\Stdlib\Parameters;
use Zend\Config\Config;
use Laminas\Http\PhpEnvironment\Request;
use Laminas\Mvc\Controller\Plugin\Params;
use Laminas\Stdlib\Parameters;
use Laminas\Config\Config;

/**
* This controller handles global AJAX functionality
Expand Down
4 changes: 2 additions & 2 deletions src/DependentWorks/AjaxHandler/GetDependentWorksFactory.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Factory for GetRecordDetails AJAX handler.
* Factory for GetDependentWorks AJAX handler.
*
* PHP version 7
*
Expand Down Expand Up @@ -39,7 +39,7 @@
* @link https://vufind.org/wiki/development Wiki
*/
class GetDependentWorksFactory
implements \Zend\ServiceManager\Factory\FactoryInterface
implements \Laminas\ServiceManager\Factory\FactoryInterface
{
/**
* Create an object
Expand Down
127 changes: 0 additions & 127 deletions src/DependentWorks/AjaxHandler/PluginManager.php

This file was deleted.

Empty file modified theme/js/dependentworks.js
100644 → 100755
Empty file.
Empty file modified theme/mixin.config.php
100644 → 100755
Empty file.
Empty file.

0 comments on commit 0b7c297

Please sign in to comment.