Skip to content

Instantly share code, notes, and snippets.

@dmolsen
Created December 28, 2010 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmolsen/757676 to your computer and use it in GitHub Desktop.
Save dmolsen/757676 to your computer and use it in GitHub Desktop.
the federated search script for the map module
<?php
/**
* Copyright (c) 2010 West Virginia University
*
* Licensed under the MIT License
* Redistributions of files must retain the above copyright notice.
*
*/
/**
* This script is simply used to provide customized search results for the federated search module
*/
// sets up adapter class
require_once "../page_builder/adapter.php";
$adapter = ModuleAdapter::find('map');
require_once "../map/adapters/".$adapter."/adapter.php";
// libs
require_once "../map/lib/map.lib.inc.php";
// search the map via it's adapter to return results
$results = MapAdapter::searchPlaces($filter);
$total = count($results);
require "../map/templates/$prefix/federated.html";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment