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

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

Introduction

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

Prototype

String CREATOR

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

Click Source Link

Document

The authors of the resource (listed in order of precedence, if significant).

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();//ww  w  .j a  va2s  .  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());
}