#!/usr/bin/perl # written 10/5/2002 by Paul # build Subject field using bibliothesaurus table use strict; use CGI; use C4::Database; use C4::Search; use C4::Circulation::Circ2; use C4::Output; # get all the data .... my %env; my $input = new CGI; my $subject = $input->param('subject'); my $search_string= $input->param('search_string'); my $op = $input->param('op'); my $freelib_text = $input->param('freelib_text'); my $dbh=C4Connect; # make the page ... print $input->header; if ($op eq "select") { $subject = $subject."|$freelib_text"; } print <<"EOF"; Subject builder

EOF # /search thesaurus terms starting by search_string if ($search_string) { print '
'; print '
EOF } print <<"EOF";
EOF