Hi,
As Monica said, you can duplicate the folder themes/default to another name like themes/mytheme, and edit files to custom the display. Don't forget to set the new theme used in setup.php:
define("__CA_THEME__", "mytheme");
So in themes/mytheme/conf/app.conf you see an example on how to deal with this disgusting "BLANK":
# --------------------
# Alt text templates for media
# --------------------
ca_objects_alt_text_template = "<case><ifnotdef code='ca_object_representations.preferred_labels.name'>^ca_objects.preferred_labels.name</ifnotdef><if rule='^ca_object_representations.preferred_labels.name =~ /[BLANK]/'>^ca_objects.preferred_labels.name</if><if rule='^ca_object_representations.preferred_labels.name !~ /[BLANK]/'>^ca_object_representations.preferred_labels.name</if></case>"
ca_object_representations_alt_text_template = "<case><ifnotdef code='ca_object_representations.preferred_labels.name'>^ca_objects.preferred_labels.name</ifnotdef><if rule='^ca_object_representations.preferred_labels.name =~ /[BLANK]/'>^ca_objects.preferred_labels.name</if><if rule='^ca_object_representations.preferred_labels.name !~ /[BLANK]/'>^ca_object_representations.preferred_labels.name</if></case>"
If the name of the representation doesn't exists (empty) or is equal to "BLANK", it's replaced by the name of the object.
You could use this trick to do so in themes/mytheme/conf/detail.conf, where representationViewerCaptionTemplate
is defined, and this should work.
Try by replacing the line:
representationViewerCaptionTemplate = <div class='small'>^ca_object_representations.preferred_labels.name</div>,
by:
representationViewerCaptionTemplate = <div class='small'><case><ifnotdef code='ca_object_representations.preferred_labels.name'>^ca_objects.preferred_labels.name</ifnotdef><if rule='^ca_object_representations.preferred_labels.name =~ /[BLANK]/'>^ca_objects.preferred_labels.name</if><if rule='^ca_object_representations.preferred_labels.name !~ /[BLANK]/'>^ca_object_representations.preferred_labels.name</if></case></div>,
For the date, you should edit themes/mytheme/views/Details/ca_objects_default_html.php and find the line related to the date display.
It may be the metadata ca_objects.dateSet.setDisplayValue
or ca_objects.coverageDates
Copy the line and past it here to see what should be changed.