Merge branch 'maint-rel-1.6' of github.com:vivo-project/VIVO into maint-rel-1.6

This commit is contained in:
Jon Corson-Rikert 2013-12-02 13:24:18 -05:00
commit 994684a29e
5 changed files with 14 additions and 4 deletions

View file

@ -83,7 +83,7 @@ var adviseeRelUtils = {
// we don't want the user to see the label getting built, so hide the acSelector
// field and display a bogus field that just has the last name in it.
this.fauxLabel.val(lastName);
this.advisee.hide();
this.advisor.hide();
this.fauxLabel.show();
this.advisor.val(name);
this.lastName.val(lastName);

View file

@ -11,7 +11,6 @@
<#assign deleteWebpageUrl=editConfiguration.pageData.deleteWebpageUrl!"deleteWebpageUrl is undefined">
<#assign showAddFormUrl=editConfiguration.pageData.showAddFormUrl!"showAddFormUrl is undefined">
<#assign predicateUri=editConfiguration.predicateUri!"undefined">
<#assign domainUri = editConfiguration.predicateProperty.domainVClassURI!"">
<#if (editConfiguration.pageData.subjectName??) >
<h2><em>${editConfiguration.pageData.subjectName}</em></h2>
@ -57,7 +56,7 @@
<#-- There is no editConfig at this stage, so we don't need to go through postEditCleanup.jsp on cancel.
These can just be ordinary links, rather than a v:input element, as in
addAuthorsToInformationResource.jsp. -->
<a href="${showAddFormUrl}<#if (domainUri?length > 0)>&domainUri=${domainUri}</#if>" id="showAddForm" class="button green" title="${i18n().add_new_web_page}">${i18n().add_new_web_page}</a>
<a href="${showAddFormUrl}" id="showAddForm" class="button green" title="${i18n().add_new_web_page}">${i18n().add_new_web_page}</a>
<a href="${cancelUrl}" id="returnToIndividual" class="return" title="${i18n().return_to_profile}">${i18n().return_to_profile}</a>
<img id="indicator" class="indicator hidden" src="${urls.base}/images/indicatorWhite.gif" alt="${i18n().processing_indicator}"/>

View file

@ -1481,7 +1481,7 @@ local:awardOrHonorReceiptsConfig a :ObjectPropertyDisplayConfig ;
:listViewConfigFile "listViewConfig-default.xml"^^xsd:string ;
:displayName "receipts" ;
vitro:displayRankAnnot 3;
vitro:hiddenFromDisplayBelowRoleLevelAnnot role:nobody ;
vitro:hiddenFromDisplayBelowRoleLevelAnnot role:public ;
vitro:prohibitedFromUpdateBelowRoleLevelAnnot role:nobody ;
:propertyGroup <http://vivoweb.org/ontology#vitroPropertyGroupoverview> .

View file

@ -61,11 +61,20 @@ public class ManageWebpagesForIndividualGenerator extends BaseEditConfigurationG
config.addFormSpecificData("baseEditWebpageUrl", path);
//Also add domainUri and rangeUri if they exist, adding here instead of template
String domainUri = (String) vreq.getParameter("domainUri");
String rangeUri = (String) vreq.getParameter("rangeUri");
paramMap = new ParamMap();
paramMap.put("subjectUri", config.getSubjectUri());
paramMap.put("predicateUri", config.getPredicateUri());
paramMap.put("editForm" , this.getEditForm() );
paramMap.put("cancelTo", "manage");
if(domainUri != null && !domainUri.isEmpty()) {
paramMap.put("domainUri", domainUri);
}
if(rangeUri != null && !rangeUri.isEmpty()) {
paramMap.put("rangeUri", rangeUri);
}
path = UrlBuilder.getUrl( UrlBuilder.Route.EDIT_REQUEST_DISPATCH ,paramMap);
config.addFormSpecificData("showAddFormUrl", path);

View file

@ -103,6 +103,7 @@ public class ModelUtils {
List<String> properties = new ArrayList<String>();
properties.add(processPropertyURI);
properties.add(nonProcessPropertyURI);
properties.add(grantPropertyURI);
return properties;
}
@ -110,6 +111,7 @@ public class ModelUtils {
List<String> properties = new ArrayList<String>();
properties.add(processPropertyInverseURI);
properties.add(nonProcessPropertyInverseURI);
properties.add(grantPropertyInverseURI);
return properties;
}
}