Package org.dspace.app.sherpa

Examples of org.dspace.app.sherpa.SHERPAResponse


        Item item = Item.find(context, itemID);
        if (item == null)
        {
            return;
        }
        SHERPAResponse shresp = sherpaSubmitService.searchRelatedJournals(
                context, item);
        if (shresp.isError())
        {
            request.setAttribute("error", new Boolean(true));
        }
        else
        {
            List<SHERPAJournal> journals = shresp.getJournals();
            if (journals != null)
            {
                Object[][] results = new Object[journals.size()][];
                if (journals.size() > 0)
                {
                    Iterator<SHERPAJournal> ijourn = journals.iterator();
                    int idx = 0;
                    while (ijourn.hasNext())
                    {
                        SHERPAJournal journ = ijourn.next();
                        List<SHERPAPublisher> publishers = shresp
                                .getPublishers();
                        results[idx] = new Object[] {
                                journ,
                                publishers != null && publishers.size() > 0 ? publishers
                                        .get(0) : null };
View Full Code Here


                Set<String> issns = sherpaSubmitService.getISSNs(context, item);
                Iterator<String> issnsIterator = issns.iterator();

                int i = 0;
                while (issnsIterator.hasNext()) {
                    SHERPAResponse shresp = sherpaSubmitService.searchRelatedJournalsByISSN(issnsIterator.next());
                    java.util.List<SHERPAJournal> journals = shresp.getJournals();
                    java.util.List<SHERPAPublisher> publishers = shresp.getPublishers();

                    if (CollectionUtils.isNotEmpty(journals)) {
                        for (SHERPAJournal journ : journals) {
                            SHERPAPublisher pub = publishers.get(0);
View Full Code Here

TOP

Related Classes of org.dspace.app.sherpa.SHERPAResponse

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.