Hi Monica,
I think I sort of understand how printTemplates can be used to customize the print summary. It would appear that the next stage is that the HTML gets converted to pdf. If this is actually what is going on, it would appear that the issue is in printtemplates/summary/ca_objects_summary.php, specifically with the block
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";
}
If I read this code right, there is some adjustment of the height, which I should be able to fiddle with, although I would like to know what these 120 and 5 (points, I assume) are based on. Another issue is that this code seems to imply that multiple images will be printed as thumbnails of the same height. This is not always the case. I have one object with three images where this indeed is the case, but another (also with three images) for which this is not the case (see attached). How is this possible? Seems like a bug to me.
In the meantime, yet another issue with the pdf download came up with my php8.1 CollectiveAccess setup. While pdf summaries of object entries created in the new version of Providence are downloaded with extension .pdf, older object entries are downloaded without the .pdf extension. The files themselves seem to be fine, they are just missing the extension. Seems like a bug too. I assume I could re-upload all the images, but what if I had a huge collection of images?
Eisso