def djatoka_init_openlayers(rft_id, div_identifier, params={})
      resolver = determine_resolver(params)
      metadata_url = resolver.metadata_url(rft_id)
      %Q|<script type="text/javascript">
          jQuery(document).ready(function() {openlayersInit('#{resolver.scheme}://#{resolver.host}',
          '#{metadata_url}',
          '#{rft_id}', '#{div_identifier}');
          });
        </script>
      |
    end
def djatoka_init_openlayers(rft_id, div_identifier, params={})
      resolver = determine_resolver(params)
      metadata_url = resolver.metadata_url(rft_id)
      %Q|<script type="text/javascript">
          jQuery(document).ready(function() {openlayersInit('#{resolver.scheme}://#{resolver.host}',
          '#{metadata_url}',
          '#{rft_id}', '#{div_identifier}');
          });
        </script>
      |
    end
View helper to include a bit of jQuery on the page which waits for document
 load and then initializes the Ajax, OpenLayers viewer. Since this works
 via Ajax, Djatoka will need to be running or proxied at the same domain as
 the application to avoid cross-domain restrictions.