We have templates for object summaries in the 'local' folder for PrintTemplates.
In Pawtucket, the pdf summaries for an object appear as they should, but only for audio objects. For everything else it seems to follow the 'default' template. Does anyone know what could be causing this ?
Also, what kind of statement could I add to the following code to show icon if representations are not images ? Right now, summaries for non-image objects show a big crossed out box over text 'image not found or type unknown' when there are no images to display.
$va_reps = $t_item->getRepresentations(["thumbnail", "medium"], null, ['usePath' => true]);
foreach($va_reps as $va_rep) {
if(sizeof($va_reps) > 1){
# --- more than one rep show thumbnails
$vn_padding_top = ((120 - $va_rep["info"]["thumbnail"]["HEIGHT"])/2) + 5;
print $va_rep['tags']['thumbnail']."\n";
}else{
# --- one rep - show medium rep
print $va_rep['tags']['medium']."\n";
}
}
Thank you.