mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 13:03:11 +00:00
DS-3817: DSpace citation cover page - small fixes
This commit is contained in:
@@ -153,7 +153,7 @@ public class CitationPage extends AbstractCurationTask {
|
|||||||
//Create the cited document
|
//Create the cited document
|
||||||
Pair<InputStream, Long> citedDocument = citationDocument.makeCitedDocument(Curator.curationContext(), bitstream);
|
Pair<InputStream, Long> citedDocument = citationDocument.makeCitedDocument(Curator.curationContext(), bitstream);
|
||||||
//Add the cited document to the approiate bundle
|
//Add the cited document to the approiate bundle
|
||||||
this.addCitedPageToItem(citedDocument.getKey(), bundle, pBundle,
|
this.addCitedPageToItem(citedDocument.getLeft(), bundle, pBundle,
|
||||||
dBundle, displayMap, item, bitstream);
|
dBundle, displayMap, item, bitstream);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
//Could be many things, but nothing that should be
|
//Could be many things, but nothing that should be
|
||||||
@@ -188,7 +188,7 @@ public class CitationPage extends AbstractCurationTask {
|
|||||||
* A helper function for {@link CitationPage#performItem(Item)}. This function takes in the
|
* A helper function for {@link CitationPage#performItem(Item)}. This function takes in the
|
||||||
* cited document as a File and adds it to DSpace properly.
|
* cited document as a File and adds it to DSpace properly.
|
||||||
*
|
*
|
||||||
* @param citedDoc The temporary File that is the cited document.
|
* @param citedDoc The inputstream that is the cited document.
|
||||||
* @param bundle The bundle the cited file is from.
|
* @param bundle The bundle the cited file is from.
|
||||||
* @param pBundle The preservation bundle. The original document should be
|
* @param pBundle The preservation bundle. The original document should be
|
||||||
* put in here if it is not already.
|
* put in here if it is not already.
|
||||||
|
@@ -283,7 +283,7 @@ public class CitationDocumentServiceImpl implements CitationDocumentService, Ini
|
|||||||
generateCoverPage(context, document, coverPage, item);
|
generateCoverPage(context, document, coverPage, item);
|
||||||
addCoverPageToDocument(document, sourceDocument, coverPage);
|
addCoverPageToDocument(document, sourceDocument, coverPage);
|
||||||
|
|
||||||
//We already have the full PDF in memory, so keep it their
|
//We already have the full PDF in memory, so keep it there
|
||||||
try(ByteArrayOutputStream out = new ByteArrayOutputStream()) {
|
try(ByteArrayOutputStream out = new ByteArrayOutputStream()) {
|
||||||
document.save(out);
|
document.save(out);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user