From: Demian K. <dem...@vi...> - 2012-04-16 14:57:58
|
I'm copying this message to solrmarc-tech in case anyone there can come up with a more elegant solution... but I have only a fairly crude suggestion for a way of achieving this effect: As far as I know, you can't specify different mappings to the same field in SolrMarc. However, you could achieve the effect by modifying the Solr schema with a non-stored temporary field and a copyField directive that pushes values from this temporary field into the building field. So in solr/biblio/conf/schema.xml, you would add: <field name="building_tmp" type="string" indexed="false" stored="false" multiValued="true"/> <copyField source="building_tmp" dest="building"/> and in import/marc_local.properties you would add: building = 852a, building_map.properties building_tmp = 8562, building_map2.properties As I say, this is an ugly solution... but I think it would at least solve your problem. Hopefully somebody else has a better idea! (Of course, another possibility would be to use a custom BeanShell script... which might be cleaner but more work). - Demian > -----Original Message----- > From: Katharina Wolkwitz [mailto:wol...@fh...] > Sent: Monday, April 16, 2012 10:50 AM > To: vuf...@li... > Subject: [VuFind-General] Different mapping-files for different fields in one > facet? > > Hello, > > is there a way to connect different mapping-files for different fields in one > facet? > > In our case, we'd like to map the contents of 852|a and 856|2 into the > building > facet but tranlate the content of 856|2 differently from the same content in > 852|a? > > At the moment, our /usr/local/vufind/import/marc_local.properties has a line: > > building = 852a:8562, building_map.properties > > which works, but not for the differetiation described above... > > Since I'm off work now, I wish everybody a nice day! > Kate > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > _______________________________________________ > VuFind-General mailing list > VuF...@li... > https://lists.sourceforge.net/lists/listinfo/vufind-general |