Property not rel user/dbs/lp1423585_open_graph_protocol
authorDan Scott <dscott@laurentian.ca>
Thu, 19 Feb 2015 18:11:02 +0000 (13:11 -0500)
committerDan Scott <dscott@laurentian.ca>
Thu, 19 Feb 2015 18:11:02 +0000 (13:11 -0500)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates/opac/library.tt2
Open-ILS/src/templates/opac/parts/base.tt2
Open-ILS/src/templates/opac/parts/record/body.tt2
Open-ILS/src/templates/opac/parts/record/summary.tt2
Open-ILS/src/templates/opac/record.tt2

index c834a38..702f30e 100644 (file)
@@ -4,8 +4,8 @@
     ctx.page_title = l("Library details: [_1]", ctx.library.name);
     canon = ctx.proto _ '://' _ ctx.hostname _ mkurl('', {}, 1);
     ctx.metalinks.push('<link rel="canonical" href="' _ canon  _ '" />');
-    ctx.metalinks.push('<meta rel="og:url" content="' _ canon  _ '" />');
-    ctx.metalinks.push('<meta rel="og:type" content="http://schema.org/Library" />');
+    ctx.metalinks.push('<meta property="og:url" content="' _ canon  _ '" />');
+    ctx.metalinks.push('<meta property="og:type" content="http://schema.org/Library" />');
 -%]
     [%- INCLUDE "opac/parts/searchbar.tt2" %]
     [%- INCLUDE "opac/parts/library/core_info.tt2"; %]
index 0cf50a0..540525d 100644 (file)
@@ -18,8 +18,8 @@
         <link rel="unapi-server" type="application/xml" title="unAPI" href="/opac/extras/unapi" />
         <link type="application/opensearchdescription+xml" rel='search' title="[% l('[_1] OpenSearch', libname) %]" href="/opac/extras/opensearch/1.1/[% libsname | uri %]/-/osd.xml" />
         [%-# Hook for page-specific metadata such as <meta name="robots" content="noindex"> %]
-        [%- ctx.metalinks.push('<meta rel="og:title" content="' _ ctx.page_title _ '" />'); %]
-        [%- ctx.metalinks.push('<meta rel="og:site_name" content="' _ libname _ '" />'); %]
+        [%- ctx.metalinks.push('<meta property="og:title" content="' _ ctx.page_title _ '" />'); %]
+        [%- ctx.metalinks.push('<meta property="og:site_name" content="' _ libname _ '" />'); %]
         [% FOREACH meta IN ctx.metalinks; meta _ "\n"; END; -%]
         [% IF want_dojo %]
         <style type="text/css">
index 62140d4..2801670 100644 (file)
@@ -3,7 +3,7 @@
     PROCESS get_marc_attrs args=attrs;
     stop_parms = ['expand','cnoffset','copy_offset','copy_limit'];
     ctx.record_attrs = attrs; # capture for JS
-    ctx.metalinks.push('<meta rel="og:type" content="http://schema.org/' _ args.schema.itemtype _ '" />');
+    ctx.metalinks.push('<meta property="og:type" content="http://schema.org/' _ args.schema.itemtype _ '" />');
 %]
 <div id='canvas_main' class='canvas' vocab="http://schema.org/" typeof='[% args.schema.itemtype %] Product' resource="#schemarecord">
 [%- FOREACH link IN args.links.sameAs; %]
index ef65f2a..9c6d808 100644 (file)
@@ -1,7 +1,7 @@
 [%  PROCESS "opac/parts/misc_util.tt2";
     USE ResolverResolver;
     ctx.page_title = attrs.title | html
-    ctx.metalinks.push('<meta rel="og:image" content="' _ ctx.media_prefix _ '/opac/extras/ac/jacket/large/r/' _ ctx.bre_id _ '" />');
+    ctx.metalinks.push('<meta property="og:image" content="' _ ctx.media_prefix _ '/opac/extras/ac/jacket/large/r/' _ ctx.bre_id _ '" />');
 %]
 <!-- ****************** rdetail_summary.xml ***************************** -->
 <abbr class="unapi-id" title='tag:[% ctx.hostname %],[% date.format(date.now, '%Y') %]:biblio-record_entry/[% ctx.bre_id %]'></abbr>
index d7a0407..7993a70 100644 (file)
@@ -4,7 +4,7 @@
     ctx.page_title = l("Record Detail");
     canon = ctx.proto _ '://' _ ctx.hostname _ mkurl('', {}, 1);
     ctx.metalinks.push('<link rel="canonical" href="' _ canon  _ '" />');
-    ctx.metalinks.push('<meta rel="og:url" content="' _ canon  _ '" />');
+    ctx.metalinks.push('<meta property="og:url" content="' _ canon  _ '" />');
     IF CGI.param("expand"); basic_search = "f"; END;    
 -%]
     <h2 class="sr-only">[% l('Record Details') %]</h2>