Changeset 3538


Ignore:
Timestamp:
27/02/08 16:15:17 (11 years ago)
Author:
cbyrom
Message:

Add new 'View' tab to NDG web page. This is opened when a user clicks on a
WMC record in the 'Display' panel. The tab displays the default OpenLayers?
maps and allows the user to select a layer from the WMC doc to display.

NB, the functionality was based on code borrowed and adapted from the DCIP codebase.

Location:
TI05-delivery/ows_framework/trunk/ows_server/ows_server
Files:
10 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/public/js/ndgJavascript.js

    r3420 r3538  
    8585        { 
    8686        var n = cboxes[i]; 
    87                 var tst = typeof n; 
    8887        if ('checkbox' == n.type && n != abox) 
    8988        { 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/meta.kid

    r3457 r3538  
    3737                <?python 
    3838                t=s.contentType 
    39                 if t=='': t='R' 
    40                 if 'GET DATA' in t: t='GET DATA' 
     39                isWMC = False 
     40                if 'WEB MAP CONTEXT' in t: 
     41                        isWMC = True 
     42                if t=='':  
     43                        t='R' 
     44                if 'GET DATA' in t:  
     45                        t='GET DATA' 
    4146                try: 
    4247                    icon={'GET DATA':g.icons_A, 
     
    4752                    icon=g.icons_R 
    4853                ?> 
    49             <td width="20%"><span py:replace="linkimage(s.url,icon,s.description)"/></td><td>${s.description}</td></tr> 
     54                <td width="20%" py:if="isWMC"> 
     55                        <span py:replace="linkimage(g.server + '/viewItems?ENDPOINT=' + s.description,icon,s.description)" py:strip="True"/> 
     56                </td> 
     57                <td width="20%" py:if="not isWMC"> 
     58                        <span py:replace="linkimage(s.url,icon,s.description)" py:strip="True"/> 
     59                </td> 
     60                <td>${s.description}</td> 
     61            </tr> 
    5062            <tr py:if="c.doc.ndgObject is not None"> 
    5163            <td width="20%"><span py:replace="linkimage(c.doc.ndgObject.xmlURL,g.icons_xml,'[XML]')"/></td> 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/results.kid

    r3421 r3538  
    99        <div py:replace="PageTabs('Results')"/> 
    1010        <div py:replace="searchOneLine()"/> 
    11         <?python 
    12         id="contents" 
    13         if "ndgSec" in session: id="contentsRight" 
    14         ?>  
    1511        <div id="results"> 
    1612            <div id="context"> 
Note: See TracChangeset for help on using the changeset viewer.