Skip to content

Commit 7aae925

Browse files
committed
Add ResearchOrganization map to wikidata class and fix bug
1 parent c2d0c8a commit 7aae925

3 files changed

Lines changed: 31 additions & 2 deletions

File tree

package-lock.json

Lines changed: 29 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/widgets/forms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ field[ns.ui('Multiple').uri] = function (
350350
* this callback happens to avoid widow links
351351
*/
352352
function itemDone (ok, message) {
353-
debug.log(`Item done callback for item ${object.uri.slice(-7)}`)
353+
debug.log(`Item done callback for item ${object.toString()}`)
354354
if (!ok) { // when does this happen? errors typically deal with upstream
355355
debug.error(' Item done callback: Error: ' + message)
356356
}

src/widgets/forms/autocomplete/publicData.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export const wikidataClasses = {
5454
Occupation: 'http://www.wikidata.org/entity/Q28640', // Profession
5555
// Organization: 'http://www.wikidata.org/entity/Q43229',
5656
Project: 'http://www.wikidata.org/entity/Q170584',
57+
ResearchOrganization: 'http://www.wikidata.org/entity/Q31855',
5758
SportsOrganization: 'http://www.wikidata.org/entity/Q4438121'
5859
}
5960

0 commit comments

Comments
 (0)