Changeset 25253

Show
Ignore:
Timestamp:
23.03.2012 13:58:32 (8 years ago)
Author:
sjm84
Message:

Added site name as an xslt variable like interface_name

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/TransformingReceptionist.java

    r24993 r25253  
    435435            Text intnametext = theXML.createTextNode((String) config_params.get(GSConstants.INTERFACE_NAME)); 
    436436            intname.appendChild(intnametext); 
     437             
     438            Element siteName = theXML.createElement("param"); 
     439            siteName.setAttribute("name", "site_name"); 
     440            Text siteNameText = theXML.createTextNode((String) config_params.get(GSConstants.SITE_NAME)); 
     441            siteName.appendChild(siteNameText); 
    437442 
    438443            Element filepath = theXML.createElement("param"); 
     
    443448            root.appendChild(libname); 
    444449            root.appendChild(intname); 
     450            root.appendChild(siteName); 
    445451            root.appendChild(filepath); 
    446452