From: Eric Lease Morgan <emorgan@nd...> - 2010-07-20 15:39:19
How does the SolrMARC denote the format of a record?
When I look at the marc.properties file for SolrMARC is see that format is defined thus:
format = custom, getFormat, format_map.properties
Okay, but how do I figure out what this means? Or more to my immediate problem, how is a MARC record denoted as a serial, book, kit, manuscript, etc?
University of Notre Dame
I'm copying this response to the solrmarc-tech list, since there are some users there beyond the VuFind community who might also be able to help if you have follow-up questions.
Basically, the line means "call a custom Java function called getFormat in the VuFind-specific indexer class, then map the output of that function through the format_map.properties file to get the final human-readable result."
You'll notice that marc_local.properties has this line commented out:
#format = script(format.bsh), getFormat, format_map.properties
If you uncomment this, it will override the line in marc.properties and instead perform format determination using the BeanShell script found in import/index_scripts/format.bsh. The BeanShell script contains exactly the same logic as the compiled Java version, but it's easier to customize since you can change it without having to rebuild SolrMarc.
The default format determination is not wonderful, though it's okay for basic needs -- at Villanova, we use a completely different version customized to our local needs (which I'm happy to share if you like, though it may be of limited usefulness). Some of the other example directories in the SolrMarc source also offer alternative format algorithms.
> -----Original Message-----
> From: Eric Lease Morgan [mailto:emorgan@...]
> Sent: Tuesday, July 20, 2010 11:39 AM
> To: vufind-tech@...
> Subject: [VuFind-Tech] format of a record
> How does the SolrMARC denote the format of a record?
> When I look at the marc.properties file for SolrMARC is see that format
> is defined thus:
> format = custom, getFormat, format_map.properties
> Okay, but how do I figure out what this means? Or more to my immediate
> problem, how is a MARC record denoted as a serial, book, kit,
> manuscript, etc?
> Eric Morgan
> University of Notre Dame
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> Vufind-tech mailing list