Skip to content

Bibtex Writer: cannot create both issn and isbn for a book #121

@coliin8

Description

@coliin8

I am generating commonmeta json directly, as using commonmeta-py to generate metadata formats for new books.

I think I understand I can only have a single container object in commonmeta json, with one identifier and type.

This means if you provide a BookSeries in container you cannot provide both isbn for the book and issn for series.

So generating bibtex:

metadata = Metadata(boook_data, via="commonmeta") return metadata.write(to="bibtex")

code in write_bibtex_item is:

issn = ( container.get("identifier", None) if container.get("identifierType", None) == "ISSN" else None ) isbn = ( container.get("identifier", None) if container.get("identifierType", None) == "ISBN" else None )

so generated bibtex will never provide both together:

ISBN = {978-1-911712-56-5}, ISSN = {2996-5241},

Is it possible to consider the idea of multiple identifiers in the container - though I am not sure how that would effect other writers?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions