extraction-framework icon indicating copy to clipboard operation
extraction-framework copied to clipboard

same mapping to act as top-level vs IntermediateNodeMapping

Open VladimirAlexiev opened this issue 10 years ago • 0 comments

{{Infobox beverage}} is applied in page Dalton_Winery several times to make the separate Wines of Dalton Winery:

  • Dalton_Winery__Red_canaan__1
  • Dalton_Winery__White_canaan__1
  • Dalton_Winery__Cabernet_Sauvignon__1
  • Dalton_Winery__Shiraz__1
  • Dalton_Winery__Merlot__1

The wine nodes are disconnected, since the {{Infobox beverage}} mapping is a normal (top-level) mapping and not an IntermediateNodeMapping. This template is surely applied to a number of independent pages, so it must remain a normal mapping.

I think we need new extraction functionality Conditional IntermediateNodeMapping: "If this template is first on a page, apply a normal (top-level) mapping. Else apply IntermediateNodeMapping"

VladimirAlexiev avatar Aug 13 '15 08:08 VladimirAlexiev