Changeset 8032


Ignore:
Timestamp:
Feb 1, 2022, 2:04:44 PM (20 months ago)
Author:
Nicklas Nordborg
Message:

Merge BASE 3.19.2 to the trunk.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/credits.txt

    r8026 r8032  
    11$Id$
    22
    3 The current BASE team is (at BASE 3.19.1 release)
     3The current BASE team is (at BASE 3.19.2 release)
    44{{{
    55Jari Häkkinen
  • trunk/src/plugins/core/net/sf/basedb/plugins/batchimport/RawBioAssayImporter.java

    r7667 r8032  
    162162    );
    163163
    164  
     164  protected static final PluginParameter<String> fileSpotsMapping =
     165    new PluginParameter<String>(
     166        "fileSpotsMapping",
     167        "File spots",
     168        "Mapping that picks the number of spots of the bioassay that are stored in files. The " +
     169        "values must be in the numeric format specified by the 'Number format' parameter." +
     170        "Example: \\Spots\\",
     171        optionalColumnMapping
     172    );
     173
    165174  public RawBioAssayImporter()
    166175  {}
     
    198207  private Mapper fileTypeMapper;
    199208  private Mapper fileMapper;
     209  private Mapper fileSpotsMapper;
    200210  private String dataDirectory;
    201211 
     
    264274    parameters.add(fileTypeColumnMapping);
    265275    parameters.add(fileColumnMapping);
     276    parameters.add(fileSpotsMapping);
    266277    parameters.add(permissionTemplateColumnMapping);
    267278  }
     
    297308    fileTypeMapper = getMapper(ffp, (String)job.getValue("fileTypeColumnMapping"), null, null);
    298309    fileMapper = getMapper(ffp, (String)job.getValue("fileColumnMapping"), null, null);
     310    fileSpotsMapper = getMapper(ffp, (String)job.getValue("fileSpotsMapping"), null, null);
    299311    dataDirectory = (String)job.getValue("dataDirectory");
    300312    if (dataDirectory != null && !dataDirectory.endsWith("/"))
     
    390402      rba.setParentExtract(extractFromBioAssay);
    391403    }
    392    
     404    if (fileSpotsMapper != null) rba.setNumFileSpots(fileSpotsMapper.getInt(data));
    393405    if (!rba.hasData())
    394406    {
  • trunk/www/admin/extensions/details.js

    r7604 r8032  
    5959    var url = 'index.jsp?ID='+App.getSessionId();
    6060    url += '&cmd=ManualScan';
    61     Dialogs.openPopup(url, 'ManualScan', 900, 600);
     61    Dialogs.openPopup(url, 'ManualScan', 1050, 700);
    6262  }
    6363 
  • trunk/www/admin/extensions/wizard.jsp

    r7954 r8032  
    4747  import="net.sf.basedb.clients.web.servlet.ContentSecurityPolicyFilter"
    4848  import="java.util.List"
     49  import="java.util.Comparator"
     50  import="java.util.Collections"
    4951  import="java.util.Date"
    5052  import="java.io.File"
     
    6769  ec.scanForChanges();
    6870  List<ExtensionsFile> xtFiles = ec.getFiles();
     71 
     72  // Re-order extensions
     73  Collections.sort(xtFiles,
     74    new Comparator<ExtensionsFile>()
     75    {
     76      public int compare(ExtensionsFile f1, ExtensionsFile f2)
     77      {
     78        // Sort new or modified extensions first...
     79        boolean p1 = f1.isNew() || f1.wasModified();
     80        boolean p2 = f2.isNew() || f2.wasModified();
     81        if (p1 != p2) return p1 ? -1 : 1;
     82       
     83        // ...then deleted and invalid extensions...
     84        p1 = f1.hasError() || !f1.exists() || !f1.isValid();
     85        p2 = f2.hasError() || !f2.exists() || !f2.isValid();
     86        if (p1 != p2) return p1 ? -1 : 1;
     87       
     88        // ...and finally all other extensions
     89        return f1.getName().compareTo(f2.getName());
     90      }
     91    });
     92 
    6993  List<File> ignoredFiles = ec.getIgnoredFiles();
    7094  %>
     
    85109    .ignored-file td
    86110    {
    87       opacity: 0.5;
    88     }
    89     .ignored-file .input
    90     {
    91       opacity: 1;
     111      color: #666666;
    92112    }
    93113  </style>
     
    262282          <td class="cell"></td>
    263283        </tr>
     284        <tbody class="rows">
    264285        <%
    265286        for (File ignoredFile : ignoredFiles)
     
    281302          }
    282303          %>
    283           <tbl:row clazz="ignored-file">
     304          <tbl:row subclass="ignored-file">
    284305            <tbl:cell column="file" style="white-space: nowrap;"><%=name%></tbl:cell>
    285306            <tbl:cell column="status" style="text-align: center;">Ignored</tbl:cell>
    286             <tbl:cell clazz="cell input" column="install" style="text-align: center;">
     307            <tbl:cell column="install" style="text-align: center;">
    287308              <%
    288309              if (allowInstall)
     
    295316              %>
    296317            </tbl:cell>
    297             <tbl:cell clazz="cell input" column="ignore" style="text-align: center;">
     318            <tbl:cell subclass="cell input" column="ignore" style="text-align: center;">
    298319              <input type="checkbox" class="auto-init" data-auto-init="stop-ignore"
    299320                name="<%=name%>.stopignore" value="1" <%=checkStopIgnore ? "checked" : "" %>>
     
    303324          <%
    304325        }
     326        %>
     327        </tbody>
     328        <%
    305329      }
    306330      %>
Note: See TracChangeset for help on using the changeset viewer.