Collections preview emtpy since 10.6

5 views
Skip to first unread message

Jon Do

unread,
Nov 10, 2025, 6:25:38 AM (2 days ago) Nov 10
to ResourceSpace
HI,

after upgrading to RS 10.6. collection previews are no longer there.
I include an image of a comparison of 10.5 to 10.6/6. 

When I go to  "resourcespace/page die collections.php"

and change the affected
 <table> entry to 

"                    <table border="0" class="CollectionResourceAlign"><tr><td>
                        <a style="position:relative;"
                            onclick="return <?php echo $resource_view_modal ? 'Modal' : 'CentralSpace'; ?>Load(this,true);"

                            href="<?php echo $thumb_url ?>">
                        <?php
                        $colimg_preview_size = $retina_mode ? 'thm' : 'col';
                        if($result[$n]['has_image'] !== RESOURCE_PREVIEWS_NONE
                            && ( ($open_access_for_contributor && $userref == $result[$n]['created_by'])
                                 || !resource_has_access_denied_by_RT_size($result[$n]['resource_type'], $colimg_preview_size) )
                            && file_exists(get_resource_path($ref, true, $colimg_preview_size, false, $result[$n]['preview_extension'], true, 1, $use_watermark, $result[$n]['file_modified'])
)
                        ) {
                            $colimgpath = get_resource_path($ref, false, $colimg_preview_size, false, $result[$n]['preview_extension'], true, 1, $use_watermark, $result[$n]['file_modified'])
;
                            ?>
                            <img class="CollectionPanelThumb"
                                border=0
                                src="<?php echo $colimgpath; ?>"
                                title="<?php echo escape(i18n_get_translated($result[$n]["field".$view_title_field]))?>"
                                alt="<?php echo escape(i18n_get_translated($result[$n]["field".$view_title_field]))?>"
                                <?php if ($retina_mode) { ?>onload="this.width/=2;this.onload=null;"<?php } ?>
                            />
                        <?php } else { echo get_nopreview_html((string) $result[$n]["file_extension"]); }
                        hook("aftersearchimg","",array($result[$n]))?>
                        </a></td>
                    </tr></table>
"

(taken from the 10.5 Version of the collection.php)

it works again, i.e. the previews of the pictures are shown again in the collections... 

Wenn I do a clean checkout of the 10.6, 10.7. the problem still exists. The thumbs are gone... (although the files as such are there. I did recreate all previews, but that does not seem to be the problem.)
Could anyone give a hint why this could happen?
(I will wait until the next version, maybe the problem will disappear all of itself.)

Thanks in advance ;-)
By the way.. great tool
RS-compare.png
Reply all
Reply to author
Forward
0 new messages