Skip to content

Commit d933b45

Browse files
authored
Merge pull request SolidOS#422 from solid/ResearchOrganization
Add ResearchOrganization map to wikidata class and fix bug
2 parents 9d83fb1 + 379d8d3 commit d933b45

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

package-lock.json

Lines changed: 10 additions & 0 deletions
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
@@ -356,7 +356,7 @@ field[ns.ui('Multiple').uri] = function (
356356
* this callback happens to avoid widow links
357357
*/
358358
function itemDone (ok, message) {
359-
debug.log(`Item done callback for item ${object.uri.slice(-7)}`)
359+
debug.log(`Item done callback for item ${object.toString()}`)
360360
if (!ok) { // when does this happen? errors typically deal with upstream
361361
debug.error(' Item done callback: Error: ' + message)
362362
}

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)