Revision 6938
Added by Chris Jones almost 13 years ago
src/edu/ucsb/nceas/metacat/dataone/MNodeService.java | ||
---|---|---|
743 | 743 |
String nodeName = null; |
744 | 744 |
String nodeId = null; |
745 | 745 |
String subject = null; |
746 |
String contactSubject = null; |
|
746 | 747 |
String nodeDesc = null; |
747 | 748 |
String nodeTypeString = null; |
748 | 749 |
NodeType nodeType = null; |
... | ... | |
765 | 766 |
nodeName = PropertyService.getProperty("dataone.nodeName"); |
766 | 767 |
nodeId = PropertyService.getProperty("dataone.memberNodeId"); |
767 | 768 |
subject = PropertyService.getProperty("dataone.subject"); |
769 |
contactSubject = PropertyService.getProperty("dataone.contactSubject"); |
|
768 | 770 |
nodeDesc = PropertyService.getProperty("dataone.nodeDescription"); |
769 | 771 |
nodeTypeString = PropertyService.getProperty("dataone.nodeType"); |
770 | 772 |
nodeType = NodeType.convert(nodeTypeString); |
... | ... | |
812 | 814 |
Subject s = new Subject(); |
813 | 815 |
s.setValue(subject); |
814 | 816 |
node.addSubject(s); |
817 |
Subject contact = new Subject(); |
|
818 |
contact.setValue(contactSubject); |
|
819 |
node.addContactSubject(contact); |
|
815 | 820 |
node.setName(nodeName); |
816 | 821 |
node.setReplicate(nodeReplicate); |
817 | 822 |
node.setSynchronize(nodeSynchronize); |
Also available in: Unified diff
In MN.getCapabilities(), the required contact subject was not being added to the node instance from the dataone properties. Add it in.