<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body dir="auto">
<div style="-webkit-text-size-adjust: auto;">
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;">Hi Jake,</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;"><br>
</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;">I understand that your public filter enabled the image viewer, making sure all data stays secure uses:</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;"><br>
</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;">$ bin/omero config set omero.web.public.url_filter '/webgateway'</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;"><br>
</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;">There are two options to do it:</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;"><br>
</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;">1. Enable public access to view images in a public group in the webclient while still preventing data manipulation using filter like:</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;"><br>
</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;">$ bin/omero config set omero.web.public.url_filter '^/(?!webadmin|webclient/action/\w+|webclient/annotate_(file|tags|comment))'</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;"><br>
</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;">2. On your custom pages you can load JSON from the following links:</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;"><br>
</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;"><a href="http://YOUR_HOST/webgateway/dataset/ID/children/">http://YOUR_HOST/webgateway/dataset/ID/children/</a> - list all images in the dataset</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;"><br>
</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;">It will return following information, see example:</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;"><br>
</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;">{"description": "", "author": "Will Moore", "date": 1291325060.0, "thumb_url": "/webgateway/render_thumbnail/4701/", "type": "Image", "id": 4701, "name": "spim.png"}</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;"><br>
</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;">For more available links see:
<a href="https://github.com/openmicroscopy/openmicroscopy/blob/dev_5_0/components/tools/OmeroWeb/omeroweb/webgateway/urls.py#L145">
https://github.com/openmicroscopy/openmicroscopy/blob/dev_5_0/components/tools/OmeroWeb/omeroweb/webgateway/urls.py#L145</a></div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;"><br>
</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;">I hope it will help.</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;"><br>
</div>
<div style="font-family: Helvetica; -webkit-text-size-adjust: none;">Ola</div>
</div>
<div style="-webkit-text-size-adjust: auto;"><br>
On 25 Nov 2014, at 05:13, "Jake Carroll" <<a href="mailto:jake.carroll@uq.edu.au">jake.carroll@uq.edu.au</a>> wrote:<br>
<br>
</div>
<blockquote type="cite" style="-webkit-text-size-adjust: auto;">
<div>
<div>Hi OME crew.</div>
<div><br>
</div>
<div>A quick question. We’ve got some of our researchers ready to go and publish papers with citations directly from inside OMERO, using public data constructs. </div>
<div><br>
</div>
<div>After following this:</div>
<div><br>
</div>
<div><a href="http://www.openmicroscopy.org/site/support/omero5/developers/Web/PublicData.html">http://www.openmicroscopy.org/site/support/omero5/developers/Web/PublicData.html</a></div>
<div><br>
</div>
<div>And then this:</div>
<div><br>
</div>
<div><a href="http://help.openmicroscopy.org/urls-to-data.html">http://help.openmicroscopy.org/urls-to-data.html</a></div>
<div><br>
</div>
<div>We can happily link to an image, bypassing the need to login because we’re using a public-user and have it in a public data area.</div>
<div><br>
</div>
<div><b>But</b> we want to link to an entire data set at once, avoiding the login page.</div>
<div><br>
</div>
<div>The problem is, when we do that, we still get the login-page, which we were not expecting. We were expecting we’d get an image browser
<b>without</b> needing to login. </div>
<div><br>
</div>
<div>So, we are sure we can “directly link” publicly using single images, like this:</div>
<div><br>
</div>
<div><a href="https://blah.blah.blah.blah/webgateway/img_detail/6453">https://blah.blah.blah.blah/webgateway/img_detail/6453</a>/</div>
<div><br>
</div>
<div>Which works, no auth/credentials required. How do we do the same with the entire data-set?</div>
<div><br>
</div>
<div>I thought it might be as simple as:</div>
<div><br>
</div>
<div><a href="https://blah.blah.blah.blah/webgateway/img_detail/6453">https://blah.blah.blah.blah/webgateway/data_set_detail/6</a>01</div>
<div><br>
</div>
<div>But clearly that is just a guess and perhaps too intuitive ;).</div>
<div><br>
</div>
<div>Many thanks as always…</div>
<div><br>
</div>
<div>-jc</div>
</div>
</blockquote>
<blockquote type="cite" style="-webkit-text-size-adjust: auto;">
<div><span>_______________________________________________</span><br>
<span>ome-users mailing list</span><br>
<span><a href="mailto:ome-users@lists.openmicroscopy.org.uk">ome-users@lists.openmicroscopy.org.uk</a></span><br>
<span><a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users</a></span><br>
</div>
</blockquote>
<br>
<span style="font-size:10pt;">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</body>
</html>