From 7a54bc53f6fcc8e1002e5397203cbc584dc31cb2 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 28 Nov 2011 07:25:37 +0100 Subject: [PATCH] Bug 5369: se queries with paranthesis fail This patch does several things to make the search work better: 1) Adding "" around search terms for queries on index se. 2) Make links for 8xx obey the UseControlNumber system preference 3) Fix the indexing for 8xx fields, as they were not included in the se index before Note: Make sure you copy the new record.abs into your koha-dev directory and reindex before testing. To test: 1) Add records using the following fields: 440$a 490$a ind. 1 = empty or 0 490$a ind. 1 = 1 800$a, 810$a, 811$a or 830$a Example value taken form bug description, should only work after applying the patch: DHEW publication no. (HSM) 73-1804 Please also test with other examples. Signed-off-by: Jared Camins-Esakov (cherry picked from commit 4cd81a8d0f2eeccc71d2b1409f35c8ee57314b8a) Signed-off-by: Chris Nighswonger --- etc/zebradb/marc_defs/marc21/biblios/record.abs | 16 ++++++++-------- .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 12 ++++++------ .../prog/en/xslt/MARC21slim2OPACDetail.xsl | 8 ++++---- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/etc/zebradb/marc_defs/marc21/biblios/record.abs b/etc/zebradb/marc_defs/marc21/biblios/record.abs index 92467ab103..6983230f01 100755 --- a/etc/zebradb/marc_defs/marc21/biblios/record.abs +++ b/etc/zebradb/marc_defs/marc21/biblios/record.abs @@ -241,27 +241,27 @@ melm 785$w Record-control-number melm 785 Title,Title:p,Title-later,Related-periodical melm 787$w Record-control-number -melm 800$a Name-and-title +melm 800$a Name-and-title,Title-series:w,Title-series:p #melm 800$t author,Author-title,Name-and-title,Title,Title-series -melm 800$t Author-title,Name-and-title,Title,Title-series +melm 800$t Author-title,Name-and-title,Title,Title-series:w,Title-series:p melm 800$9 Koha-Auth-Number melm 800$w Record-control-number melm 800 Author,Author-name-personal,Name,Personal-name -melm 810$a Name-and-title -melm 810$t Author-title,Name-and-title,Title,Title-series +melm 810$a Name-and-title,Title-series:w,Title-series:p +melm 810$t Author-title,Name-and-title,Title,Title-series:w,Title-series:p melm 810$w Record-control-number melm 810$9 Koha-Auth-Number melm 810 Author,Corporate-name,Author-name-corporate,Name -melm 811$a Name-and-title +melm 811$a Name-and-title,Title-series:w,Title-series:p melm 811$9 Koha-Auth-Number #melm 811$t author,Author-title,Name-and-title,Title,Title-series -melm 811$t Author-title,Name-and-title,Title,Title-series +melm 811$t Author-title,Name-and-title,Title,Title-series:w,Title-series:p melm 811$w Record-control-number melm 811 Author,Author-name-corporate,Name,Conference-name melm 830$w Record-control-number melm 830$9 Koha-Auth-Number -melm 830 Title,Title-series -melm 840 Title,Title-series +melm 830 Title,Title-series:w,Title-series:p +melm 840 Title,Title-series:w,Title-series:p ############################### # Koha Local-Use Biblio Indexes diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index 6c640b2d05..c73990d3b8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -155,7 +155,7 @@ Series: - + /cgi-bin/koha/catalogue/search.pl?q=se:" @@ -170,7 +170,7 @@ - + /cgi-bin/koha/catalogue/search.pl?q=se:" @@ -186,23 +186,23 @@ - + - at + a_t - + /cgi-bin/koha/catalogue/search.pl?q=se:"" - at + a_t diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl index 2d888806fa..f0660a7be6 100755 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl @@ -210,7 +210,7 @@ Series: - + /cgi-bin/koha/opac-search.pl?q=se:" @@ -225,7 +225,7 @@ - + /cgi-bin/koha/opac-search.pl?q=se:" @@ -241,7 +241,7 @@ - + @@ -253,7 +253,7 @@ - + /cgi-bin/koha/opac-search.pl?q=se:"" -- 2.39.5