From 09d1d91a3948849ce3746abccc1fed7d591599f8 Mon Sep 17 00:00:00 2001
From: Claas Kazzer <kazzer@proj125.domans.ub.uni-leipzig.de>
Date: Mon, 7 Nov 2016 16:12:17 +0100
Subject: [PATCH] refs #9071: * microdata adaptations in finc and foundation5

---
 themes/finc/templates/RecordDriver/SolrAI/core.phtml   |  8 ++++----
 .../finc/templates/RecordDriver/SolrDefault/core.phtml |  8 ++++----
 themes/finc/templates/RecordDriver/SolrMarc/core.phtml | 10 +++++-----
 .../templates/RecordDriver/SolrDefault/core.phtml      |  8 ++++----
 4 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/themes/finc/templates/RecordDriver/SolrAI/core.phtml b/themes/finc/templates/RecordDriver/SolrAI/core.phtml
index 6aac65fea9e..c9ae5830aae 100644
--- a/themes/finc/templates/RecordDriver/SolrAI/core.phtml
+++ b/themes/finc/templates/RecordDriver/SolrAI/core.phtml
@@ -160,16 +160,16 @@ if($loggedin = $this->auth()->isLoggedIn()) {
         <th><?=$this->transEsc('Published')?>: </th>
         <td>
           <? foreach ($publications as $field): ?>
-            <span property="publisher" typeof="Organization">
+            <span property="publisher" itemtype="http://schema.org/Organization">
             <? $pubPlace = $field->getPlace(); if (!empty($pubPlace)): ?>
-              <span property="location"><?=$this->escapeHtml($pubPlace)?></span>
+              <span itemprop="location"><?=$this->escapeHtml($pubPlace)?></span>
             <? endif; ?>
             <? $pubName = $field->getName(); if (!empty($pubName)): ?>
-              <span property="name"><?=$this->escapeHtml($pubName)?></span>
+              <span itemprop="name"><?=$this->escapeHtml($pubName)?></span>
             <? endif; ?>
             </span>
             <? $pubDate = $field->getDate(); if (!empty($pubDate)): ?>
-              <span property="publicationDate"><?=$this->escapeHtml($pubDate)?></span>
+              <span property="datePublished"><?=$this->escapeHtml($pubDate)?></span>
             <? endif; ?>
             <br/>
           <? endforeach; ?>
diff --git a/themes/finc/templates/RecordDriver/SolrDefault/core.phtml b/themes/finc/templates/RecordDriver/SolrDefault/core.phtml
index 47ecd1da50a..79ce0fe0a66 100644
--- a/themes/finc/templates/RecordDriver/SolrDefault/core.phtml
+++ b/themes/finc/templates/RecordDriver/SolrDefault/core.phtml
@@ -148,16 +148,16 @@ if($loggedin = $this->auth()->isLoggedIn()) {
         <th><?=$this->transEsc('Published')?>: </th>
         <td>
           <? foreach ($publications as $field): ?>
-            <span property="publisher" typeof="Organization">
+            <span property="publisher" itemtype="http://schema.org/Organization">
             <? $pubPlace = $field->getPlace(); if (!empty($pubPlace)): ?>
-              <span property="location"><?=$this->escapeHtml($pubPlace)?></span>
+              <span itemprop="location"><?=$this->escapeHtml($pubPlace)?></span>
             <? endif; ?>
             <? $pubName = $field->getName(); if (!empty($pubName)): ?>
-              <span property="name"><?=$this->escapeHtml($pubName)?></span>
+              <span itemprop="name"><?=$this->escapeHtml($pubName)?></span>
             <? endif; ?>
             </span>
             <? $pubDate = $field->getDate(); if (!empty($pubDate)): ?>
-              <span property="publicationDate"><?=$this->escapeHtml($pubDate)?></span>
+              <span property="datePublished"><?=$this->escapeHtml($pubDate)?></span>
             <? endif; ?>
             <br/>
           <? endforeach; ?>
diff --git a/themes/finc/templates/RecordDriver/SolrMarc/core.phtml b/themes/finc/templates/RecordDriver/SolrMarc/core.phtml
index 9606eecdfdf..b061bde2fc3 100644
--- a/themes/finc/templates/RecordDriver/SolrMarc/core.phtml
+++ b/themes/finc/templates/RecordDriver/SolrMarc/core.phtml
@@ -151,18 +151,18 @@ if($loggedin = $this->auth()->isLoggedIn()) {
           <th><?=$this->transEsc('Published')?>: </th>
           <td>
             <? foreach ($publications as $field): ?>
-              <span property="publisher" typeof="Organization">
+              <span property="publisher" itemtype="http://schema.org/Organization">
             <? $pubPlace = $field->getPlace(); if (!empty($pubPlace)): ?>
-              <span property="location"><?=$this->escapeHtml($pubPlace)?></span>
+                  <span itemprop="location"><?=$this->escapeHtml($pubPlace)?></span>
             <? endif; ?>
                 <? $pubName = $field->getName(); if (!empty($pubName)): ?>
-                  <span property="name"><?=$this->escapeHtml($pubName)?></span>
+                  <span itemprop="name"><?=$this->escapeHtml($pubName)?></span>
                 <? endif; ?>
             </span>
               <? $pubDate = $field->getDate(); if (!empty($pubDateSort)): ?>
-                <span property="publicationDate"><?=$this->escapeHtml($pubDateSort)?></span>
+                <span property="datePublished"><?=$this->escapeHtml($pubDateSort)?></span>
               <? elseif (!empty($pubDate)): ?>
-                <span property="publicationDate"><?=$this->escapeHtml($pubDate)?></span>
+                <span property="datePublished"><?=$this->escapeHtml($pubDate)?></span>
               <? endif; ?>
               <br/>
             <? endforeach; ?>
diff --git a/themes/foundation5/templates/RecordDriver/SolrDefault/core.phtml b/themes/foundation5/templates/RecordDriver/SolrDefault/core.phtml
index df3bbf12163..999764ac159 100644
--- a/themes/foundation5/templates/RecordDriver/SolrDefault/core.phtml
+++ b/themes/foundation5/templates/RecordDriver/SolrDefault/core.phtml
@@ -144,16 +144,16 @@ if($loggedin = $this->auth()->isLoggedIn()) {
         <th><?=$this->transEsc('Published')?>: </th>
         <td>
           <? foreach ($publications as $field): ?>
-            <span property="publisher" typeof="Organization">
+            <span property="publisher" itemtype="http://schema.org/Organization">
             <? $pubPlace = $field->getPlace(); if (!empty($pubPlace)): ?>
-              <span property="location"><?=$this->escapeHtml($pubPlace)?></span>
+              <span itemprop="location"><?=$this->escapeHtml($pubPlace)?></span>
             <? endif; ?>
             <? $pubName = $field->getName(); if (!empty($pubName)): ?>
-              <span property="name"><?=$this->escapeHtml($pubName)?></span>
+              <span itemprop="name"><?=$this->escapeHtml($pubName)?></span>
             <? endif; ?>
             </span>
             <? $pubDate = $field->getDate(); if (!empty($pubDate)): ?>
-              <span property="publicationDate"><?=$this->escapeHtml($pubDate)?></span>
+              <span property="datePublished"><?=$this->escapeHtml($pubDate)?></span>
             <? endif; ?>
             <br/>
           <? endforeach; ?>
-- 
GitLab