Skip to content
New issue

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

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

Already on GitHub? # to your account

Add MARC export #762

Open
aurimasv opened this issue Aug 5, 2014 · 8 comments
Open

Add MARC export #762

aurimasv opened this issue Aug 5, 2014 · 8 comments
Labels
New Translator Pull requests for new translators

Comments

@aurimasv
Copy link
Contributor

aurimasv commented Aug 5, 2014

I don't see a reason why we shouldn't offer this.

Re https://forums.zotero.org/discussion/38956/export-of-zotero-citation-to-marc-format-for-import-into-koha-lms

@zuphilip
Copy link
Contributor

zuphilip commented Sep 6, 2014

I will try to come up with a preliminary MARC21 XML export translator...

@aurimasv
Copy link
Contributor Author

aurimasv commented Sep 7, 2014

Ideally, I would say that we should add export to MARC (to the same translator using the same mappings to make sure we import what we export and vice-versa) and then add the MARC XML wrapper around it. That's obviously a lot of work though and would probably warrant a complete rewrite of the MARC translator (but that's not necessarily a bad thing, since we have at least one pull request that would benefit from a more modular MARC translator)

@zuphilip
Copy link
Contributor

zuphilip commented Sep 7, 2014

I agree with you in a "ideal setting". There might be some obstacles (or should we say challenges;-) in practise. First, I am not sure how a both-direction mapping can be represented at all (there might be clean-up functions, alternatives, dependencies in both directions). Second, I don't think I would technically manage that easily or at all. Moreover, the import translator tries to work for different MARC-dialects, where one export translator can only support one dialect.

I try to come up with a fast prototype. Here is the first version of a preliminary MARC21 XML export translator: https://github.com/zuphilip/translators/blob/marc21-export/MARC21XML.js Maybe, you can have a look at it. My overall goal was to try to export (at least for books) MARC records as nice as possible.

How should we proceed from here? Is a pull request for discussion helpful? Do you see a (coding) strategy how to "merge" import and export for MARC21?

@aurimasv
Copy link
Contributor Author

aurimasv commented Sep 7, 2014

I don't have time right now to look at this, but take a look at RIS for import/export from the same mapping.

@aurimasv aurimasv added the New Translator Pull requests for new translators label Nov 4, 2014
@ztajoli
Copy link

ztajoli commented Apr 27, 2016

I see the MARC21 XML export from https://github.com/zuphilip/translators/blob/marc21-export/MARC21XML.js.

My suggestion is to change line 370.
From
mapProperty(currentFieldNode, "subfield", {"code" : "h"} , descriptionArray.join(', ') );
to
mapProperty(currentFieldNode, "subfield", {"code" : "g"} , descriptionArray.join(', ') );

In MARC21 is better to insert volume, issue, pages of an article into 773 $g instead of 773 $h.
See the examples in official standard page:
https://www.loc.gov/marc/bibliographic/bd773.html

The best will be to create ALSO 773 $q but it is a complex task

@zuphilip
Copy link
Contributor

@ztajoli I bundled this export translator with some other library related translators into a new repo: https://github.com/UB-Mannheim/zotkat . These translators are working but should been seen as preliminary. Can you copy your note to a new issue there?

@adam3smith
Copy link
Collaborator

@AbeJellinek @dstillman -- thoughts on including MARC export? If we do want to we can adopt zuphilip's translator easily. If we don't we can close this.

@stweil
Copy link

stweil commented Jun 18, 2024

Are there other options how data can be transferred from Zotero to an integrated library system or to a discovery system? Or is it desired to revive this issue?

I have a Zotero library with several thousand books that should be presented on the Internet, ideally with the usual search options of a library catalog.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
New Translator Pull requests for new translators
Development

No branches or pull requests

5 participants