Changeset 9284

Show
Ignore:
Timestamp:
05/02/08 22:27:10 (3 months ago)
Author:
ryanlee
Message:

placeholder for html table of rdf, probably requires a plugin for babel; also, noscript tag should go in body, means either modifying dom in server-side js or changing templates

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • playground/trunk/modules/playground/MOD-INF/builder.js

    r8973 r9284  
    1717            }); 
    1818            if (!("template" in data) || data.template == null || data.template == "") { 
    19                 data.template = guessTempalte(format); 
     19                data.template = guessTemplate(format); 
    2020            } 
    2121             
     
    139139    var settings; 
    140140    var format; 
     141    var content; 
    141142    execute2(request, response, function(temp) { 
    142143        settings = repository.readFile(id, temp, "template-settings"); 
     
    146147            template = repository.getProperty(id, temp, "template"); 
    147148        } 
     149        content = repository.readFile(id, temp, "json"); 
    148150    }); 
    149151    title = (title != null && title != "") ? title : "Untitled Playground"; 
    150152    template = (template != null && template != "") ? template : guessTemplate(format); 
    151      
     153    content = (content != null && content != "") ? buildNoscript(content) : ""; 
     154 
    152155    var doc = butterfly.constructDomFromTemplate( 
    153156        {   styles:         "templates/" + template + "/styles.css", 
     
    155158            contextPath:    butterfly.getContextPath(request,true), 
    156159            title:          title, 
    157             pg:             id 
     160            pg:             id, 
     161            content:        content 
    158162        },  
    159163        "MOD-INF/exhibit-builder/publish-mode-composition.vt" 
     
    332336} 
    333337 
     338function buildNoscript(json) { 
     339    // generate tabular view of items 
     340    // perhaps it's time for a babel HTML table exporter? 
     341    return ""; 
     342} 
  • playground/trunk/modules/playground/MOD-INF/exhibit-builder/publish-mode-composition.vt

    r9022 r9284  
    2020    </style> 
    2121</head> 
     22<noscript>$content</noscript> 
    2223#parse($layout) 
    2324</html>