diff --git a/defaults/federatecfg/npmjs.html.map.properties b/defaults/federatecfg/npmjs.html.map.properties index 1fac17440..9d33fcc17 100644 --- a/defaults/federatecfg/npmjs.html.map.properties +++ b/defaults/federatecfg/npmjs.html.map.properties @@ -1,6 +1,5 @@ -# www.npmjs.com HTML search results mapping -# OpenSearch description : https://www.npmjs.com/opensearch.xml -# OpenSearch template URL : https://www.npmjs.com/search?q={searchTerms} +# www.npmjs.com (2019-02-01) HTML search results mapping +# search template URL : https://www.npmjs.com/search?q={searchTerms} # This is an example mapping file for OpenSearch systems or search APIs providing results only as HTML # When possible, it is preferable to use an OpenSearch URL providing results as standard RSS or Atom feed as mapping is generic @@ -9,16 +8,16 @@ # Character encoding is assumed to be ISO-8859-1 # Result node selector (required) -# In this example, a list item such as :
  • -_result=.package-details +# In this example, a section such as :
    ...
    +_result=section[class*=package-list-item] # Result link selector relative to the selected result block (required) -# In this example, a link such as packageName -_sku=.name +# In this example, a link such as
    ...
    +_sku=div.items-end a # field mappings # YaCyFieldname = HTML text node selector, relative to the result block # In this example title is the text of the link so it has the same selector -title=.name +title=h3[class*=package-list-item__title] # In this example the description is in a paragraph tag such as

    Package description

    -description_txt=.description \ No newline at end of file +description_txt=p[class*=package-list-item__description] \ No newline at end of file