WebappConfig > Configuring the web.properties file
The web.properties file configures several attributes for the InterMine web application.
| quickSearch.identifiers | Text displayed in QuickSearch form when "identifiers" is selected |
| quickSearch.templates | Text displayed in QuickSearch form when "templates" is selected |
| quickSearch.lists | Text displayed in QuickSearch form when "lists" is selected |
| begin.query.classes | classes that will appear in the QueryBuilder section of the home page. |
| begin.browse.template | the template used by the QuickSearch |
| bag.example.identifiers | Text present in the list upload form. |
| attributeLink | to configure hyperlinks, generally to external dbs. See below |
| portal.welcome.flybase | the message to show when a user arrives at the webapp via the portal action (eg . <something>/portal.do) |
| webapp.defaultContext | If default context is defined, then this context is used for generating links to web service |
Settings for the attributeLink property
The format for this property is
'attributelink' + unique_name + class + taxonId + attributeName + (url|imageName|text)
or
'attributelink' + unique_name + class + taxonId + attributeName + 'list' + (url|imageName|text)
if the link is with list of objects (ids).
- the unique_name is used to distinguish between multiple configurations for the same attribute/organism/class combination
- the taxonId is either a proper id or '*' when no assumptions is made regarding the organism.
- the 'list' element indicates the link will have a list of identifiers
- the value of the attribute (for the current object) is substituted anywhere the string "<<attributeValue>>" occurs in the text or the url
example:
attributelink.flybase.Gene.7227.primaryIdentifier.url=http://www.flybase.org/.bin/fbidq.html?<<attributeValue>> attributelink.flybase.Gene.7227.primaryIdentifier.text=FlyBase: <<attributeValue>>
In this case Gene pages for Drosophila melanogaster will have a link that uses the organismDbId field.
A list example:
attributelink.flymine.Gene.*.primaryIdentifier.list.url=http://www.flymine.org/query/portal.do?externalid=<<attributeValue>>&class=Gene attributelink.flymine.Gene.*.primaryIdentifier.list.text=FlyMine attributelink.flymine.Gene.*.primaryIdentifier.list.imageName=flymine_logo_link.gif
Note that for lists the attribute value (the list of ids) is not displayed. Only if a taxId is specified the code will check if the link to the external db is relevant.
See: ModMine's web.properties file, FlyMine's web.properties file
Back: WebappConfig
