VIVO-491 cleaning up some minor address stuff
This commit is contained in:
parent
7af3580e87
commit
631b0dc330
2 changed files with 23 additions and 0 deletions
|
@ -10,6 +10,8 @@ var mailingAddressUtils = {
|
||||||
if ( editMode != "add" ) {
|
if ( editMode != "add" ) {
|
||||||
this.setStreetAddressDisplayFields();
|
this.setStreetAddressDisplayFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.setAddressFieldsIfErrors();
|
||||||
},
|
},
|
||||||
|
|
||||||
initObjectReferences: function() {
|
initObjectReferences: function() {
|
||||||
|
@ -18,9 +20,16 @@ var mailingAddressUtils = {
|
||||||
this.street1 = $('#streetAddressOne');
|
this.street1 = $('#streetAddressOne');
|
||||||
this.street2 = $('#streetAddressTwo');
|
this.street2 = $('#streetAddressTwo');
|
||||||
this.streetAddress = $('#streetAddress');
|
this.streetAddress = $('#streetAddress');
|
||||||
|
this.errorSection = $('section#error-alert');
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
setAddressFieldsIfErrors: function() {
|
||||||
|
if ( this.errorSection.length ) {
|
||||||
|
mailingAddressUtils.setStreetAddressDisplayFields();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
bindEventListeners: function() {
|
bindEventListeners: function() {
|
||||||
this.idCache = {};
|
this.idCache = {};
|
||||||
|
|
||||||
|
|
|
@ -893,6 +893,20 @@ local:awardReceiptsAwardForConfig a :ObjectPropertyDisplayConfig ;
|
||||||
vitro:prohibitedFromUpdateBelowRoleLevelAnnot role:public ;
|
vitro:prohibitedFromUpdateBelowRoleLevelAnnot role:public ;
|
||||||
:propertyGroup <http://vivoweb.org/ontology#vitroPropertyGroupoverview> .
|
:propertyGroup <http://vivoweb.org/ontology#vitroPropertyGroupoverview> .
|
||||||
|
|
||||||
|
local:addressLocationContext a :ConfigContext ;
|
||||||
|
:hasConfiguration local:addressLocationConfig ;
|
||||||
|
:configContextFor <http://purl.obolibrary.org/obo/RO_0001025> ;
|
||||||
|
:qualifiedByDomain <http://www.w3.org/2006/vcard/ns#Address> ;
|
||||||
|
:qualifiedBy vivo:GeographicLocation .
|
||||||
|
|
||||||
|
local:addressLocationConfig a :ObjectPropertyDisplayConfig ;
|
||||||
|
:listViewConfigFile "listViewConfig-default.xml"^^xsd:string ;
|
||||||
|
:displayName "has geographic location" ;
|
||||||
|
vitro:displayRankAnnot 2;
|
||||||
|
vitro:hiddenFromDisplayBelowRoleLevelAnnot role:public ;
|
||||||
|
vitro:prohibitedFromUpdateBelowRoleLevelAnnot role:public ;
|
||||||
|
:propertyGroup <http://vivoweb.org/ontology#vitroPropertyGrouplocation> .
|
||||||
|
|
||||||
### roles using the BFO_0000055 property ###
|
### roles using the BFO_0000055 property ###
|
||||||
|
|
||||||
local:bfo_0000055Context a :ConfigContext ;
|
local:bfo_0000055Context a :ConfigContext ;
|
||||||
|
|
Loading…
Add table
Reference in a new issue