$sth->execute("$searchstring%",$frameworkcode);
my @results;
my $cnt=0;
+ my $u=1;
while (my $data=$sth->fetchrow_hashref){
push(@results,$data);
$cnt ++;
+ $u++;
}
$sth->finish;
$dbh->disconnect;
$sth->execute($oldframeworkcode);
$sth_insert = $dbh->prepare("insert into marc_subfield_structure (frameworkcode,tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,authorised_value,authtypecode,value_builder,seealso) values (?,?,?,?,?,?,?,?,?,?,?,?,?)");
while ( my ($frameworkcode, $tagfield, $tagsubfield, $liblibrarian, $libopac, $repeatable, $mandatory, $kohafield, $tab, $authorised_value, $thesaurus_category, $value_builder, $seealso) = $sth->fetchrow) {
- $sth_insert->execute($newframeworkcode, $tagfield, $tagsubfield, $liblibrarian, $libopac, $repeatable, $mandatory, $kohafield, $tab, $authorised_value, $thesaurus_category, $value_builder, $seealso);
+ $sth_insert->execute($newframeworkcode, $tagfield, $tagsubfield, $liblibrarian, $libopac, $repeatable, $mandatory, $kohafield, $tab, $authorised_value, $thesaurus_category, $value_builder, $seealso);
}
}
<form action='<!-- TMPL_VAR name="delete_link" -->' method=post><input type=hidden name=op value=delete_confirmed><input type=hidden name=searchfield value='<!-- TMPL_VAR name="searchfield" -->'>
<input type=hidden name=tagfield value='<!-- TMPL_VAR name="tagfield" -->'>
<input type=hidden name=tagsubfield value='<!-- TMPL_VAR name="tagsubfield" -->'>
+ <input type=hidden name="frameworkcode" value='<!-- TMPL_VAR name="frameworkcode" -->'>
<tr><td colspan=2 align=center>CONFIRM DELETION</td></tr>
<tr><td><INPUT type=submit value='YES'></form></td><td><form action='<!-- TMPL_VAR name="script_name" -->' method=post><input type="hidden" name="tagfield" value="<!-- TMPL_VAR name="tagfield" -->"><input type=submit value=NO></form></td></tr>
<!-- /TMPL_IF -->
<!-- TMPL_VAR name="edit" -->
<img src="<!-- TMPL_VAR NAME='interface' -->/<!-- TMPL_VAR name="theme" -->/images/fileopen.png" width=32 hspace=0 vspace=0 border=0>
</a>
-<a href="marctagstructure.pl?searchfield=<!-- TMPL_VAR name="tagfield" -->">
+<a href="marctagstructure.pl?searchfield=<!-- TMPL_VAR name="tagfield" -->&frameworkcode=<!-- TMPL_VAR name="frameworkcode" -->">
<img src="<!-- TMPL_VAR NAME='interface' -->/<!-- TMPL_VAR name="theme" -->/images/2uparrow.png" width=32 hspace=0 vspace=0 border=0>
</a>
<!-- TMPL_IF name="previous" -->
<td><!-- TMPL_VAR name="searchfield" --></td>
</tr>
<tr><td> </td><td><!-- TMPL_VAR name="liblibrarian" --></td></tr>
- <form action='<!-- TMPL_VAR name="script_name" -->' method=post><input type=hidden name=op value=delete_confirmed><input type=hidden name=searchfield value='<!-- TMPL_VAR name="searchfield" -->'>
+ <form action='<!-- TMPL_VAR name="script_name" -->' method=post><input type=hidden name=op value=delete_confirmed><input type=hidden name=searchfield value='<!-- TMPL_VAR name="searchfield" -->'><input type=hidden name=frameworkcode value='<!-- TMPL_VAR name="frameworkcode" -->'>
<tr><td colspan=2 align=center>CONFIRM DELETION</td></tr>
<tr><td><INPUT type=submit value='YES'></form></td><td><form action='<!-- TMPL_VAR name="script_name" -->' method=post><input type=submit value=NO></form></td></tr>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="delete_confirmed" -->
<!---------------------------------------------------------------------------->
Data deleted
- <form action='<!-- TMPL_VAR name="script_name" -->' method=post>
+ <form action='<!-- TMPL_VAR name="script_name" -->' method=post><input type=hidden name=frameworkcode value='<!-- TMPL_VAR name="frameworkcode" -->'>
<input type=submit value=OK>
</form>
<!-- /TMPL_IF -->
<input type="hidden" name="op" value="framework_create_confirm">
<input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR name="frameworkcode" -->">
Create framework for <!-- TMPL_VAR name="frameworkcode" --> (<!-- TMPL_VAR name="frameworktext" -->) using
- <select name="existingfarmeworkcode">
+ <select name="existingframeworkcode">
<option value="">Default</option>
<!-- TMPL_LOOP name="existingframeworkloop" -->
<option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="frameworktext" --></option>
</table>
<form action='<!-- TMPL_VAR name="script_name" -->' method=post>
<input type=hidden name=op value=add_form>
+ <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR name="frameworkcode" -->">
<input type=submit class="button" value="Add Tag" title="Add Tag" alt="Add Tag" >
<!-- TMPL_IF name="isprevpage" -->
<a href="<!-- TMPL_VAR name="script_name" -->?offset=<!-- TMPL_VAR name="prevpage" -->&searchfield=<!-- TMPL_VAR name="searchfield" -->">