small fixes for thesaurus modification & removed useless "toponly" in templates

This commit is contained in:
tipaul 2003-07-10 14:11:46 +00:00
parent e889bfe5da
commit 0ded1ac11e
3 changed files with 4 additions and 8 deletions

View file

@ -29,7 +29,7 @@ use C4::Authorities;
my $input = new CGI;
my $search_category=$input->param('search_category');
$search_category=$input->param('category') unless $search_category;
# $search_category=$input->param('category') unless $search_category;
#my $toponly = $input->param('toponly');
my $branch = $input->param('branch');
my $searchstring = $input->param('searchstring');

View file

@ -34,12 +34,12 @@
<TMPL_IF name="add_form">
<!-------------------------------------------------------------------------------------------------->
<H1><TMPL_IF name="search_category">Modify<TMPL_ELSE>Add</TMPL_IF></H1>
<H1><TMPL_IF name="search_category">Add<TMPL_ELSE>Modify</TMPL_IF></H1>
<form action='<TMPL_VAR name="script_name">' name=Aform method=post>
<TMPL_IF name="search_category">
<input type=hidden name=op value='mod_validate'>
<TMPL_ELSE>
<input type=hidden name=op value='add_validate'>
<TMPL_ELSE>
<input type=hidden name=op value='mod_validate'>
</TMPL_IF>
<table cellpadding=3 cellspacing=3>
<tr>
@ -63,7 +63,6 @@
<td><input type="hidden" name="id" value="<TMPL_VAR name="id">">
<input type="hidden" name="father" value="<TMPL_VAR name="father" escape=HTML>">
<input type="hidden" name="branch" value="<TMPL_VAR name="branch" escape=HTML>">
<input type="hidden" name="toponly" value="<TMPL_VAR name="toponly">">
<input type="hidden" name="search_category" value="<TMPL_VAR name="search_category">">
<input type="hidden" name="searchstring" value="<TMPL_VAR name="searchstring" escape=HTML>">
<input type="hidden" name="offset" value="<TMPL_VAR name="offset">">
@ -104,7 +103,6 @@
</ul>
<form action="/cgi-bin/koha/admin/thesaurus.pl" method="post">
<TMPL_VAR name="tab_list">
<input type="checkbox" name="toponly" value="1" <TMPL_IF name="toponly">checked</TMPL_IF>>Top hierarchy only
<input type="text" name="searchstring" value="<TMPL_VAR name="searchstring">">
<input type="submit" value="OK">
<a href="thesaurus.pl?op=add_form">New category...</a>

View file

@ -66,7 +66,6 @@
<td><input type="hidden" name="id" value="<TMPL_VAR name="id">">
<input type="hidden" name="father" value="<TMPL_VAR name="father">">
<input type="hidden" name="branch" value="<TMPL_VAR name="branch">">
<input type="hidden" name="toponly" value="<TMPL_VAR name="toponly">">
<input type="hidden" name="search_category" value="<TMPL_VAR name="search_category">">
<input type="hidden" name="searchstring" value="<TMPL_VAR name="searchstring">">
<input type="hidden" name="offset" value="<TMPL_VAR name="offset">">
@ -113,7 +112,6 @@
</ul>
<form action="/cgi-bin/koha/admin/thesaurus.pl" method="post">
<TMPL_VAR name="tab_list">
<input type="checkbox" name="toponly" value="1" ><TMPL_IF name="toponly">checked</TMPL_IF>Top hierarchy only
<input type="text" name="searchstring" value="<TMPL_VAR name="searchstring">">
<input type="submit" value="OK">
<a href="thesaurus.pl?op=add_form">Nouvelle catégorie...</a>