From Wikipedia, the free encyclopedia
WikiProject icon Library of Congress Template‑class
WikiProject iconThis template is within the scope of WikiProject Library of Congress, a collaborative effort to improve the coverage of the Library of Congress on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.

Adding option for Chronicling America

(I originally posted about this at Template talk:LCCN, but it occurs to me that this template is probably more suited to this use case.)

The Library of Congress's Chronicling America project uses LCCNs, but many of these LCCNs are not recognized by lccn.loc.gov. This seems to be because the LCCN server only serves up results for LoC holdings, and LCCNs starting with "sn" are part of CONSER and "may or may not be in LC". As a result, even though there is a responsive page on loc.gov for these LCCNs, this template frequently points to an empty search results page instead.

I have created a sandbox template that changes the URL to the Chronicling America version if parameter "chronicling=yes" is supplied. I have put some test cases here (lifted from Template:LCCN/testcases plus the above examples).

This is a low-usage template (13 transclusions) and I do not see any issues with the test cases. So if there are no objections in 24 hours I will implement this change and add the "chronicling=yes" option. -- Visviva ( talk) 19:00, 23 December 2019 (UTC) reply