Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

gwu-libraries/catalog-pointer

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Catalog Pointer

Drupal 7 module that sets the url/target for the GW Libraries catalog search and All-Search (Bento) as a site configuration setting (admin/config). It provides three options for each tool:

  • Use default
  • Use the fallback catalog (or test server in the case of Bento)
  • Manually set an alternate URL (with provided textfield)

Installation

  1. Place the catalog_pointer directory and contents in the site's modules directory: `sites/all/modules`
  2. Go to the site's Module configuration page /admin/modules and enable the Catalog Pointer module (it will be in a group labelled GW Librairies)
  3. Done! (go to the site admin configuration page to change settings admin/config)

The target url can be called from the function catalog_pointer_check() for the Catalog and catalog_pointer_bento() for Bento.

<?php
  // checks to see if function exists and sets the catalog target (set in GW custom Catalog Pointer module) and if not sets a default value (our current Launchpad catalog search).
  if (function_exists('catalog_pointer_check')) {$catalogTarget = catalog_pointer_check();} else {$catalogTarget = "http://findit.library.gwu.edu/search";} 
?>
<?php
  // checks to see if function exists and sets the Bento target (set in GW custom Catalog Pointer module) and if not sets a default value (the prod Bento server).
  if (function_exists('catalog_pointer_bento')) {$bentoTarget = catalog_pointer_bento();} else {$bentoTarget = "http://gwbento-prod.wrlc.org:8080/";} 
?>

About

ARCHIVED. Code merged into library.gwu.edu repo. Old description: Drupal module that sets the url/target for the Libraries catalog search.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published