[Koha-devel] [Koha] Problems with frameworks

Marcel de Rooy M.de.Rooy at rijksmuseum.nl
Thu Jan 23 13:40:06 CET 2014


It seems to me that 541$e should not map to an item field (in the first place). I checked my data, i do not have it mapped to a koha field. 
I have 952$i mapped to stocknumber (although we do not use it).  

Note also that there is a patch for stocknumber (bugzilla 10544) 

-----Oorspronkelijk bericht-----
Van: koha-bounces at lists.katipo.co.nz [mailto:koha-bounces at lists.katipo.co.nz] Namens Mark Tompsett
Verzonden: woensdag 22 januari 2014 18:14
Aan: koha at lists.katipo.co.nz
Onderwerp: [Koha] Problems with frameworks

Greetings,

I am use 3.14.x and master, though I think this problem goes back a bit further. I am using MARC21.

I log into the staff client. I click Koha administration.  I click MARC bibliographic framework. In the left hand side, I scroll down to find MARC bibliographic framework test. I click it. I am then shown a pretty table, which tells me “You have 1 error(s) in your MARC configuration. Please fix them before using Koha”.

I have back end access, so I figured I’d try to make sense of the message. I see it ran http://192.168.45.28:8080/cgi-bin/koha/admin/checkmarc.pl, so I take a look at the source for admin/checkmarc.pl to see if I can determine how the error was triggered.

The second line in the table says “item fields”, so I figure it is talking about lines 87 to 110 in master. I see the SQL is:
    select tagfield,tab,kohafield from marc_subfield_structure where kohafield like "items.%" and tab >=0;
So, I try running that in my backend mysql client.

There are 447 rows, and most are on tab 10, but tag 541 isn’t always? It’s items.stocknumber and so I try a different query:
    select tagfield,tagsubfield, tab,kohafield,frameworkcode from marc_subfield_structure where kohafield like "items.stocknumber";
And here in begins the confusion.

I see that 952$i and 541$e are sometimes mapping to the same kohafield items.stocknumber, and occasionally they are not. I also see 541$e sometimes on tag 5, 9, or 10. So, can anyone clear up what they should map to, if anything, and what tab they are supposed to be on?

GPML,
Mark Tompsett
_______________________________________________
Koha mailing list  http://koha-community.org
Koha at lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha


More information about the Koha-devel mailing list