Ignore:
Timestamp:
23/03/09 10:30:47 (10 years ago)
Author:
cbyrom
Message:

Adjust atom links when in editor mode to point to the editor instance

  • and correct these when saving the data so that the links actually

point to the browse service + turn of granule delete function when not
in edit mode + remove duplicated inclusion of badc icon + tidy up
config file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MILK/trunk/milk_server/milk_server/controllers/browse/retrieve.py

    r5022 r5128  
    194194            logging.debug("Rendering output from data model") 
    195195            out = render(model.templateType, model.renderTemplate) 
     196             
     197            # if in atom editor mode, replace any browse links with to links to editor 
     198            if g.atomEditorEnabled: 
     199                out = out.replace(VTD.BROWSE_SERVER_URL, g.server) 
     200             
    196201            logging.debug("- returning rendered data model") 
    197202            return out 
Note: See TracChangeset for help on using the changeset viewer.