Page 3 of 3

Re: OMERO web error

PostPosted: Mon Aug 28, 2017 2:44 pm
by phm
wmoore wrote:Hi,

Any configs that start with "omero.web..." need to be configured on the OMERO.web deployment.

Code: Select all
$ OMERO.py/bin/omero config set omero.web.login_logo "/omero/static/webclient/image/logo_CIRB.jpg"


Hope that helps,

Will.

Hi Will,
I'm able to configure some configs as the script Figure. However, some doesn't work as the open with menu and the logo (may be the path change with omero.py ?) :
The scripts have been install with pip install -U omero ......
Code: Select all
OMERO.py/bin/omero config append omero.web.apps '"omero_iviewer"'
OMERO.py/bin/omero config set omero.web.open_with '["omero_iviewer", "omero_iviewer_index",{"supported_objects":["image"], "script_url": "omero_iviewer/openwith.js", "label": "OMERO.iviewer"}]'
OMERO.py/bin/omero config append omero.web.apps 'omero_fpbioimage"'
OMERO.py/bin/omero config append omero.web.open_with '["omero_fpbioimage", "fpbioimage_index",{"script_url": "fpbioimage/openwith.js", "supported_objects": ["image"], "label": "FPBioimage"}]'
OMERO.py/bin/omero config append omero.web.apps '"omero_weberror"'
OMERO.py/bin/omero config append omero.web.apps '"omero_figure"'
OMERO.py/bin/omero config append omero.web.ui.top_links '["Figure", "figure_index",{"title": "Open Figure in new tab", "target": "_blank"}]'
OMERO.py/bin/omero config set omero.web.login_logo "/home/omero/OMERO.server-5.3.3-ice36-b63/lib/python/omeroweb/webclient/static/webclient/image/logo_CIRB.png"

OMERO.py/bin/omero config get
Code: Select all
omero.web.application_server=wsgi-tcp
omero.web.apps=["omero_figure", "omero_fpbioimage", "omero_weberror", "omero_iviewer"]
omero.web.login_logo=/home/omero/OMERO.server-5.3.3-ice36-b63/lib/python/omeroweb/webclient/static/webclient/image/logo_CIRB.jpg
omero.web.open_with=["omero_iviewer", "omero_iviewer_index", {"supported_objects": ["image"], "script_url": "omero_iviewer/openwith.js", "label": "OMERO.iviewer"}, ["omero_fpbioimage", "fpbioimage_index", {"supported_objects": ["image"], "script_url": "fpbioimage/openwith.js", "label": "FPBioimage"}]]
omero.web.prefix=/omero
omero.web.static_url=/omero/static/
omero.web.ui.top_links=[["Data", "webindex", {"title": "Browse Data via Projects, Tags etc"}], ["History", "history", {"title": "History"}], ["Help", "http://help.openmicroscopy.org/", {"target": "new", "title": "Open OMERO user guide in a new tab"}], ["Figure", "figure_index", {"target": "_blank", "title": "Open Figure in new tab"}]]
omero.web.viewer.view=omero_iviewer.views.index

Only the figure script is displayed in the web page and for the open with I have an empty list.
Edit : For the menus open with is ok now. Only the problem with the logo image is still present.
Philippe

Re: OMERO web error

PostPosted: Tue Aug 29, 2017 9:47 am
by wmoore
Hi Phillipe,

The login_logo expects a full url to an image, e.g. "https://www-legacy.openmicroscopy.org/site/logo.jpg" or in your case "<your-omero-server-url>/static/webclient/image/logo_CIRB.jpg".

Hope that helps,

Will.

Re: OMERO web error

PostPosted: Tue Aug 29, 2017 12:00 pm
by phm
wmoore wrote:Hi Phillipe,

The login_logo expects a full url to an image, e.g. "https://www-legacy.openmicroscopy.org/site/logo.jpg" or in your case "<your-omero-server-url>/static/webclient/image/logo_CIRB.jpg".

Hope that helps,

Will.

Hi Will,
This works if I put the image logo file in OMERO.py/lib/python/omeroweb/static/webclient/image/ instead of OMERO.server/lib/python/omeroweb/webclient/static/webclient/image/ in the version 5.20
Thanks
Philippe