debugged framework interface. Frameworks for ensmp are ready too
authordoxulting <doxulting>
Fri, 25 Jun 2004 09:17:49 +0000 (09:17 +0000)
committerdoxulting <doxulting>
Fri, 25 Jun 2004 09:17:49 +0000 (09:17 +0000)
admin/marc_subfields_structure.pl
admin/marctagstructure.pl
koha-tmpl/intranet-tmpl/default/en/parameters/marc_subfields_structure.tmpl
koha-tmpl/intranet-tmpl/default/en/parameters/marctagstructure.tmpl

index ab9e92e..cbe15ea 100755 (executable)
@@ -37,9 +37,11 @@ sub StringSearch  {
        $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;
index 5c805ea..5ab3d0a 100755 (executable)
@@ -290,7 +290,7 @@ sub duplicate_framework {
        $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);
        }
 }
 
index 17d18c8..8ae0575 100644 (file)
@@ -70,6 +70,7 @@
        <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" -->
index c3638e7..2f72a52 100644 (file)
@@ -84,7 +84,7 @@
                <td><!-- TMPL_VAR name="searchfield" --></td>
        </tr>
        <tr><td>&nbsp;</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 -->
@@ -92,7 +92,7 @@
 <!-- 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" -->">