From c6a2e01ef3e9cbfe9c5c7b5f04a3b31f1c9b3c4c 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. --- 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 92467ab..6983230 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 b0de609..b84db99 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -152,7 +152,7 @@ Series: - + /cgi-bin/koha/catalogue/search.pl?q=se:" @@ -167,7 +167,7 @@ - + /cgi-bin/koha/catalogue/search.pl?q=se:" @@ -183,23 +183,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 e16db73..3fdcb19 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:"" -- 1.7.5.4