URLs like http://www.nb.no/nbsok/nb/e6e4804e7451c95fb2e2a16b9e392e8a?index=2#0 return a "can't be done" error. Should this be in Zotero, or should Citoid support it more directly?
User:Profoss can help us.
URLs like http://www.nb.no/nbsok/nb/e6e4804e7451c95fb2e2a16b9e392e8a?index=2#0 return a "can't be done" error. Should this be in Zotero, or should Citoid support it more directly?
User:Profoss can help us.
I've submitted a Zotero translator that has been merged: https://github.com/zotero/translators/pull/1059
Could someone pull in updates to the translators?
@czar @Mvolz Hm, I still get the same old result when querying
[ { "accessDate": "2016-07-31", "itemType": "webpage", "title": "Mat frå gard og grend : om mat og matkultur i Lesja og Gudbrandsdalen gjennom 100år\n \n \n \n - Nasjonalbiblioteket", "url": "http://www.nb.no/nbsok/nb/a4cd69796dd3312c9780f5982a4a31f1", "websiteTitle": "www.nb.no" } ]
not the expected result
[ { "ISBN": [ "9788291375052" ], "accessDate": "2016-07-31", "author": [ [ "Bjørg", "Nordset" ] ], "date": "1995-01-01", "itemType": "book", "libraryCatalog": "National Library of Norway", "numPages": "176", "place": "Lesja", "publisher": "Bondekvinnelaget", "shortTitle": "Mat frå gard og grend", "tags": [ { "tag": "Kokebøker", "type": 1 }, { "tag": "Foods", "type": 1 }, { "tag": "Preservation", "type": 1 }, { "tag": "History", "type": 1 }, { "tag": "Mattradisjoner", "type": 1 }, { "tag": "Merkedager", "type": 1 }, { "tag": "Religiøse fester", "type": 1 }, { "tag": "Lesja", "type": 1 }, { "tag": "Gudbrandsdalen", "type": 1 } ], "title": "Mat frå gard og grend: om mat og matkultur i Lesja og Gudbrandsdalen gjennom 100år", "url": "http://urn.nb.no/URN:NBN:no-nb_digibok_2008030304011" } ]
that I get from
curl 'localhost:1970/api?action=query&format=mediawiki&search=http://www.nb.no/nbsok/nb/a4cd69796dd3312c9780f5982a4a31f1'
(my local Citoid instance using the latest translators)
When I test locally with the above link and our current version of the translators (including the Library of Norway translator) and currently deployed version of translation-server, I get "no translators available".
The translators were not deployed. Not sure how I missed this. It's looking good now:
$ curl 'https://citoid.wikimedia.org/api?action=query&format=mediawiki&search=http://www.nb.no/nbsok/nb/a4cd69796dd3312c9780f5982a4a31f1' | jq . [ { "author": [ [ "Bjørg", "Nordset" ] ], "shortTitle": "Mat frå gard og grend", "accessDate": "2016-08-01", "libraryCatalog": "National Library of Norway", "url": "http://urn.nb.no/URN:NBN:no-nb_digibok_2008030304011", "ISBN": [ "8291375054" ], "itemType": "book", "notes": [ { "note": "Opplagshistorikk: 2. oppl. 1995; 3. oppl. 2001", "itemType": "note" } ], "tags": [ { "type": 1, "tag": "Kokebøker" }, { "type": 1, "tag": "Foods" }, { "type": 1, "tag": "Preservation" }, { "type": 1, "tag": "History" }, { "type": 1, "tag": "Mattradisjoner" }, { "type": 1, "tag": "Merkedager" }, { "type": 1, "tag": "Religiøse fester" }, { "type": 1, "tag": "Lesja" }, { "type": 1, "tag": "Gudbrandsdalen" } ], "title": "Mat frå gard og grend: om mat og matkultur i Lesja og Gudbrandsdalen gjennom 100år", "date": "1995-01-01", "numPages": "176", "publisher": "Bondekvinnelaget", "place": "Lesja" } ]