zotero/translators — pull request #662 by O-Zone (2013-12-18 17:04:01+00:00)
Title: Primo with royal danish library

This is an altered version of the original Primo translator (as opposed to the new Primo-RoyalDanishLibrary translator I came up with a couple of weeks ago, which was reviewed by Sebastian Karcher and rejected).

We have made some minor alterations on our site, that has reduced the needed changes in the translator remarkably (but this translator may still fail until we push our next batch of bugfixes!). Now it all comes down to two lines of code!

One of the lines is adding

's to a list of
from the original! :-)

I'm no shark @ xpath, so you guys might wanna review the efficiency of this change:
'//tr[@class="result"]' ==> '//*[self::tr|self::div][@class="result"]'
the '//*' part somehow sounds expensive to me, but I honestly don't know the cost of it, so I am a bit eager to hear your view on it :-)