Re: [Koha] Adding support for NORMARC to Koha 3
Dear tajoli,
Dear Magnus,
On Mon, 10 Nov 2008 11:04:10 +0100, "Magnus Enger" <magnus@enger.priv.no> wrote:
Dear all,
I'm trying to add support for NORMARC to Koha 3, a crucial step if Koha is going to get any attention here in Norway.
Are you sure of this ? It is quite a big task.
Yes, I'm quite sure Norwegian libraries and librarians will find a requirement to convert their beloved NORMARC-records into MARC21 before migrating to Koha quite a turn-off. I guess it will also be problematic to import records via Z39.50 from our national library or other large libraries into a MARC21 system. The size of the task - and the different sub-tasks involved - is one of the things I'm trying to figure out! ;-)
I start off with a working installation with the default MARC21 structure, and I have created an SQL-file that I run against the database in an attempt to delete MARC21 and replace it with NORMARC: http://github.com/MagnusEnger/normarc4koha/tree/master/normarc.sql
When I ran this against one of the beta versions prior to the stable 3.0 it seemed to work. Today, I can still view my NORMARC structure with /cgi-bin/koha/admin/marctagstructure.pl. But when I search for something in the OPAC, I get the following error:
First question: Do you have Zebra or not ?
Yep, Zebra is trotting along at a nice pace. Just to break the tasks down here:
To use the search with a 'new' MARC you need to setup the config of indexing,
That would mean providing the information found in /etc/zebradb/marc_defs/marc21/ http://git.koha.org/cgi-bin/gitweb.cgi?p=Koha;a=tree;f=etc/zebradb/marc_defs... marc21 but for NORMARC, right?
the setup of ISBD
That would be done through the ISBD pref?
and full views
Where should this be done?
and reindexing all.
With something like "rebuild_zebra.pl -b -a -z", right? What strikes me as somewhat strange about the behaviour I'm seeing now, is that reindexing does not seem to affect it. If I load my definition I get the error, without me doing any reindexing. To me it looks like Koha is doing some checking of the MARC-structure and throwing an error before it performs an actual search? Regards, Magnus
Hi Magnus, sorry for delay but I have many problems on other software.
What strikes me as somewhat strange about the behaviour I'm seeing now, is that reindexing does not seem to affect it. If I load my definition I get the error, without me doing any reindexing. To me it looks like Koha is doing some checking of the MARC-structure and throwing an error before it performs an actual search?
in fact koha do a check but on display, not on search. If you go to file /mnt/koha/lib/C4/Biblio.pm on line 3196 you can see that is a line in the sub get_biblio_authorised_values that do a check on your sql definition of NORMARC line 3813: $query = q(SELECT distinct authorised_value, kohafield FROM marc_subfield_structure WHERE authorised_value !='' AND (kohafield like 'biblio%' OR kohafield like '') ); after the setup of the check. So what can I suggest you ? In Intranet go to Administration System Preferences Insert in the search box 'isbd'. You find two prefernces: BiblioDefaultView ISBD Setup ISBD with NORMARC (it is setuped with MARC21). After change BiblioDefaultView to ISBD After go to http://<your server>:8080/cgi-bin/koha/catalogue/detail.pl?biblionumber=1 This is a direct link so you don't use Zebra. If you don't have record number 1, try 2, 3 etc. If all is ok you will see your record with your ISDB configuration. To setup the normal display go to <http://131.175.9.53:8080/cgi-bin/koha/mainpage.pl>Home <http://131.175.9.53:8080/cgi-bin/koha/admin/admin-home.pl>Administration MARC Links (I think, I'm not sure). Now you need to setup Zebra, storage and indexes. Rebuil the indexes from scratch After all those operation you need to work on authority. Until now I don't know more. Tell us the result after all operations. Bye Zeno Tajoli Zeno Tajoli CILEA - Segrate (MI) tajoliAT_SPAM_no_prendiATcilea.it (Indirizzo mascherato anti-spam; sostituisci quanto tra AT con @)
participants (2)
-
Magnus Enger -
Zeno Tajoli