Closed davidscotson closed 10 months ago
where exactly did you find it?
The line here seems to be setting Q36180 on the basis of the opengraph info.
I'm thinking that something like this might work
{
name: 'og:type',
prop: 'P106',
type: 'WikibaseItem',
options: {
'books.author': 36180,
},
suggested: true,
},
Though not sure without trying it wether repeating the name og:type would cause issues.
I mean, on which website?
I guess you found it on openlibray like here: https://openlibrary.org/authors/OL8373276A/irukandji_sd
in this case we shoud just change this line to 5
, don't you agree?
Yep, 5 makes sense. Tested and it's working as expected.
thanks for making me aware of this. I actually forgot about this opengraph class matching 😅
But it would be better if we'd get both:
Ah very nice. I actually tried to do this myself, got as far as the changes in the first 8 lines of the diff, but it didn't work, presumably needing the more extensive changes.
I'll do some testing, but this looks great.
@davidscotson should be in the latest firefox version .318
. let me know if you notice any issues with this. You can just reopen this ticket. 🙂
The code will suggest to set
instance of
towriter
(but needs opted in, it's not automatically ticked) based on an og:type of books.author in the metadata.Ideally this would an option to set
occupation
towriter
instead, but I'm not sure if that's a small change or not.