{{#Config settings that will change for different views, e.g. for AT, trail2016, etc. These are stored in the setup_params dictionary #UI_layer->page The name of the UI layer view file #UI_layer->tabs A name or array of names of tabs to use (names are in OZglobals:tab_definitions and the linkouts() # function in tree.py as key names in the url dict) or 'default' for the default set or 'all' for all. # Tabs (if they exist) will be shown in this order when popping up linkouts to other pages. #UI_layer->custom_tabs A dict of tab definitions, like OZglobals.py. UI_callbacks.populateLinkouts will have to provide the # data to make it work #UI_layer->vars->links Can be 'none' for no links, 'newtab' for all links (except the OZ logo) in new tab, or 'default' (or unset) to leave. #UI_layer->vars->no_external_links # If true, hide any links to external pages (e.g. opening wikipedia pages in a new tab) #popups->vars Passed to pic_info.load, about.load, how.load, data_sources.load, and the # internal linkouts urls. You will usually want to define 'popup':1 or 'popup':3 (see popup.html). # It's also sensible to set 'form_reservation_code' to a UID so that re-opening sponsor tabs remembers who you are #partner (Optional): if it matches a partner_identifier in the partners table, we will automatically fill out # the popups and UI_layer params to make am automatically created sponsorship site #locations_json Partners can provide their own json string of locations to use, but if not is provided # or there is no partner, the json here is used. This is an array whose items are strings (headers) or # dicts (each turned into a clickable items) with at least one key labelled 'OTT', and then any other optional # names keyed by language, e.g. {"OTT":1012685, "en":"Mushrooms", "":"Always use this instead of default VN"}. #pre_ui_setup An array of javascript calls to make before Setup_UI, mostly to override global config, for example: # "onezoom.config.projection.draw_sponsors = false" setup_params = { 'UI_layer': { 'page':'UI_layer.load', 'vars':{ 'no_oz_logo': True, 'tabs':['otopchallenge', 'wiki', 'ozspons'], 'custom_tabs': { 'otopchallenge': {'id':'otopchallenge','name':T('Challenge'), 'icon':URL('static','otop/challenge.svg')}, }, 'links':'none', 'no_external_links': True, } }, 'popups': { 'vars':{'popup':3, 'no_sponsoring':1} }, #don't need to keep track of reservation_code 'partner':page_info.get('partner'), 'locations_json':('[' '"Challenge species",' '{"OTT":5557278},' #Cichlid '{"OTT":913935},' #Chimpanzees '{"OTT":965954},' #Butterfly '{"OTT":207473},' #Banana '{"OTT":753726},' #Ants '{"OTT":225495},' #Cyanobacteria '{"OTT":81461},' #Birds '{"OTT":635958},' #Archaea '{"OTT":35942},' #Paris japonica '{"OTT":395048},' #Caenorhabditis elegans '{"OTT":4133413},' #Golden toad '{"OTT":195672},' #Alligator '{"OTT":698424},' #Whale '{"OTT":756460},' #Escherichia coli '{"OTT":4790644},' #Carsonella ruddii '"Popular places",' '{"OTT":770315},' #Human - should get looked up automatically: this also allows the correct language to be used '{"OTT":991547},' #Frogs and toads '{"OTT":801601},' #Vertebrates '{"OTT":1062253},' #Insects '{"OTT":691846},' #Animals '{"OTT":361838},' #Green plants '{"OTT":10218},' #Seed plants '{"OTT":1012685, "en":"Mushrooms"},' #the default OZ english name is bad for menus here, so we replace it '{"OTT":304358}' #Complex life (eukaryotes) ']' ), 'pre_ui_setup': [ 'onezoom.config.search_jump_mode = "flight"', 'onezoom.config.generation_on_subbranch_during_fly = 9', 'onezoom.config.generation_at_searched_node = 20', 'onezoom.config.custom_querystring_params = ["ucaya_user", "otop_background"]', 'onezoom.config.projection.sign_thres = 170' ] } }} {{extend ('treeviewer/layout_popuped_viewer.html' if request.vars.popup else 'treeviewer/layout.html')}}