NIHVIVO-1372 In search of the elusive page title holy grail. Set title on defaultAddMissingIndividual and addMissingWithMonikerAndLink to "Edit"
This commit is contained in:
parent
af735a8729
commit
c5e740efa2
2 changed files with 10 additions and 6 deletions
|
@ -210,11 +210,13 @@
|
|||
|
||||
String submitButtonLabel=""; // don't put local variables into the request
|
||||
/* title is used by pre and post form fragments */
|
||||
//set title to Edit to maintain functionality from 1.1.1 and avoid updates to Selenium tests
|
||||
request.setAttribute("title", "Edit");
|
||||
if (objectUri != null) {
|
||||
request.setAttribute("title", "Edit \""+propDomainPublic+"\" entry for " + subject.getName());
|
||||
request.setAttribute("formTitle", "Edit \""+propDomainPublic+"\" entry for " + subject.getName());
|
||||
submitButtonLabel = "Save changes";
|
||||
} else {
|
||||
request.setAttribute("title","Create \""+propDomainPublic+"\" entry for " + subject.getName());
|
||||
request.setAttribute("formTitle","Create \""+propDomainPublic+"\" entry for " + subject.getName());
|
||||
submitButtonLabel = "Create \""+propDomainPublic+"\" entry";
|
||||
}
|
||||
|
||||
|
@ -258,7 +260,7 @@ $(document).ready(function() {
|
|||
})
|
||||
</script>
|
||||
|
||||
<h2>${title}</h2>
|
||||
<h2>${formTitle}</h2>
|
||||
<form action="<c:url value="/edit/processRdfForm2.jsp"/>" >
|
||||
<v:input type="text" label="name (required)" id="name" size="30"/>
|
||||
<hr/>
|
||||
|
|
|
@ -231,11 +231,13 @@
|
|||
|
||||
String submitButtonLabel="";
|
||||
/* title is used by pre and post form fragments */
|
||||
//set title to Edit to maintain functionality from 1.1.1 and avoid updates to Selenium tests
|
||||
request.setAttribute("title", "Edit");
|
||||
if (objectUri != null) {
|
||||
request.setAttribute("title", "Edit \""+propDomainPublic+"\" entry for " + subject.getName());
|
||||
request.setAttribute("formTitle", "Edit \""+propDomainPublic+"\" entry for " + subject.getName());
|
||||
submitButtonLabel = "Save changes";
|
||||
} else {
|
||||
request.setAttribute("title","Create \""+propDomainPublic+"\" entry for " + subject.getName());
|
||||
request.setAttribute("formTitle","Create \""+propDomainPublic+"\" entry for " + subject.getName());
|
||||
submitButtonLabel = "Create \""+propDomainPublic+"\" entry";
|
||||
}
|
||||
|
||||
|
@ -246,7 +248,7 @@
|
|||
<jsp:param name="useAutoComplete" value="false"/>
|
||||
</jsp:include>
|
||||
|
||||
<h2>${title}</h2>
|
||||
<h2>${formTitle}</h2>
|
||||
<form action="<c:url value="/edit/processRdfForm2.jsp"/>" ><br/>
|
||||
<v:input type="text" label="name (required)" id="name" size="30"/><br/>
|
||||
<v:input type="submit" id="submit" value="<%=submitButtonLabel%>" cancel="true"/>
|
||||
|
|
Loading…
Add table
Reference in a new issue