Example usage for com.itextpdf.text.xml.xmp DublinCoreSchema IDENTIFIER

List of usage examples for com.itextpdf.text.xml.xmp DublinCoreSchema IDENTIFIER

Introduction

In this page you can find the example usage for com.itextpdf.text.xml.xmp DublinCoreSchema IDENTIFIER.

Prototype

String IDENTIFIER

To view the source code for com.itextpdf.text.xml.xmp DublinCoreSchema IDENTIFIER.

Click Source Link

Document

Unique identifier of the resource.

Usage

From source file:org.crossref.pdfmark.unixref.Journal.java

License:Open Source License

public void writeXmp(SchemaSet schemaSet) throws XPathExpressionException {
    JournalArticle article = getArticle();
    XmpSchema dc = schemaSet.getDc();//w  w w .  j  a  v a  2 s  .com
    XmpSchema prism = schemaSet.getPrism();
    XmpSchema pdfx = schemaSet.getPdfx();

    addToSchema(dc, DublinCoreSchema.CREATOR, article.getContributors());
    addToSchema(dc, DublinCoreSchema.TITLE, article.getTitles());
    addToSchema(dc, DublinCoreSchema.DATE, article.getDate());
    addToSchema(dc, DublinCoreSchema.IDENTIFIER, article.getDoi());

    addToSchema(prism, Prism21Schema.PUBLICATION_DATE, article.getDate());
    addToSchema(prism, Prism21Schema.DOI, article.getDoi());
    addToSchema(prism, Prism21Schema.ISSN, getPreferredIssn());
    addToSchema(prism, Prism21Schema.E_ISSN, getElectronicIssn());
    addToSchema(prism, Prism21Schema.ISSUE_IDENTIFIER, getDoi());
    addToSchema(prism, Prism21Schema.PUBLICATION_NAME, getFullTitle());
    addToSchema(prism, Prism21Schema.VOLUME, getVolume());
    addToSchema(prism, Prism21Schema.NUMBER, getIssue());
    addToSchema(prism, Prism21Schema.STARTING_PAGE, article.getFirstPage());
    addToSchema(prism, Prism21Schema.ENDING_PAGE, article.getLastPage());
    addToSchema(prism, Prism21Schema.URL, MarkBuilder.getUrlForDoi(article.getDoi()));

    addToSchema(pdfx, PdfxSchema.DOI, article.getDoi());
}