<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>WebTest</title>
</head>

<body>
<h1>WebTest</h1>

<p>
    The webtest app provides some examples of how to extend the OMERO.web framework with your own functionality.
    Some of these demonstrations were developed in response to feature requests by individuals. Therefore they 
    should serve as good 'real world' examples.
    
    <br /><a href="{% url 'weblogout' %}">logout</a>
</p>

<table border='1' cellpadding='10'>
    <tr>
        <td>
            "Random" Image(s), used in links below. <br>
            <a href="{% url 'webtest_index' %}">Choose another</a>. <br>
            {% for i in images %}
                <div style="float:left; padding:2px" title="{{ i.name }} ID: {{ i.id }}">
                    <img src="{% url 'webgateway_render_thumbnail' i.id %}" />
                </div>
            {% endfor %}
        </td>
        <td>
            Random Dataset, used in links below. <br>
            Name: {{ dataset.getName }} <br>
            {% for i in dataset.listChildren %}
                <div style="float:left; padding:2px" title="{{ i.name }} ID: {{ i.id }}">
                    <a href="?Image={{ i.id }}"><img src="{% url 'webgateway_render_thumbnail' i.id %}" />
                </div>
            {% endfor %}
        </td>
    </tr>
</table>

<h2>Simple Dataset display</h2>
<p>
    <b>Url: <a href="{% url 'webtest_dataset' dataset.id %}">{% url 'webtest_dataset' dataset.id %}</a></b><br />
    This page is a "Hello World" example that simply displays the name and a thumbnail for each image in a 
    specified dataset. See the <a href="https://www.openmicroscopy.org/site/support/omero/developers/Web.html">
    OMERO.web guide</a> for more details.
</p>

<h2>Split-view Figure</h2>
<p>
    <b>Url: <a href="{% url 'webtest_split_view_figure' %}?imageIds={{ imgIds }}">{% url 'webtest_split_view_figure' %}?imageIds={{ imgIds }}</a></b><br>
    Displays a split-view figure of the specified images. Users can choose which
    channels are shown individually and in the merged image, and a number of 
    other options. On submission of the form, the figure is updated. Once you are happy with
    the figure, you can add the url that defines the figure as an annotation on the images. It's
    also possible to hide the form, so that the figure is suitable for printing.
</p>

<h2>Dataset Split-view</h2>
<p>
    <b>Url: <a href="{% url 'webtest_dataset_split_view' dataset.id %}">{% url 'webtest_dataset_split_view' dataset.id %}</a></b><br>
    The images within the specified dataset are displayed in two panels, with the ability
    to turn different channels on/off for each panel. It's also possible to 
    apply the same rendering levels to all the images for chosen channels.
</p>

<h2>Image Dimensions viewer</h2>
<p>
    <b>Url: <a href="{% url 'webtest_image_dimensions' images.0.id %}">{% url 'webtest_image_dimensions' images.0.id %}</a></b><br>
    This unfinished viewer displays a single image as a grid of individual
    planes, allowing the user to choose which dimensions (Z, C, or T) is 
    display along each axis. 
</p>

<h2>Channel Overlay viewer</h2>
<p>
    <b>Url: <a href="{% url 'webtest_channel_overlay_viewer' images.0.id %}">{% url 'webtest_channel_overlay_viewer' images.0.id %}</a></b><br>
    This viewer allows the user to overlay channels from the same (or different) images
    and to shift them in X, Y or Z independently. It is shown towards the end of
    <a href="http://cvs.openmicroscopy.org.uk/snapshots/movies/omero-4-3/mov/ChannelOffsets-4.3.mov">
    this movie</a>.
</p>

</body> </html>