User talk:Magnus Manske/authority control.js

Latest comment: 1 year ago by Nattes à chat in topic No more popup window

FAQ edit

Does the tool support other projects as enwikipedia or dewikipedia? edit

Yes. The tool can be used also at wikidata pages without any article in any WMF projects. see Q15055703 Chava‏ Pressburger sister of Petr Ginz.
Basically there are some minimal requirements to use the tool:

  • the label should be extended LATN UTF-8 characters only
  • the label should not use wiki pipe format as "Foo (Bar)"

Hint: You may create pages using links to any of the properties available at Wikidata:List of properties/Summary table#Person as family relations, field of work (person), award received etc.

Why does the popup window does not show the internal search string? edit

see above

How can I improve the internal search? edit

Note: at some point in time the script might offer one click links to add claims for these properties.

exercise: Q574432 Richard Casey, Baron Casey edit

Q574432 Richard Casey, Baron Casey does not identify the articles at enwikipedia. dewikipedia etc. How can you fix tis? Some people might disagree changing the label. לערי ריינהארט (talk) 19:26, 9 October 2013 (UTC)Reply

Note to Magnus: Could you scan the "Wikipedia pages linked to this item" section? לערי ריינהארט (talk) 19:31, 9 October 2013 (UTC)Reply

exercise: Q212509 William Lane edit

At Q212509 William Lane viaf:25523074 is available in wikidata together with LCCN and GND. The viaf.org search fails. לערי ריינהארט (talk) 20:04, 9 October 2013 (UTC)Reply

exercise: Q242064 Trugernanner edit

At Q242064 Trugernanner the tool identifies viaf:70259509 and an LCCN at dewikipedia. However the viaf.org search does not find these entries. לערי ריינהארט (talk) 20:22, 9 October 2013 (UTC)Reply

How can I improve wikidata adding additional claims for properties? edit

Today there are no one click links available. If not present add the followings:

  • add label and aliases if necessary
  • add main type (GND) if not present
  • add sex if not present

Note: at some point in time the script might offer one click links to add claims for these properties.

Does the tool offer insertion of claims or workflow type? edit

No. tbd
Ideas: The tool can detect the presence and absence of AC templates at WMF projects. The tool may detect the presence of an deprecated parameter at WMF projects as PND. It would be nice to rise a claim for a workflow type property watched by various bots performing these corrections / additions. לערי ריינהארט (talk) 08:49, 9 October 2013 (UTC)Reply

Why the display area of identifiers at enwikipedia etc. is (almost) empty? edit

An emtpy area is indicating that none of the parameters is available. This might happen at

en: when {{Authority control}} is used; the template is used without values; values are used via wikidata · Q574432 Kaca Celan
de: when {{Normdaten|TYP=p}} is used · Q828886 Gertrude Baumstark

Note: If {{Authority control| GND= | LCCN= | VIAF= | REMAKR=foobar}} is used; the tool interprets the parameters as a string like " " and not as NIL / the empty string. · Q13520818 Magnus Manske · Q3105227 Alastair Culham
The area may contain one or more lines with "(+) links. This might be a minor bug.

no results at frwikipedia edit

fr:Ernst Lossa contains {{Modèle:Autorité}}. Anyhow the tool shows:

fr.wikipedia no results at Q122955 Ernst Lossa

Note: It seams that the search is not related to the exact page name match but to the entries at "Wikipedia pages linked to this item". This might be a bug experienced at various other pages as well: Q316357 Juan Luis Vives · Q57284 Ólafur Ragnar Grímsson
Note: At Q189797 Vigdís Finnbogadóttir you may find:

{{Autorité | type = personne | WORLDCATID = lccn-n81-137459 | VIAF = 43170438}}

In the last example the VIAF value is detected properly.

Why I see the deprected PND parameter and not the GND identifier name? edit

For backward compatibility the tool is displaying the original parameter name used in WMF projects templates. One should update the parameter name.
Suggestion: maybe an alternative color should be used for the PND string.

next FAQ edit

(add here)

advanced issues edit

blue AC identifiers show up at red links in the viaf.org list edit

example: Q5264 Hippocrates' shows: a) viaf:54148979 2 sources and the new b) viaf:8179362 and c) viaf:287984736 Background:

a) is a VIAF id sshowing "'This VIAF Cluster has been deleted. It is no longer part of VIAF." (ths should be veriefied in addition to the verification of the existing of the html page see #deprecated AC identifiers
b) is the VIAF id associated to the proper GND id
c) is the VIAF id associated to LCCN id and to the "WKP" id
note: the tool does not offer GND identifiers of type (undifferentiated) in the viaf.org section

blue AC identifiers show up at red links in the viaf.org list edit

tbd

GND blue links at other then VIAF ID: XXXXXXXXX (Personal) type edit

