Ignore:
Timestamp:
Apr 30, 2020, 12:02:00 PM (2 years ago)
Author:
Nicklas Nordborg
Message:

References #2209: Add items to existing item list from list page

Implemented a popup dialog for selecting an item list and which items to add from the current list. As usual there are three options: selected items, current page, or all items.

A button and supporting functionality for using the new feature has been added to the Biosource list page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.16-stable/www/biomaterials/biosources/index.jsp

    r7703 r7801  
    361361    redirect = "../../views/itemlists/index.jsp?ID="+ID+"&cmd=NewItem&addItems=1&memberType=BIOSOURCE&formId=biosources";
    362362  }
     363  else if ("AddItemsToList".equals(cmd))
     364  {
     365    ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext);
     366    final ItemQuery<BioSource> query = BioSource.getQuery();
     367    dc = sc.newDbControl();
     368    cc.configureQuery(dc, query, true);
     369    dc.close();
     370    cc.setQuery(query);
     371    redirect = "../../views/itemlists/add_items.jsp?ID="+ID+"&memberType=BIOSOURCE&formId=biosources";
     372  }
    363373  else
    364374  {
Note: See TracChangeset for help on using the changeset viewer.