Package org.dspace.disseminate

Examples of org.dspace.disseminate.CitationDocument


            if (CitationDocument.isCitationEnabledForBitstream(bitstream, context)) {
                // on-the-fly citation generator
                log.info(item.getHandle() + " - " + bitstream.getName() + " is citable.");

                FileInputStream fileInputStream = null;
                CitationDocument citationDocument = new CitationDocument();

                try {
                    //Create the cited document
                    tempFile = citationDocument.makeCitedDocument(bitstream);
                    if(tempFile == null) {
                        log.error("CitedDocument was null");
                    } else {
                        log.info("CitedDocument was ok," + tempFile.getAbsolutePath());
                    }
View Full Code Here


            // that are PDFs.
            for (Bitstream bitstream : bitstreams) {
                BitstreamFormat format = bitstream.getFormat();

                //If bitstream is a PDF document then it is citable.
                CitationDocument citationDocument = new CitationDocument();

                if(citationDocument.canGenerateCitationVersion(bitstream)) {
                    this.resBuilder.append(item.getHandle() + " - "
                            + bitstream.getName() + " is citable.");
                    try {
                        //Create the cited document
                        File citedDocument = citationDocument.makeCitedDocument(bitstream);
                        //Add the cited document to the approiate bundle
                        this.addCitedPageToItem(citedDocument, bundle, pBundle,
                                dBundle, displayMap, item, bitstream);
                    } catch (Exception e) {
                        //Could be many things, but nothing that should be
View Full Code Here

TOP

Related Classes of org.dspace.disseminate.CitationDocument

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.