Skip to content

Commit 0f62155

Browse files
authored
Merge pull request #532 from rentonsa/schemafix
Schemafix- thumbnailUrl in code AND config
2 parents e5989e3 + 365974f commit 0f62155

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

theme/art/views/record.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@
273273

274274
$imagesmall[$i] = str_replace('/full/0/', $parms, $imagefull[$i]);
275275
//Insert Schema
276-
echo '<span itemprop="thumbnail" style="display:none;">'. $imagesmall[$i]. '</span>';
276+
echo '<span itemprop="thumbnailUrl" style="display:none;">'. $imagesmall[$i]. '</span>';
277277
list($width, $height) = getimagesize($imagesmall[$i]);
278278
$widthtotal = $widthtotal + $width;
279279

theme/mimed/views/record.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@
271271
}
272272

273273
$imagesmall[$i] = str_replace('/full/0/', $parms, $imagefull[$i]);
274-
echo '<span itemprop="thumbnail" style="display:none;">'. $imagesmall[$i]. '</span>';
274+
echo '<span itemprop="thumbnailUrl" style="display:none;">'. $imagesmall[$i]. '</span>';
275275
list($width, $height) = getimagesize($imagesmall[$i]);
276276
$widthtotal = $widthtotal + $width;
277277

theme/stcecilia/views/record.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@
313313
list($width, $height) = getimagesize($linkURI);
314314
$imagesmall = str_replace ('full/full/0/default.jpg', 'full/150,/0/default.jpg', $linkURI);
315315
//Insert Schema for thumbnail
316-
echo '<span itemprop="thumbnail" style="display:none;">'. $imagesmall. '</span>';
316+
echo '<span itemprop="thumbnailUrl" style="display:none;">'. $imagesmall. '</span>';
317317
$portrait = true;
318318
if ($width > $height)
319319
{

theme/stcecilia/views/search_results.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,19 @@
4747
$linkURI = $doc[$link_uri_field][0];
4848
//$linkURI = str_replace('/full/full/0/default.jpg','', $linkURI);
4949

50-
if (strpos($linkURI, 'luna') > 0 )
51-
{
50+
if (strpos($linkURI, 'luna') > 0 ) {
5251
//change to stop LUNA erroring on redirect
5352
$linkURI = str_replace('http://', 'https://', $linkURI);
5453
if (false === $content) {
55-
$thumbnailLink = 'href="./record/'.$doc['id'].'" title = "'. $doc[$title_field][0].'"';
54+
$thumbnailLink = 'href="./record/' . $doc['id'] . '" title = "' . $doc[$title_field][0] . '"';
5655
$thumbnailImg = '<img class="img-responsive record-thumbnail-search" src="../theme/stcecilia/images/comingsoon.gif" title="' . $doc[$title_field][0] . '" />';
5756
}
5857
else
5958
{
6059
$linkURI = str_replace('full/full', 'full/96,', $linkURI);
6160
list($width, $height) = getimagesize($linkURI);
6261
$portrait = true;
62+
6363
if ($width > $height)
6464
{
6565
$parms = '/180,';
@@ -69,7 +69,7 @@
6969
$parms = '/,220';
7070
}
7171
$linkURI = str_replace('full/96,', 'full'.$parms, $linkURI);
72-
72+
7373
$thumbnailLink = 'href="./record/' . $doc['id'] . '" title = "' . $doc[$title_field][0] . '"';
7474
$thumbnailImg = '<img class="img-responsive record-thumbnail-search" src="' . $linkURI . '" title="' . $doc[$title_field][0] . '" />';
7575
}

0 commit comments

Comments
 (0)