LP#1419977: Map subject headings to schema:about
authorDan Scott <dscott@laurentian.ca>
Mon, 9 Feb 2015 20:26:17 +0000 (15:26 -0500)
committerBen Shum <bshum@biblio.org>
Mon, 16 Feb 2015 09:29:29 +0000 (04:29 -0500)
http://schema.org/about is a more specific fit for subject headings,
which describe what a given title is about, than the more generic
http://schema.org/keywords. This is the emerging standard mapping
seen in other implementations.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <bshum@biblio.org>

Open-ILS/src/templates/opac/parts/record/subjects.tt2

index e074f89..a89a1be 100644 (file)
@@ -30,6 +30,7 @@
     BLOCK render_subject;
         xpath = xpath || '//*[starts-with(@tag,"6")]';
         FOR node IN ctx.marc_xml.findnodes(xpath);
+            '<span property="about">';
             all_terms = [];
             graphics = [];
             FOR subfield IN node.childNodes;
@@ -55,6 +56,7 @@
                 link880.value | html;
                 '</div>';
             END;
+            '</span>';
         END;
     END 
 %]
@@ -68,7 +70,7 @@
             <tbody>
                 <tr>
                     <td class='rdetail_subject_type'>[% subj.label %]</td>
-                    <td class='rdetail_subject_value' property='keywords'>[% content %]</td>
+                    <td class='rdetail_subject_value'>[% content %]</td>
                 </tr>
             </tbody>
         </table>