From: Demian K. <dem...@vi...> - 2012-12-12 13:55:29
|
You should be able to duplicate all of the LC-specific code and configuration for Pettee -- all of the call number fields in solr/biblio/conf/schema.xml, all of the import configuration in import/marc.properties, all of the field definitions in web/conf/searchspecs.yaml, and the browse code I previously mentioned. Then you can run the two systems in parallel. Obviously, if you want to test this without doing all of that work first, a good strategy might be to test loading the Pettee data into the existing LC fields before you invest in heavy customization. If it works well, you're half way there, and you can then go ahead and do all the duplication in order to allow LC and Pettee to coexist. Let me know if you need more specific details on anything. - Demian > -----Original Message----- > From: Carlos Lopez [mailto:cl...@dm...] > Sent: Tuesday, December 11, 2012 9:09 PM > To: Demian Katz > Cc: vufind-tech (vuf...@li...) > Subject: Re: [VuFind-Tech] LCC vs Dewey vs ... other classification schema? > > Thanks Demian > > I see what you mean about the code (not that I'm great with PHP nor with > Javascript). > > Pettee Classification is similar enough to LCC (an alphanumeric sequence > with classification numbers starting with 2 letters, often followed by 2 > or more numerals). Do you think if I were to simply change the call > number tags in import/marc.properties (and the definitions in > import/translation_maps/callnumber_*) we'd get a (Pettee) call number > browse working? Or do you think we should set up an alternate call > number browse (for Pettee)? > > Of course we'd ideally also like to provide LCC and Dewey browsing or > faceting at some stage, so instructions on how to set up custom browse > indexes would be great. However, my main priority right now is to get > something locally usable and ready to be usable (even if at a 'beta' > stage by early in the New Year. > > Regards, > Carlos. > > On 12/12/12 01:05, Demian Katz wrote: > >> Where would I find this code? I looked through the ...../solr folder > >> several days ago and couldn't find anything that I thought was relevant > >> (though I may have missed something > > > > The browse code is part of the PHP. The controllers are found in > web/services/Browse, the AJAX endpoint is web/services/AJAX/JSON_Browse, the > display templates are found in the Browse folder of your chosen theme, and the > Javascript code is found in js/browse.js within your theme. > > > > As I've probably already mentioned, this code isn't pretty... but as long > as your call numbers are structured relatively similarly to one of the > existing supported call numbers, you can probably get them working through > copy-and-paste simply by changing some field names in templates and adjusting > the controller enough to include a new option in the browse menu. > > > > Once you've taken a look at this, let me know if you need more specific > questions answered. > > > >> Where is this database stored? Would it be easier to modify the database > >> or the indexing script? > >> > >> It's probably more efficient (and less time consuming) to include call > >> number data in import, rather than to have to fetch it from the ILS, so > >> I'll drop that particular question. > > > > The AlphaBrowse databases are generated by the index-alphabetic-browse.sh > script in VuFind's root. You definitely need to index your call numbers to > the Solr index whether or not you use AlphaBrowse. If you decide to enable > AlphaBrowse after indexing the call numbers, you just need to modify the index > script to create a new browse index for the chosen fields, then adjust the > Solr and VuFind configurations to access that new database. > > > > If you decide to go this route, let me know and I'll update the > documentation in the wiki to include more information on creating a custom > browse index; I notice that this information is currently undocumented. > > > > - Demian > > > > > > -- > ___________________ > > Carlos Lopez > Cataloguer > The Dalton McCaughey Library > 1 Morrison Close > Parkville, Vic. 3052 > Australia > Ph: +61 3 93408885 > Fax: +61 3 93408889 > www.dml.vic.edu.au |