Skip to content

qcovery/Libraries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libraries

This module adds a custom library selector for the sidebar and the option to expand the search scope.

Usage

Integrate the module in the modules directory of VuFind and activate it by adding Libraries 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 lines to your templates to enable the functionality of this module:

<?=$this->render('search/libraries-results.phtml'); ?>

Add this line to the result lists sidebar.

<?=$this->render('RecordDriver/SolrDefault/libraries-core.phtml', ['searchClassId' => $this->searchClassId, 'driver' => $this->driver]) ?>

Add this line to the detail view.

<?=$this->render('RecordDriver/SolrDefault/libraries-result-list.phtml', ['searchClassId' => $this->searchClassId, 'driver' => $this->driver]) ?>

Add this line to the body of the result list entry.

<?=$this->render('search/libraries-home.phtml', ['searchClassId' => $tab['id']]); ?>

Add this line to your home page.