User talk:Inductiveload/addVIAFdata.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

About addVIAFdata

[edit]

What does it do?

[edit]

addVIAFdata.js is tool creating a pop-up dialog box which allows you to search VIAF database for Authority control data related to the person or institution and automatically add the results as {{Authority control}} template to categories, galleries, {{Creator}} or {{Institution}} templates.

How do I install it?

[edit]

Log in and go to your preferences, select "Appearance", and then edit the "Custom JS". There add "importScript('User:Inductiveload/addVIAFdata.js');" line, save and then clear your browser's cache (as indicated on that page). Then, you should be able to see Add authority control link in the bottom left corner of gallery, category, creator and institution pages.

How do I use it?

[edit]

{{Authority control}} templates are mostly used to uniquely identify people; however they can also be used with institutions, corporations, and possibly other. {{Authority control}} are usually added to {{Creator}} and {{Institution}} templates, but they can also be added to categories and galleries, without those templates. Follow the steps below to add {{Authority control}} template.

Screenshot Explanation
Find and click Add authority control link in the bottom left corner. It should be visible on gallery, category, creator and institution pages.
Pop-up dialog box opens up displaying various records found in the viaf.org database. Click the icon next to the first record. When adding authority control to pages related to people, please make sure you have the right person by matching dates of birth and death or other data.
icon changes to and proposed {{Authority control}} template filled with data from VIAF database is displayed together with its output. At this stage changes can be rejected or modified. Once you are satisfied press Update Authority Control Information button to save the changes.
After pressing Update Authority Control Information button, {{Authority control}} template is added to the page, Difference between revisions screen is displayed together with the final version of the template.

Who wrote this script?

[edit]

This script was written by User:Inductiveload, originally for WikiSource, but then modified for purposes of Commons.