Package org.dspace.authority.orcid.model

Examples of org.dspace.authority.orcid.model.Bio


        if (XMLErrors.check(xml)) {

            try {
                Iterator<Node> iterator = XMLUtils.getNodeListIterator(xml, ORCID_BIO);
                while (iterator.hasNext()) {
                    Bio bio = convertBio(iterator.next());
                    result.add(bio);
                }
            } catch (XPathExpressionException e) {
                log.error("Error in xpath syntax", e);
            }
View Full Code Here


        return result;
    }

    private Bio convertBio(Node node) {
        Bio bio = new Bio();

        setOrcid(node,bio);
        setPersonalDetails(node, bio);
        setContactDetails(node, bio);
        setKeywords(node, bio);
View Full Code Here

    }

    public Bio getBio(String id) {
        Document bioDocument = restConnector.get(id + "/orcid-bio");
        XMLtoBio converter = new XMLtoBio();
        Bio bio = converter.convert(bioDocument).get(0);
        bio.setOrcid(id);
        return bio;
    }
View Full Code Here

        return authorities;
    }

    @Override
    public AuthorityValue queryAuthorityID(String id) {
        Bio bio = getBio(id);
        return OrcidAuthorityValue.create(bio);
    }
View Full Code Here

TOP

Related Classes of org.dspace.authority.orcid.model.Bio

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.