NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To use your own images simply replace the image while keeping the same name as the original one in your new folder, and the build will update it accordingly. At the base level of the folder are the XHTML/properties files that allow customization. Those files are listed in the following table.

NamePurpose
appFooter.xhtmlThe footer of the application
appHeader.xhtmlThe header of the application
branding.propertiesContains the application name property
ccHeader.xhtmlLegacy file for cancer center logos, to be removed
footer.xhtmlLegacy file for footers, to me removed
legalRules.xhtmlLegal rules when signing up
mainLayout.xhtmlLayout with session timer
mainLayoutTemplate.xhtmlOverall layout of the application
mainLayoutWithoutSessionTimeout.xhtmlLayout without session timer
mainMenu.xhtmlTop menu bar
ncia_messages.propertiesVarious messages used in the application
nciHeader.xhtmlApplication header
quickLinks.xhtmlExternal links
sessionExpired.jspPage shown when session expires
siteMap.xhtmlSite map at bottom of page
slideshow.cssCSS for the slideshow page
styleSheet.cssMain CSS for the application
subMenu.xhtmlSub menus in the menu bar
welcome.xhtmlMain login page
welcomeText.xhtmlLegacy welcome page, to be removed

Building a Branded Version

To create and build a branded version copy the example nbia folder to a new folder. As an example assume the copied folder is ncia and you plan to make a version named NCIA.  Copy and name the folder and edit accordingly. Note the ncia_messages.properties contains much of the applications textual information and branding.properties contains the application names.  Once you have edited the files the edit install.properties and the defaultAHP3.properties in the /software/build directory.   Specifically the branding properties need to be specified, here is an example for naming an application NCIA.

Code Block
##############################################

...


### New Branding Properties ###

...


##############################################

...


branding.appname=NCIA

...


branding.folder=ncia

Once that is complete, execute the build:all ant target and the new war files in the directory (nbia-source-directory)/software/target/dist/exploded/nbia-wars/ will be properly branded.   Replace the war files in tomcat\webapps with the branded ones, delete the nbia-api, ncia, and nbia-download and restart tomcat.

For the JNLP Download Manager to work correctly, a Java signing certificate must be used to sign the jar files used by Download Manager.   If you do not have a signing certificate you can pull the following jar files from the NBIA install files ncia.war: ncia.war\NBIADownloadManager.jar and the folder ncia.war\download-mgr-dependencies and replace the files in your generated ncia.war.

...

If you only want to change one aspect of a brand, only include that file. The default directory versions will be used for the others.

Branding consists of You can brand the following files.

NamePurpose
logo.png

...

A logo (41 pixels high)
footer.html

...

A snippet of HTML that is at the bottom. If included, %VERSION% will be replaced with the client version number (see #6).
newAccountUrl.txt

...

URL for "New account" button on login screen

...

accountHelpUrl.txt

...

URL for "Account help" button on login screen

...

downloaderUrl.txt

...

URL for "Get Data Retriever" button in Download popup

...

versionSuffix.txt

...

An optional string that will be appended to the version number, if the version number is included in the footer

...

customMenu.json

...

This is the top horizontal menu. Look at the default (nbia) for an example.


    It is a JSON array, each top level object represents one top-level menu item:

...