MediaWiki:FTE:iarchlib

{{~ignore:

This template automatically obtains the Digitizing Sponsor field from Internet Archive. Longer names (more than 18 characters) will only be displayed if there is a specific abbreviation (otherwise it will default to "archive.org").

Instructions: Please don't change any code on this page except for the list of abbreviations, which you should feel free to add to.

The library abbreviations use the official RISM sigla, which can be searched at http://www.rism.info/en/sigla.html

~}}{{~fetchinfo:http://archive.org/details/{1~preg_replace:id<>@^([^#/]+).*$@~1}&output=json<>DS=/"sponsor":\["(.+?)"/i<>BC=/"contributor":\["(.+?)"/i<>*DS={*~switch:DS[0]

<*>Brigham Young University=US-PRV <*>University of Alberta Libraries=CDN-E <*>Boston Public Library=US-Bpr <*>University of Illinois Urbana-Champaign=US-U <*>University of North Carolina at Chapel Hill=US-CHH <*>University of Toronto=CDN-Tu <*>University of Western Ontario - University of Toronto Libraries=CDN-Lu <*>University of Ottawa=CDN-Ou <*>Columbia University Libraries=US-NYcu <*>University of Southampton=GB-SOu <*>Library Digitisation Unit, University of Southampton=GB-SOu

<*>DEFAULT={2~iflen:DS[0]<*>18<*>{{{DS[0]}}}<*>archive.org~2}~*}<>*=archive.org~}}