From magnus@enger.priv.no Fri Apr 29 15:09:36 2011 From: Magnus Enger To: koha-devel@lists.koha-community.org Subject: [Koha-devel] Why is Dewey in the su index? Date: Fri, 29 Apr 2011 15:09:33 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9200731223637574464==" --===============9200731223637574464== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, all! I just had a library ask me about how they could best search for a specific Dewey number (and not as part of a call number, but on it's own). After a bit of head-scratching I discovered that searching for the Dewey-number as a subject gave good results (e.g. /cgi-bin/koha/catalogue/search.pl?idx=3Dsu&q=3D355&op=3Dand&idx=3Dkw&op=3Dand= &idx=3Dkw&sort_by=3Drelevance). Now the trouble is I was unable to leave well enough alone, and started trying to figure out why Dewey is included in the su index. And I'm still scratching my head... Normally I would expect to find the answer in one of the following files, but this seems like a dead end: etc/zebradb/marc_defs/normarc/biblios/record.abs melm 082 Dewey-classification:w,Dewey-classification:s etc/zebradb/biblios/etc/bib1.att att 13 Dewey-classification etc/zebradb/ccl.properties #Classification-Dewey 13 A classification number from 082 # the Dewey Decimal # Classification, developed by # Melvyl Dewey. #Dewey-classification 1=3D13 I have tried also tried grep'ing throught the source for Dewey-classification, with meager results (the mention in Search.pm is just in a list of "available indexes"): C4/Search.pm: 'Dewey-classification', etc/zebradb/biblios/etc/bib1.att:att 13 Dewey-classification etc/zebradb/ccl.properties:#Dewey-classification 1=3D13 etc/zebradb/marc_defs/unimarc/biblios/record.abs:melm 676$a Dewey-classification:w,Dewey-classification:s etc/zebradb/marc_defs/normarc/biblios/record.abs:melm 082 Dewey-classification:w,Dewey-classification:s etc/zebradb/marc_defs/marc21/biblios/record.abs:melm 082 Dewey-classification:w,Dewey-classification:s koha-tmpl/opac-tmpl/prog/en/modules/opac-browser.tt: [% LEVEL_LOO.description |html %] koha-tmpl/opac-tmpl/prog/nb-NO/modules/opac-browser.tt: [% LEVEL_LOO.description |html %] If anyone could shed some light on why Dewey-numbers are available in the su index I would be eternally grateful! Best regards, Magnus Enger libriotech.no --===============9200731223637574464==-- From gmcharlt@gmail.com Fri Apr 29 16:48:29 2011 From: Galen Charlton To: koha-devel@lists.koha-community.org Subject: Re: [Koha-devel] Why is Dewey in the su index? Date: Fri, 29 Apr 2011 10:48:24 -0400 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7886508500033130450==" --===============7886508500033130450== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, On Fri, Apr 29, 2011 at 9:09 AM, Magnus Enger wrote: > If anyone could shed some light on why Dewey-numbers are available in > the su index I would be eternally grateful! Try looking at it the other way around. Here are the MARC fields that are mapped to the Subject index: melm 600$a Name-and-title,Name,Personal-name,Subject-name-personal,Subje= ct melm 600$t Name-and-title,Title,Subject melm 600 Name,Personal-name,Subject-name-personal,Subject,Subject:p melm 610 Name,Subject,Subject:p,Corporate-name melm 611 Conference-name,Name,Subject,Subject:p melm 630 Subject,Subject:p melm 650 Subject,Subject:p melm 651 Name-geographic,Subject,Subject:p melm 653 Subject,Subject:p melm 654 Subject,Subject:p melm 655 Subject,Subject:p melm 656 Subject,Subject:p melm 657 Subject,Subject:p melm 690 Subject,Subject:p What's in one of the records that are being retrieved? Do any of the subject field (e.g., the 690) contain a copy of the Dewey number? Or alternatively, do any of the authorized subject headings contain a $9 with "355" in the link to the authority record? Regards, Galen --=20 Galen Charlton gmcharlt@gmail.com --===============7886508500033130450==-- From magnus@enger.priv.no Fri Apr 29 19:05:29 2011 From: Magnus Enger To: koha-devel@lists.koha-community.org Subject: Re: [Koha-devel] Why is Dewey in the su index? Date: Fri, 29 Apr 2011 19:05:28 +0200 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2481041041951647687==" --===============2481041041951647687== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On 29 April 2011 16:48, Galen Charlton wrote: > What's in one of the records that are being retrieved?  Do any of the > subject field (e.g., the 690) contain a copy of the Dewey number? That's exactly it! The records that were returned when searching for the Dewey-number had them in the 600 fields. Thanks for changing my perspective and saving me from a sleepless night! And of course uncommenting #Dewey-classification 1=13 in etc/zebradb/ccl.properties made it possible to use that as an index. > Or > alternatively, do any of the authorized subject headings contain a $9 > with "355" in the link to the authority record? No authorities involved! Best regards, Magnus Enger libriotech.no --===============2481041041951647687==--