Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support generating of metadata.xmp out of a bib file using the command line. #319

Open
koppor opened this issue Mar 5, 2018 · 6 comments
Labels
component: xmp Issues concerning the XMP PDF metadata

Comments

@koppor
Copy link
Member

koppor commented Mar 5, 2018

Motivation: Include XMP data using the authorarchive package in conjunction with the xmpincl package.

When using authorarchive, one provides a bib file, which can be converted to all other formats (using JabRef).

The xmpincl package needs a metadata.xmp file.

Example:

<x:xmpmeta xmlns:x='adobe:ns:meta/'>
 <rdf:RDF xmlns="http://web.resource.org/cc/"
 xmlns:dc="http://purl.org/dc/elements/1.1/"
 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
 <Work rdf:about="">
 <dc:title>xmpincl</dc:title>
 <dc:date>2005</dc:date>
</rdf:RDF>
</x:xmpmeta>

Can this be written using JabRef?

One can imaginge: Input bib file: For each bib entry, generate KEY.xmp

@johannes-manner
Copy link

So your idea is, to add another utility method to the xmp cli to generate a single .xmp for every bibentry?

An additional feature for the xmp cli would be, to generate .xmp files for metadata included in a pdf file.

@koppor
Copy link
Member Author

koppor commented Mar 8, 2018

Yes, this is my idea.

The additional idea is nice, but I don't know who will use it. - We use BibTeX as standard format and JabRef can convert back and forth. 😇

@tobiasdiez
Copy link
Member

Isn't this just another exporter?

@koppor
Copy link
Member Author

koppor commented Mar 8, 2018

Oh, yes, it is. JabRef should support --split, which is IMHO currently not the case.

convert my.bib --format:xmp --split

@johannes-manner
Copy link

So, the idea is to implement a new gui exporter, which is used in the menu bar under tools/export entry as xmp metadata file? And additionally a xmp cli functionality to use this feature?

I need more context information on how to plug in an exporter in JabRef :)

@koppor
Copy link
Member Author

koppor commented Mar 8, 2018

"Just" a normal exporter. User interface:

So, if the XMP is written es Exporter (org.jabref.logic.exporter.Exporter), following should work:

Single XMP file:

java -jar JabRef.jar -o target.xmp,xmp -n true original.bib

Multiple XMP files - just having split as magic key.

java -jar JabRef.jar -o split,xmp -n true original.bib

Alternative, but that could be hard to implement:

java -jar JabRef.jar -o xmp --split -n true original.bib

@koppor koppor added the component: xmp Issues concerning the XMP PDF metadata label Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: xmp Issues concerning the XMP PDF metadata
Projects
None yet
Development

No branches or pull requests

3 participants