From 853ad792a59ce892b1b5c00cf204f2c8e2941e52 Mon Sep 17 00:00:00 2001 From: tipaul Date: Mon, 3 May 2004 09:28:39 +0000 Subject: [PATCH] css'ing & improving MARC search --- .../intranet-tmpl/default/en/search.marc/result.tmpl | 2 -- .../intranet-tmpl/default/en/search.marc/search.tmpl | 2 +- search.marc/search.pl | 12 ++++++++---- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/default/en/search.marc/result.tmpl b/koha-tmpl/intranet-tmpl/default/en/search.marc/result.tmpl index c3eb08ae09..0fa3eb6165 100644 --- a/koha-tmpl/intranet-tmpl/default/en/search.marc/result.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/search.marc/result.tmpl @@ -33,7 +33,6 @@
- @@ -43,7 +42,6 @@ - diff --git a/koha-tmpl/intranet-tmpl/default/en/search.marc/search.tmpl b/koha-tmpl/intranet-tmpl/default/en/search.marc/search.tmpl index e074fff02c..8717dac8cb 100644 --- a/koha-tmpl/intranet-tmpl/default/en/search.marc/search.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/search.marc/search.tmpl @@ -79,7 +79,7 @@

-
+

More fields

diff --git a/search.marc/search.pl b/search.marc/search.pl index 6ae359f403..fabbf1884f 100755 --- a/search.marc/search.pl +++ b/search.marc/search.pl @@ -115,11 +115,15 @@ if ($op eq "do_search") { my @tags; foreach my $marc (@marclist) { - my ($tag,$subfield) = MARCfind_marc_from_kohafield($dbh,$marc); - if ($tag) { - push @tags,$dbh->quote("$tag$subfield"); + if ($marc) { + my ($tag,$subfield) = MARCfind_marc_from_kohafield($dbh,$marc); + if ($tag) { + push @tags,$dbh->quote("$tag$subfield"); + } else { + push @tags, $dbh->quote(substr($marc,0,4)); + } } else { - push @tags, $dbh->quote(substr($marc,0,4)); + push @tags, ""; } } findseealso($dbh,\@tags); -- 2.39.5

Author Title
">