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: |
Description
The basic URLs work
http://www.sciencedirect.com/science/journal/01676296
But the long internal URLs are failing to translate. The detect code properly returns the multiple items icon, but clicking it produces a error.
Change History (2)
comment:1 Changed 7 years ago by tjowens
comment:2 Changed 7 years ago by mcburton
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
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