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

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

Introduction

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

Prototype

String DATE

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

Click Source Link

Document

Date(s) that something interesting happened to 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();/*from  ww w .  ja v  a2  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());
}