css'ing & improving MARC search
authortipaul <tipaul>
Mon, 3 May 2004 09:28:39 +0000 (09:28 +0000)
committertipaul <tipaul>
Mon, 3 May 2004 09:28:39 +0000 (09:28 +0000)
koha-tmpl/intranet-tmpl/default/en/search.marc/result.tmpl
koha-tmpl/intranet-tmpl/default/en/search.marc/search.tmpl
search.marc/search.pl

index c3eb08a..0fa3eb6 100644 (file)
@@ -33,7 +33,6 @@
        </div>
        <div id="resultlist">
                <table>
-               <thead>
                        <!-- TMPL_IF NAME="opac" -->
                        <tr>
                                <!-- TMPL_ELSE -->
@@ -43,7 +42,6 @@
                        <th class="catalogue">Author</th>
                        <th class="catalogue">Title</th>
                        </tr>
-               <tbody>
                        <!-- TMPL_LOOP name="result" -->
                                <tr>
                                        <td><a href="../MARCdetail.pl?bibid=<!-- TMPL_VAR name="bibid" -->"><!-- TMPL_VAR name="bibid" --></a></td>
index e074fff..8717dac 100644 (file)
@@ -79,7 +79,7 @@
        </p>
 
        </div>
-       <div id="bloc25">
+       <div id="bloc100">
                <h2 class="catalogue">More fields</h2>
                <!-- TMPL_LOOP NAME="statements" -->
                        <p>
index 6ae359f..fabbf18 100755 (executable)
@@ -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);