Add OMERO.web viewer view configurability#4480
Merged
jburel merged 2 commits intoome:developfrom Feb 22, 2016
Merged
Conversation
Having this prefix actively prevents the use of other top level packages within the URL patterns. It is no longer required and has not been required for some time.
Member
|
This works fine. |
Member
|
@will-moore: since you have been updating the doc for the web plugins support, could you take care of adding a section for the new extension option? |
Member
|
@will-moore is taking care of the documentation update. |
jburel
added a commit
that referenced
this pull request
Feb 22, 2016
…-5.2 Add OMERO.web viewer view configurability
Member
|
Docs PR at ome/omero-documentation#1406 |
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add OMERO.web viewer view configurability which allows for the complete override or installation of a redirect view for the existing full viewer. This is particularly useful where an OMERO.web plugin is being used in production that replaces or extends the current full viewer, during development or during proof of concept work on new full viewer technology.
Out of the box there should be no affect on existing functionality. The additional configuration option is
omeroweb.web.viewer.viewand this accepts a fully qualified view function name which defaults toomeroweb.webclient.views.image_viewer. It can be tested at a very basic level by running the following:This will display the current list of scripts in the full viewer window, as JSON, when an image thumbnail is doubled clicked on or the "Full Viewer" button in the right hand panel is clicked.
If a plugin wants to perform a conditional redirect, maintaining existing full viewer functionality for the majority of images, adding the following to its
urls.pyis likely desired:A view similar to the following, which would be the target of
omero.web.viewer.view, is then possible:/cc @jburel, @joshmoore