bugfix on adding a subfield
authortipaul <tipaul>
Tue, 26 Jun 2007 09:17:56 +0000 (09:17 +0000)
committertipaul <tipaul>
Tue, 26 Jun 2007 09:17:56 +0000 (09:17 +0000)
admin/marc_subfields_structure.pl
koha-tmpl/intranet-tmpl/prog/en/admin/marc_subfields_structure.tmpl

index 456db3c..8bdcfe6 100755 (executable)
@@ -377,7 +377,6 @@ if ( $op eq 'add_form' ) {
         $row_data{row}    = $j;
         push( @loop_data, \%row_data );
         use Data::Dumper;
-        warn "push : ".Dumper(%row_data);
     }
     $template->param( 'use-heading-flags-p'      => 1 );
     $template->param( 'heading-edit-subfields-p' => 1 );
index b1ba6cc..c82d626 100644 (file)
@@ -24,9 +24,6 @@
     <div id="tabs">
      <p>Edit subfield
         <!-- TMPL_LOOP NAME="loop" -->
-                <!-- TMPL_IF name="subfieldcode" -->
-                    <input type="hidden" name="tagsubfield" value="<!-- TMPL_VAR NAME="subfieldcode" -->" />
-                <!-- /TMPL_IF -->
                <a 
                     href="javascript:active('sub<!-- TMPL_VAR NAME='subfieldcode' -->');"
                     class="tab_inactive"
         <div id="content_sub<!-- TMPL_VAR NAME="subfieldcode" -->" class="content_hidden">
         
         <h3>Basic constaints</h3>
-            <!-- TMPL_UNLESS name="subfieldcode" -->
-                <p>Subfield code: <input type="text" name="tagsubfield" value="<!-- TMPL_VAR NAME="subfieldcode" -->" /></p>
-            <!-- /TMPL_UNLESS -->
+                <!-- TMPL_IF name="subfieldcode" -->
+                    <p>Subfield code: <!-- TMPL_VAR NAME="subfieldcode" --> <input type="hidden" name="tagsubfield" value="<!-- TMPL_VAR NAME="subfieldcode" -->" /></p>
+                <!-- TMPL_ELSE -->
+                    <p>Subfield code: <input type="text" name="tagsubfield" value="<!-- TMPL_VAR NAME="subfieldcode" -->" /></p>
+            <!-- /TMPL_IF -->
             <p><label for="liblibrarian<!-- TMPL_VAR NAME="row" -->">Text for librarian</label><input id="liblibrarian<!-- TMPL_VAR NAME="row" -->" type="text" name="liblibrarian" value="<!-- TMPL_VAR NAME="liblibrarian" -->" size="40" maxlength="80" /></p>
             <p><label for="libopac<!-- TMPL_VAR NAME="row" -->">Text for OPAC</label><input type="text" id="libopac<!-- TMPL_VAR NAME="row" -->" name="libopac" value="<!-- TMPL_VAR NAME="libopac" -->" size="40" maxlength="80" /></p>
             <p><label for="repeatable<!-- TMPL_VAR NAME="row" -->">Repeatable</label><!-- TMPL_VAR NAME="repeatable" -->&nbsp;</p>