Fixing the thai double up
[koha.git] / cataloguing / value_builder / unimarc_field_225a.pl
index 53cdc65..25d9419 100755 (executable)
@@ -81,9 +81,6 @@ sub plugin_javascript {
             var inputs = document.getElementsByTagName('input');
             
             for(var i=0 , len=inputs.length ; i \< len ; i++ ){
-                if(inputs[i].id.match(/^tag_010_subfield_a_.*/)){
-                    isbn_found = inputs[i].value;
-                }
                 if(inputs[i].id.match(/^tag_210_subfield_c_.*/)){
                     editor_found = inputs[i].value;
                 }
@@ -141,7 +138,8 @@ sub plugin {
             push @collections, $col;
         }
             
-    }
+    } 
+    @collections = sort @collections;
 
     #  my @collections = ["test"];
     my $collection = CGI::scrolling_list(