From: Jacopo A. <jac...@st...> - 2013-06-28 11:48:01
|
Il 24/06/2013 14:22, Demian Katz ha scritto: > You should be able to meet all of your needs through SolrMarc configuration. > > The default VuFind SolrMarc configuration can be found in import/import.properties (or local/import/import.properties, if you are using VuFind 2 with the local settings directory enabled). The import.properties file then specifies which MARC mappings file(s) are used to load data (by default, it's marc.properties for default settings with overrides in marc_local.properties). > > If you want to use different settings for different libraries, you can create copies of import.properties for each library you are working with. These can then use different encoding settings and point to different mapping properties files if necessary (for example, if you want to use a different hard-coded institution field for each library to distinguish between them). There is a -p command-line switch on the import-marc script which can be used to tell SolrMarc which import.properties file to use, so you can specify the appropriate configuration file for each library that you work with. Thank you Demian, we managed this :) > Regarding Unimarc, I have just opened a JIRA ticket on the subject: > > http://vufind.org/jira/browse/VUFIND-828 > > Attached to this ticket is a uni.marc.properties file contributed by Daniel Bourrion which contains marc.properties-style mappings for Unimarc. It is not complete and may need some refinements because it is a few years old, but it might be a helpful starting point. Another option may be to look into whether tools exist to convert Unimarc to MARC21 -- if they do, then it might be easier to simply convert the data prior to loading it into VuFind. Ok, the file was a little outofdate and produced an error, but we remapped it and now it works. We commented the auth_author line. We have some issues about the unimarc import. For example the "holding" output is blank. You can see differences between a marc21 import and a unimarc import here: http://www.lattuga.net/vufind/Search/Results?lookfor=spagna&type=AllFields&submit=Find The records with "located" field are the marc21 one, others are unimarc. If you check a unimarc record: http://www.lattuga.net/vufind/Record/ASF144/Details#tabnav You can see no "holding" information, although we rewrited sample.php to be sure adding in the different marc.properties files what is suggested here: http://vufind.org/wiki/solrmarc#customizing_record_ids And then rewriting sample.php (this is a part of the code): public function getStatus($id) { if (substr($id, 0, 3)=='ASF') { $holding[] = array('availability' => 1, 'status' => 'Available', 'location' => 'Archivio Storico della FAI, Imola', 'reserve' => 'No', 'callnumber' => 'un numero', 'duedate' => '', 'number' => 1); } else if (substr($id, 0, 3)=='TRA') { $holding[] = array('availability' => 1, 'status' => 'Available', 'location' => 'Biblioteca Enrico Travaglini, Fano', 'reserve' => 'No', 'callnumber' => 'un altro numero', 'duedate' => '', 'number' => 1); } return $holding; } For the second "if" everything works, for the first blank output as reported. Any hint? > I hope this answers all of your questions, but please let me know if you need more details or clarification on anything! > > - Demian Thank you for your support! Jacopo |