At Q592387 The Seekers the tool locates viaf:136819038/ VIAF ID: 136819038 (Corporate). The tool shows a (+) for http://d-nb.info/gnd/10284520-7/about/html Which shows "Organisation". To my understanding the "(+)" should not be showsn. Supress the whole line similar to personal GND identifiers of type (undifferentiated) . לערי ריינהארט (talk) 18:31, 9 October 2013 (UTC)Reply

next issue edit

(add here)

notes about the data model edit

redirecting AC identifiers edit

two situations: a) redirecting VIAF ids b) redirecting GND ids

deprecated AC identifiers edit

I assume that a note should be added to the template parameter REMARK (mayby to a property AC remark of type string).

multiple AC identifiers at the same source edit

Some national libraries as LAC, IUL, BAV and maybe others offer more language or script depending varians. mediawiki templates do not support multiple occurences of the same parameter. Only the last value is preserved.
(The tool might display multiple entries? verify!)

next note edit

(add here)

known bugs edit

normalization of AC identifier values edit

a) generating wrong urls: the BnF identifier format documentation is required to fix the related values b) ISNI needs reformating c) NLA may use identifiers with and without heading zeros d) Italy see:

Fails on current GUI with Firefox edit

Fails with error message: TypeError: $(...).dialog is not a function on line 62. --Smalyshev (WMF) (talk) 08:04, 11 April 2015 (UTC)Reply

next known bug edit

(add here)

suggestions edit

REMARK and NOTES parameters edit

Please see de: for Q274342 Tatyana Tolstaya. it contains

{{Normdaten|TYP=p|GND=119142791|LCCN=no/89/9411|VIAF=101873704|REMARK=Dubletter {{Tp|129094870}}.}}

I think that it would be a great help to display (not necessary to linkify) the content of the REMARK parameter. Previous versions might use the parameter NOTES for the same purpose. לערי ריינהארט (talk) 07:39, 9 October 2013 (UTC)Reply

N6I: P1946 (P1946) edit

@Magnus Manske:: We could harvest P1946 (P1946) from VIAF as well, just add:

N6I:{key:'N6I',p:1946} , /* "National Library of Ireland */

Also, why is the National Library of Israel auskommentiert? Jonathan Groß (talk) 09:37, 10 April 2017 (UTC)Reply

next suggestion edit

Feels like a record like viaf/102569965 that has a Wikidata Q number = Q1992294 is not accessed.... e.g. the SELIBR will then be found for Q1992294#P906 - Salgo60 (talk) 06:35, 25 October 2017 (UTC)Reply

next suggestion edit

(add here)

next suggestion edit

(add here)

P396 bug edit

The SBN codes the tool is adding have a wrong syntax and need to be fixed (both the tool and the SBN codes previously inserted by the tool). --Accurimbono (talk) 16:57, 23 December 2013 (UTC)Reply


Again: @Magnus Manske Please note that for SBN author ID (P396) (italian libraries authority control code):

  1. Wrong code added by the script
  2. Manual correction

Please fix the script. Thanks --Accurimbono (talk) 16:00, 15 January 2014 (UTC)Reply

I think it's fixed, please test it. --Magnus Manske (talk) 16:48, 17 January 2014 (UTC)Reply
@Magnus Manske Thank you very much!
I test it, but it doesn't works: The script show in the popup box the right SBN code (i.e. "IT\ICCU\CFIV\024311") but I noted that:
1) If I click on the "+" symbol in the second column of the table, it does not add the code
2) If I click on the "+" symbol on the right side of the single SBN code, it works fine.
Can you please investigate the problem? Thanks! --Accurimbono (talk) 17:28, 19 January 2014 (UTC)Reply
Sorry, it seems that it doesn't work in both cases. --Accurimbono (talk) 17:35, 19 January 2014 (UTC)Reply
What item? --Magnus Manske (talk) 19:32, 19 January 2014 (UTC)Reply
@Magnus Manske For my test, I used Q469134 but the script doesn't add the SBN code for any item. --Accurimbono (talk) 08:50, 20 January 2014 (UTC)Reply
Fixed now. --Magnus Manske (talk) 09:16, 20 January 2014 (UTC)Reply
Thank you very much! --Accurimbono (talk) 13:47, 20 January 2014 (UTC)Reply

Things I have thought about edit

Please tell me to stop if you want!

  1. Magnus Manske: Could it be possible that the tool also adds the source from where it got the AC-info, like "imported from the German Wikipedia" or "imported from VIAF?
  2. Magnus Manske: On Q828638 it could not find the right person under "viaf.org". But when I changed the name in this edit, it found it. It should be able to search on viaf using identifiers already in Wikidata.
  3. Magnus Manske: If the identifiers already added to the page is in a color (i.e. green) to show which numbers already has been added, plus that it helps out with which viaf.org-option is correct.
  4. Magnus Manske: WKP should be removed as an option to add, since you can't add it anyways.

