+// _openStudy.getMenu().refreshSelectedItem(); // Updates the menu icon, in case of other documents in approved state
+ _openStudy.getPopup().setContext("study", _openStudy.getStudyRights()); // The context has changed
+
+ setMenu();
+
+ _myindex = null;
+ _selection = _openStudy.getSelection(); // actually, value doesn't matter, it just has to be not null
+ doOpen();
+ return SUCCESS;
+ }
+
+ /**
+ * Mark study as reference functionality.
+ *
+ * @return SUCCESS
+ */
+ public String doMarkAsReference() {
+
+ _openStudy = getOpenStudy();
+ Study study = _openStudy.getStudyObject();
+
+ getStudyService().markStudyAsReference(study);
+
+ _myindex = null;
+ _selection = _openStudy.getSelection(); // actually, value doesn't matter, it just has to be not null
+ doOpen();
+ return SUCCESS;
+ }
+
+ /**
+ * Remove study as reference functionality.
+ *
+ * @return SUCCESS
+ */
+ public String doRemoveAsReference() {
+
+ _openStudy = getOpenStudy();
+ Study study = _openStudy.getStudyObject();
+
+ getStudyService().removeStudyAsReference(study);
+
+ _myindex = null;
+ _selection = _openStudy.getSelection(); // actually, value doesn't matter, it just has to be not null
+ doOpen();
+ return SUCCESS;