├── README.md ├── plugin.ini └── plugin.php /README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugin.ini: -------------------------------------------------------------------------------- 1 | [info] 2 | name="Voyant Viewer" 3 | author="Jeremy Boggs" 4 | description="Choose items to display in Voyant" 5 | link="http://github.com/clioweb/VoyantViewer" 6 | omeka_minimum_version="1.4" 7 | omeka_tested_up_to="1.4" 8 | version="1.0" 9 | tags="visualization, Voyant, text" 10 | 11 | -------------------------------------------------------------------------------- /plugin.php: -------------------------------------------------------------------------------- 1 | $itemUrls, 'stopList' => 'stop.en.taporware.txt'); 20 | 21 | $voyantInputString = http_build_query($voyantInputParams, '', '&'); 22 | 23 | $voyantInputUrl = urldecode('http://voyeurtools.org/tool/Cirrus/?'.$voyantInputString); 24 | $voyantInputUrl = preg_replace("/\[\d+\]/", '', $voyantInputUrl); 25 | 26 | $html = ''; 27 | } 28 | 29 | return $html; 30 | } 31 | 32 | function voyant_viewer_echo($items = null) { 33 | if (!$items) { 34 | $items = get_items(array('collection'=>get_current_collection()->id)); 35 | } 36 | 37 | echo voyant_viewer_display($items); 38 | } 39 | 40 | add_plugin_hook('public_append_to_collections_show', 'voyant_viewer_echo'); 41 | --------------------------------------------------------------------------------