Created
December 28, 2010 20:35
-
-
Save dmolsen/757676 to your computer and use it in GitHub Desktop.
the federated search script for the map module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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