Opened 7 years ago

Closed 7 years ago

#1478 closed enhancement (fixed)

Improve Support For Science Direct URL Formats

Reported by: tjowens Owned by: mcburton
Priority: major Milestone:
Component: translators Version: 1.0
Keywords: Cc:

Change History (2)

comment:1 Changed 7 years ago by tjowens

User cfingerh in the forums suggested this fix:

I tried to figure out the translator and found a solution to the problem.

I changed in the ScienceDirect.js translator file the two lines

xpath = 'table[@class="txt"]/tbody/tr/td[2]';

to

xpath = 'div[@class="font3"][@id="bodyMainResults"]/table/tbody/tr/td[2]/a';

I'm not expert in translators, so maybe it would be good that somebody else checks this and maybe update the translator

comment:2 Changed 7 years ago by mcburton

  • Resolution set to fixed
  • Status changed from new to closed

(In [4601]) Fixes #1478, tweaked xpath and added logic to catch empty selectItems arrays.

Note: See TracTickets for help on using tickets.