NIHVIVO-3300 Placeholder images are configured by a properties file, which is loaded at startup.

This commit is contained in:
j2blake 2012-03-22 20:10:18 +00:00
parent 94717a3705
commit 9442468b75
10 changed files with 278 additions and 79 deletions

View file

@ -24,6 +24,8 @@ edu.cornell.mannlib.vitro.webapp.servlet.setup.UpdateKnowledgeBase
edu.cornell.mannlib.vitro.webapp.filestorage.backend.FileStorageSetup
edu.cornell.mannlib.vitro.webapp.web.images.PlaceholderUtil$Setup
# Update the URIs on Permission Sets on UserAccounts from model (1.4) to 1.5.
edu.cornell.mannlib.vitro.webapp.servlet.setup.UpdatePermissionSetUris

View file

@ -0,0 +1,17 @@
#
# Assign placeholder images to classes of individuals.
#
# If showing an individual that has no image, a placeholder image may be shown.
# By default, the placeholder is /images/placeholders/thumbnail.jpg. However,
# this file allows you to associate classes with special placeholder images, and
# if the individual belongs to such a class, the special placeholder is shown
# instead of the default.
#
# EXAMPLE:
# http\://xmlns.com/foaf/0.1/Person = /images/placeholders/person.thumbnail.jpg
# means that any individual of type foaf:Person will be represented by
# person.thumbnail.jpg
#
# NOTE: a colon is a special character in a properties file, and must be escaped
# by a backslash.