Package org.dspace.app.sherpa.submit

Examples of org.dspace.app.sherpa.submit.SHERPASubmitService


            throws SQLException, ServletException, IOException
    {
        if (ConfigurationManager.getBooleanProperty(
                "webui.submission.sherparomeo-policy-enabled", true))
        {
            SHERPASubmitService sherpaSubmitService = new DSpace()
                    .getSingletonService(SHERPASubmitService.class);
            request.setAttribute("sherpa", sherpaSubmitService
                    .hasISSNs(context, subInfo.getSubmissionItem()
                            .getItem()));
        }

        // set to null the bitstream in subInfo, we need to process a new file
View Full Code Here


    public void make_sherpaRomeo_submission(Item item, Division divIn) throws WingException {


        if (ConfigurationManager.getBooleanProperty("webui.submission.sherparomeo-policy-enabled", true)){

            SHERPASubmitService sherpaSubmitService = new DSpace().getSingletonService(SHERPASubmitService.class);

            if(sherpaSubmitService.hasISSNs(context, item)) {
                List div = divIn.addList("submit-upload-new", List.TYPE_FORM);
                div.setHead(T_sherpa_title);

                //Since sherpa web service doesn't work reliable with more than 1 issn, perform the service for each issn
                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) {
View Full Code Here

TOP

Related Classes of org.dspace.app.sherpa.submit.SHERPASubmitService

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.