NIHVIVO-3300 Placeholder images are configured by a properties file, which is loaded at startup.
This commit is contained in:
parent
a83b27a340
commit
19f47459e0
3 changed files with 21 additions and 69 deletions
|
@ -22,6 +22,8 @@ edu.cornell.mannlib.vitro.webapp.servlet.setup.JenaDataSourceSetup
|
|||
|
||||
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
|
||||
|
||||
|
|
19
productMods/images/placeholders/placeholders.properties
Normal file
19
productMods/images/placeholders/placeholders.properties
Normal file
|
@ -0,0 +1,19 @@
|
|||
#
|
||||
# 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.
|
||||
|
||||
http\://xmlns.com/foaf/0.1/Person = /images/placeholders/person.thumbnail.jpg
|
||||
http\://vitro.mannlib.cornell.edu/ns/vitro/authorization#UserAccount = /images/placeholders/person.thumbnail.jpg
|
Loading…
Add table
Add a link
Reference in a new issue