Jdlrobson has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/370371 )

Change subject: Look for dablinks when extracting hatnotes
......................................................................

Look for dablinks when extracting hatnotes

Certain wiki pages use older wiki templates and disambiguation links
are marked with .dablink

e.g.
https://en.wikivoyage.org/wiki/Mumbai

Change-Id: Ieac31f6492e9d8ca3c15f787d0e5a2925777af45
---
M lib/transformations/extractHatnotes.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/mobileapps 
refs/changes/71/370371/1

diff --git a/lib/transformations/extractHatnotes.js 
b/lib/transformations/extractHatnotes.js
index e4bbd48..219dc5e 100644
--- a/lib/transformations/extractHatnotes.js
+++ b/lib/transformations/extractHatnotes.js
@@ -7,7 +7,7 @@
  */
 function extractHatnotes(lead, removeNodes) {
     const hatnotes = [];
-    const hatnoteNodes = lead.querySelectorAll('.hatnote');
+    const hatnoteNodes = lead.querySelectorAll('.hatnote,.dablink');
     Array.prototype.forEach.call(hatnoteNodes, (hatnoteNode, i) => {
         hatnotes.push(hatnoteNode.innerHTML);
         if (removeNodes) {

-- 
To view, visit https://gerrit.wikimedia.org/r/370371
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ieac31f6492e9d8ca3c15f787d0e5a2925777af45
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <jrob...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to