Permalink
Browse files

hard-coded image filename: works

  • Loading branch information...
1 parent 4482f4e commit 8a7bebfbf40136ddbadb87023268d025b75b2f53 @pbinkley committed Oct 11, 2012
Showing with 24 additions and 2 deletions.
  1. +24 −2 OpenLayerZoom/plugin.php
View
@@ -1,9 +1,31 @@
<?php
+/**
+IIPImage version
+
+Original tile paths: http://localhost/omeka/archive/zoom_tiles/4b937070760d406a5bdab0d07d2a2b87_zdata/TileGroup0/1-1-0.jpg
+New tile paths: http://panther/cgi-bin/iipsrv.fcgi?zoomify=/var/www/iip/N018796.jp2/TileGroup0/4-4-9.jpg
+
+Strategy:
+ - replace ZOOMTILES_WEB to point to panther instead of local Directory
+ - change code that builds link to use original item id instead of Omeka's file id
+
+- first test: change name of jp2 to match omeka's file id
+https://pbinkley.dyndns.org/cgi-bin/iipsrv.fcgi?zoomify=/var/www/iip/4b937070760d406a5bdab0d07d2a2b87_zdata/TileGroup0/1-1-0.jpg
+
+cp N018796.jp2 4b937070760d406a5bdab0d07d2a2b87_zdata
+
+- doesn't work: returns a file called IIPImageIsAMadGameClosedToOurUnderstanding.netpfx - presumably because the file doesn't
+have a .jp2 extension, it doesn't know what to do with it.
+
+- so: hard-coded id in line 102:
+
+open_layer_zoom_add_zoom("'.$root.'","'.$width.'","'.$height.'","'.ZOOMTILES_WEB.'/N018796.jp2/'.'",'.$open_zoom_layer_req.');
+**/
if (!defined('OPENLAYERZOOM_PLUGIN_DIR')) {
define('OPENLAYERZOOM_PLUGIN_DIR', dirname(__FILE__));
define('ZOOMTILES_DIR', ARCHIVE_DIR . '/zoom_tiles');
- define('ZOOMTILES_WEB', WEB_ARCHIVE . '/zoom_tiles');
+ define('ZOOMTILES_WEB', 'https://pbinkley.dyndns.org:59443/cgi-bin/iipsrv.fcgi?zoomify=/var/www/iip');
define('ZOOM_RESOURCES', WEB_PLUGIN . '/OpenLayerZoom/views/shared/');
}
@@ -81,7 +103,7 @@ function open_layer_zoom_display_items($file, array $options=array()){
$html = '
<script type="text/javascript">
- open_layer_zoom_add_zoom("'.$root.'","'.$width.'","'.$height.'","'.ZOOMTILES_WEB.'/'.$root.'_zdata/'.'",'.$open_zoom_layer_req.');
+ open_layer_zoom_add_zoom("'.$root.'","'.$width.'","'.$height.'","'.ZOOMTILES_WEB.'/N018796.jp2/'.'",'.$open_zoom_layer_req.');
</script>
';

0 comments on commit 8a7bebf

Please sign in to comment.