(tJosve05a (c) 21:35, 4 April 2014 (UTC)Reply

addOnloadHook is deprecated edit

Not a real problem currently, it just triggers a little warning in the console which confuses people (e.g. in bugzilla:64842). In case you don't know, PerfektesChaos created this really helpful overview: de:Wikipedia:Technik/Skin/JS/Obsolet#addOnloadHook(). --Thiemo Mättig (WMDE) 08:57, 6 May 2014 (UTC)Reply

label lookup fails edit

@Magnus Manske: There seems to have been changes in WB that are causing the javascript to file, and my programming skills are not good enough to fix the issue. What is happening is the name/label lookup component fails, and I am presuming that it is a part of self.name = $($('h1 span.wb-value').get(0)).text() but I just don't know enough to attempt to play. #wikidata irc isn't proving successful in getting a review. Thanks.  — billinghurst sDrewth 11:49, 4 October 2014 (UTC)Reply

Aude showed me the fix to implement.  — billinghurst sDrewth 13:15, 4 October 2014 (UTC)Reply

Question marks in Commons names edit

"?" (question mark) must be escaped in the URL for Commons category (P373): see, for example, ? (Q3048853). (I assume authority_control.js is the gadget that does this.) --Closeapple (talk) 17:51, 4 December 2014 (UTC)Reply

VIAF search fails, issue with their API? edit

Hi. When using the tool at the moment, I have found that the VIAF component of the search does not complete, and just hangs with the text "Searching" showing. If someone is able to provide some guidance on what may be the issue that would be appreciated. The VIAF search tool is returning data, so maybe there is an issue with the API at their end?  — billinghurst sDrewth 10:29, 21 December 2014 (UTC)Reply

@Magnus Manske: Now it shows "No results" everytime even if the person exists on VIAF, can you fix this? Thanks! Thibaut120094 (talk) 14:59, 26 March 2015 (UTC)Reply
Latest Wikidata update changed the CSS, so the script couldn't find the person's name anymore. Adapted for new CSS. --Magnus Manske (talk) 22:23, 26 March 2015 (UTC)Reply
It works, thank you very much. Thibaut120094 (talk) 23:09, 26 March 2015 (UTC)Reply

NLR <-> RUNLR edit

Hi, when adding identifiers for Louis XIV of France (Q7742) the following happened: [1]. Obviously these are identifiers of the Russian National Library, not the Romanian... -- Gymel (talk) 17:01, 6 March 2016 (UTC)Reply

Another case like this here: User_talk:Halibutt#Menander_.28Q118992.29. @Magnus Manske:, is it fixable? Halibutt (talk) 01:28, 13 October 2017 (UTC)Reply
This is a serious problem. I have recently had to fix:
Perhaps we can disable this support and later add support for National Library of Russia ID (P7029) and while fixing support for National Library of Romania ID (P1003) in the process? —Uzume (talk) 18:45, 31 March 2022 (UTC)Reply
@Matěj Suchánek: The following should work:
Thanks, --Epìdosis 20:22, 31 March 2022 (UTC)Reply
  Done Hopefully. --Matěj Suchánek (talk) 09:03, 4 April 2022 (UTC)Reply
@Matěj Suchánek: The comment on line 41 (formerly 42) should be changed as well since it is now processing a different property (from "Romania" to "Russia"). The current comment is highly deceptive. —Uzume (talk) 16:09, 9 April 2022 (UTC)Reply
  Fixed Matěj Suchánek (talk) 13:05, 10 April 2022 (UTC)Reply

VIAF problem edit

@Magnus_Manske: Since yesterday it looks like I get problems retrieving VIAF records using this magic script. Example d:Q23810 gives empty records. I am using MacBook and Chrome Version 60.0.3112.90

 

- Salgo60 (talk) 17:05, 11 August 2017 (UTC)Reply

Working fine for me PC and latest FF.  — billinghurst sDrewth 14:45, 13 August 2017 (UTC)Reply
Installed Firefox and it worked for me...hm... thanks for testing - Salgo60 (talk) 06:34, 14 August 2017 (UTC)Reply
Also not working for me with same Chrome build on PC. There's a comment in Magnus' code about a Chrome bug that may now have been fixed because the correct execution path is now the non-Webkit one for me. So, easy to work around locally, but it would be nice to have it patched. --Nono314 (talk) 21:37, 13 August 2017 (UTC)Reply
This is the same issue as I pinged you Magnus about on twtter a month or two back. (tJosve05a (c) 19:09, 15 August 2017 (UTC)Reply

Should be fixed now. However, it will break older webkit browsers. Solution: Upgrade! :-) --Magnus Manske (talk) 10:20, 17 August 2017 (UTC)Reply

Hi Magnus,
when this problem was first reported, it still was fine for me... but for a few days now, I have the same symptoms as described, and when I use the => link to see the Viaf record, it links to "http://viaf.org/viaf//"… obviously a problem with id retrieving :((
don't know if the viaf api is responsible or what... could you (pretty pretty) please fix this ? (note, I'm on Safari, but I had the same problem on PC Firefox yesterday).
Thanks a lot. --Hsarrazin (talk) 11:26, 27 August 2017 (UTC)Reply

CiNii problem edit

Hi, when a NACSIS-CAT author ID (P271) identifier is in VIAF, it doesn't show up in the gadget:

 

Can you please fix? Thank you.

Regards.--Thibaut120094 (talk) 16:21, 12 November 2017 (UTC)Reply

Missing identifiers & a bug that leads to database pollution edit

I really like this, but I noticed some missing identifiers, which are present in VIAF records and in Wikidata, but which do not get added:

Other libraries which provide identifiers to VIAF, but do not have an ID for their authority records in Wikidata yet, are:

BUG:

--Sotho Tal Ker (talk) 01:24, 1 May 2018 (UTC)Reply

BAV Vatican Library edit

Hi Magnus! How are you? Please note that now it seems that on VIAF the old BAV identifier (P1017) has been replaced by the new BAV identifier (P8034). Can you please update the js tool? Thanks! Accurimbono (talk) 13:22, 18 August 2020 (UTC)Reply

@Magnus Manske:, I missed the ping, sorry. Accurimbono (talk) 13:24, 18 August 2020 (UTC)Reply
@Matěj Suchánek: this has been stuck for more than 1,5 years: change https://www.wikidata.org/wiki/User:Magnus_Manske/authority_control.js#L-18 from "1017" to "8034"; copy lines 349-351 from https://www.wikidata.org/wiki/User:Sotho_Tal_Ker/authority_control.js#L-349 after https://www.wikidata.org/wiki/User:Magnus_Manske/authority_control.js#L-288; otherwise we still get wrong edits like https://www.wikidata.org/w/index.php?title=Q11696747&diff=1580279012&oldid=1580278891. Thanks, --Epìdosis 11:07, 20 February 2022 (UTC)Reply
  Done --Matěj Suchánek (talk) 11:13, 20 February 2022 (UTC)Reply

Doesn't work edit

The tool doesn't add anything anymore after clicking on the plus sign. Am I the only one with this problem? --Anvilaquarius (talk) 08:37, 26 October 2021 (UTC)Reply

I probably fixed it with Special:Diff/1519645467. --Matěj Suchánek (talk) 11:14, 20 February 2022 (UTC)Reply

SBN format edit

@Magnus Manske, Matěj Suchánek: After the format change of SBN author ID (P396), lines 269-275 which were necessary to adapt the format stored in VIAF to the format stored in Wikidata need to be removed, because we have adopted the same format as VIAF. Thanks, --Epìdosis 13:46, 14 February 2022 (UTC) P.S. also @Sotho Tal Ker: for his User:Sotho Tal Ker/authority control.js, lines 295-300Reply

  Done --Matěj Suchánek (talk) 13:16, 15 February 2022 (UTC)Reply

GND format edit

Hallo Magnus, das Script scheint noch Probleme mit GNDs, die einen Bindestrich enthalten, zu haben. Beispiel: Special:Diff/1596171546. VIAF, Feld 1: DNB|962554529 = VIAF, Feld 24: GND 6021574-4. Gruß --Kolja21 (talk) 20:42, 18 March 2022 (UTC)Reply

Das Problem besteht weiterhin und führt zu dubletten Einträgen von fehlerhaften IDs (Special:Diff/1638794225). @Emu, MisterSynergy: FYI. --Kolja21 (talk) 23:55, 16 May 2022 (UTC)Reply

CANTIC edit

@Matěj Suchánek: User:Magnus_Manske/authority_control.js#L-15 should become "BNC:{key:'BNC',p:9984} , /* BNC = CANTIC */". Thanks, --Epìdosis 11:12, 24 May 2022 (UTC)Reply

  Done --Matěj Suchánek (talk) 09:01, 30 May 2022 (UTC)Reply

No more popup window edit

Hello @Magnus Manske,

It seems recent changes have corrupted the tool somehow because the popup window does not appear anymore for me. Instead, there is a blank space appearing under the item header but nothing happens then. Moumou82 (talk) 16:27, 7 August 2022 (UTC)Reply

There is the same error for me. Tambuccoriel (talk) 12:01, 16 August 2022 (UTC)Reply
I am not able to use authority control any more is that related to the same changes ? Nattes à chat (talk) 22:00, 18 August 2022 (UTC)Reply
Return to the user page of "Magnus Manske/authority control.js".