Tweak wikidata paths for contributors
authorDan Scott <dscott@laurentian.ca>
Thu, 31 May 2018 20:31:52 +0000 (16:31 -0400)
committerDan Scott <dscott@laurentian.ca>
Thu, 31 May 2018 20:42:46 +0000 (16:42 -0400)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/web/js/ui/default/opac/wikidata_music_card.js

index 9a72922..155d480 100644 (file)
@@ -26,7 +26,7 @@
   var type_path = '[typeof~="MusicAlbum"]';
 
   /* List of elements describing contributors */
-  var contributors_path = 'div[resource^="#schemacontrib"]';
+  var contributors_path = 'span.rdetail-author-div[resource^="#schemacontrib"]';
 
   /* Path to find the name within each contributor element */
   var contributor_name = 'span[property="name"]';
@@ -35,7 +35,7 @@
   var name_path = 'span[property="description"]';
 
   /* Path for appending the requested infocards */
-  var infocard_location = '#contributors';
+  var infocard_location = '#rdetail_title_div';
 
   var icon_node;
   var note;