biblionumber, the other template shows notes, in the third column.
My thinking is that for every template, the scripts can search for a local
version of the template before using the default template.
--- /dev/null
+<html>
+<head><title>Search Results</title>
+</head>
+<body>
+<TMPL_INCLUDE NAME="searchheader.tmpl">
+<table border=1>
+<tr><th>Title</th><th>Author</th><th>Notes</th></tr>
+<TMPL_LOOP NAME=SEARCH_RESULTS>
+ <tr>
+ <td> <TMPL_VAR NAME=title> </td>
+ <td> <TMPL_VAR NAME=author> </td>
+ <td> <TMPL_VAR NAME=notes> </td>
+ </tr>
+</TMPL_LOOP>
+</table>
+<hr>
+</body>
+</html>
use strict;
require Exporter;
use C4::Database;
+use CGI;
+
+my $query=new CGI;
+
+my $template=$query->param('template');
+($template) || ($template='searchresults.tmpl');
my $dbh=&C4Connect;
-my $template = HTML::Template->new(filename => 'searchresults.tmpl', die_on_bad_params => 0);
+my $template = HTML::Template->new(filename => $template, die_on_bad_params => 0);
my @results;
my $sth=$dbh->prepare("select * from biblio where author like 's%' limit 20");
--- /dev/null
+<a href=search.pl?template=cmsdsearchresults.tmpl>Template #1</a> | <a href=search.pl?template=searchresults.tmpl>Template #2</a>
+<hr>
<html>
-<head><title>Test Template</title>
+<head><title>Search Results</title>
</head>
<body>
+<TMPL_INCLUDE NAME="searchheader.tmpl">
<table border=1>
<tr><th>Title</th><th>Author</th><th>Biblionumber</th></tr>
<TMPL_LOOP NAME=SEARCH_RESULTS>