if (_myindex == null) {
if (_selection == null) { // Opening a study just newed
_selection = _openStudy.getSelection(); // Default selection
- } else { // Re-opening (refreshing) the currently open study
- _openStudy = open(getStudyService().selectStudy(
- _openStudy.getIndex())); // Closes the previously open study
- _openStudy.setSelection(_selection);
- }
+ }
+ // Re-opening (refreshing) the currently open study
+ _openStudy = open(getStudyService().selectStudy(
+ _openStudy.getIndex())); // Closes the previously open study
+ _openStudy.setSelection(_selection);
} else {
try { // Opening a study from the search result
int index = Integer.valueOf(_myindex);
</action>
<action name="login" class="connectionAction" method="login">
<result name="none" type="tiles">page.home</result>
+ <result name="create" type="tiles">page.home</result>
<result name="open" type="redirectAction">
select?menu=search
</result>
<result name="study" type="redirectAction">
- study/step-study
+ study/open-study
</result>
<result name="knowledge" type="redirectAction">
study/step-knowledge
<result name="sysadmin" type="tiles">page.home</result>
</action>
<action name="select" class="menuAction" method="selectItem">
- <result name="new-empty" type="redirectAction">
- study/new-empty
- </result>
+ <result name="new-empty" type="redirectAction">
+ study/new-empty
+ </result>
<result name="new-copy" type="redirectAction">
study/new-copy
</result>
<result name="success">/study/jsonCheckoutRes.jsp</result>
</action>
- <!-- Creation of a study
- -->
- <action name="new-empty" class="newStudyAction"
- method="initialize">
- <result name="success" type="tiles">page.newstudy</result>
- </action>
- <action name="valid-new" class="newStudyAction"
- method="create">
- <!--interceptor-ref name="siman-validation" /-->
- <result name="success" type="redirectAction">
- open-study?selection=0.1
- </result>
- <result name="input" type="tiles">page.newstudy</result>
- <result name="error" type="tiles">page.home</result>
- </action>
+ <!-- Creation of a study
+ -->
+ <action name="new-empty" class="newStudyAction"
+ method="initialize">
+ <result name="success" type="tiles">page.newstudy</result>
+ </action>
+ <action name="valid-new" class="newStudyAction"
+ method="create">
+ <!--interceptor-ref name="siman-validation" /-->
+ <result name="success" type="redirectAction">
+ open-study?selection=0.1
+ </result>
+ <result name="input" type="tiles">page.newstudy</result>
+ <result name="error" type="tiles">page.home</result>
+ </action>
<!-- Creation of a new study from existing one
-->