[VUFIND-487] Export MARC records from Solr Created: 20/Dec/11 Updated: 20/Jan/21 Resolved: 20/Jan/21 |
|
Status: | Resolved |
Project: | VuFind® |
Components: | CLI Tools |
Affects versions: | None |
Fix versions: | None |
Type: | New Feature | Priority: | Minor |
Reporter: | Oliver Goldschmidt | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original estimate: | Not Specified |
Attachments: | solrdump-2021.php solrdump.php |
Description |
Here is a script, that should export all MARC records from a Vufind Solr index. It takes the fullrecord fields and stores the content as MarcXML. Perhaps this script can help anyone. |
Comments |
Comment by Demian Katz [ 23/Jan/12 ] |
Mark Triggs' MARCgrep tool might also be of interest: https://github.com/marktriggs/marcgrep It adds search capabilities to the export process, though since it's written in Clojure it requires more work to get up and running than the attached PHP script. |
Comment by Demian Katz [ 19/Jan/21 ] |
This ticket has been open for nearly ten years, and the original solrdump.php no longer works reliably. I have just uploaded a solrdump-2021.php file which makes a few slight adjustments to bring things up to date. You can now drop this file into your $VUFIND_HOME directory and it should run correctly.
Note that I do not recommend pulling MARC records out of your Solr index under normal circumstances, which is why this is not a standard feature of VuFind... but there are some edge cases/emergency situations where this might be useful, so I've taken the time to bring this ticket up to date. |
Comment by Demian Katz [ 20/Jan/21 ] |
Also note that VuFind's built in OAI-PMH tools offer an even better solution to this problem. You can enable VuFind's OAI-PMH server, and then use VuFind's OAI-PMH harvest tool to write all of the MARC records to disk.
Because of this existing solution, I am closing the ticket. See this video for an example of how to use the tools: https://vufind.org/wiki/videos:oai-pmh_server_and_harvest_functionality |