Skip navigation
Currently Being Moderated

Metadata and ePub export and custom XMP fields...

Dec 5, 2012 6:35 AM

Hi,

 

Does anyone know of a way to add metadata apart from the fields that

already are available in the ePub export dialog and XMP panels? The

iBookstore requires a bunch of stuff that I can't find any place to add.

 

This trial script that I've put together does add an entry to the DC

metadata (as you'll be able to see in the XMP panel), but it is not

retained when the InDesign document is exported. (I believe that it was

from Tomaxxi's website that I got quite a lot of help for the script.)

 

If I don't get any answers here I'll take this over to the scripting forum.

 

Thanks,

Ariel

 

PS I hope the following script comes through ok. I've got to post this

via email, which often mangles things. Apologies in advance if that is

the case.

 

myDocXMP = app.activeDocument.metadataPreferences;

destNamespace = "http://purl.org/dc/elements/1.1/";

destContName = "ArielsContainer";

destNodeName = "ArielsSpecialMetdataField";

nodeValue = "Great ePub!" ;

myDocXMP.createContainerItem(destNamespace, destContName, undefined,

ContainerType.ALT);

myDocXMP.setProperty(destNamespace, destContName+"[1]", nodeValue);

 

 
Replies
  • Currently Being Moderated
    Dec 5, 2012 9:24 AM   in reply to [Ariel]

    I suppose the first thing to confirm is which categories of metadata ID exports to e-pub.  My workhorse is still IDCS4, hardly the basis for serious discussion of e-pub export, but IDCS4 at least seems to put only some basic Dublin Core properties into content.opf: title, subject, description, subject, and rights.  However, I had added some custom metadata categories to my test *.indd file (tagged with character styles in a non-printing story on the opening page), and those survived into the main *.xhmtl. So that avenue might serve as the basis for additional post-ID processing -- which ID e-pubs are said to require anyway.

     

    As for inserting the metadata in ID, I added some PRISM categories to ID's stock XMP via a modification of of the generic info panel that comes with the XMP SDK.  This info exports properly to PDF, where I can see it with Acrobat Pro via the Additional Metadata button on the Properties' Description tab.  (Tomaxxi's very helpful material was the basis for a simple script that copies my non-printing info into proper XMP.)  I was able to move my CS4 panel to a test-bed machine with IDCS5.5, but haven't tried e-pub export there.

     

    Good luck!

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 5, 2012 7:26 PM   in reply to [Ariel]

    I know too little about e-pub to be a reliable source for information, and my programming skills are rudimentary.  Still, I'd like to think that if one can get useful metadata into an e-pub file then that offers an opportunity for further processing to get where you want to go.

     

    My non-printing story is simply a non-printing text box I put in the margin on the title page of articles with basic DC info: this makes it easy to see on-screen in ID without calling up ID's File Info; I can adjust those details right there, and then use my little *.jsx (based on tomaxxi) to copy them into the actual XMP metadata.  I was surprised that this (non-printing) stuff showed up in a quickie test of ID's e-pub export, but as I say my character styles survived so that quirk could be useful.

     

    PRISM provides a metadata standard for publishing that includes bibliographic details omitted from the Dublin Core, stuff needed for academic citations, such as an article's starting and ending pages.  Some publishers (e.g., the Nature Group) think this is worth including in their journal's PDF metadata, and some bibliographic programs (e.g., Zotero) use it.  I figure even if PRISM goes the way of Betamax, anyone who cares can quickly convert my XML-based info to some other bibliographic standard.

     

    David

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points