Template talk:LCC

Usage
This template is used for referring to books by their Library of Congress Classification codes. For the external links to be formatted correctly, the LCC code must be presented without any spaces. For example:


 * results in ""

Some LCC codes contain an obligatory space followed by a year designation. In that case, the year must be passed as a second parameter to the template. For example:


 * results in


 * Thankfully, using two pipes ('|') seems to work when you need to pass two spaces, like so: Great work, Thanks! -- Avi 18:43, 31 May 2006 (UTC)

LCCN
Someone, please make a template:LCCN for LC Control Number search. I spend an hour and failed. It would be easy for an expredienced template maker. Thanks! --Irpen 19:42, 18 March 2006 (UTC)


 * Done. -- Jeandré, 2006-04-08t19:41z

urlencode
Why does it require you to separate spaces with pipes? Why not just use urlencode?


 * results in
 * results in

Same exact URL, so you can just use:

and get the same output:


 * results in LCC Z253.U69 1993

Is this the only reason it uses the pipes? — Omegatron 20:36, 3 December 2006 (UTC)


 * That was indeed the only reason when I wrote the original version. I'm not sure urlencode: existed at that time. Now that pipes are already in use, it would require a bot to change all occurrences with pipes, though. --MarkSweep (call me collect) 00:21, 4 December 2006 (UTC)

I'm sure someone would write a bot for it if asked. In the meantime, the template can be made to support both formats at the same time, and the documentation changed to recommend the non-piped version.

Test cases:


 * results in
 * results in
 * results in
 * results in
 * results in
 * results in
 * results in
 * results in
 * results in

— Omegatron 04:39, 5 December 2006 (UTC)


 * Looks like it works. I'll add documentation. — Omegatron 04:46, 5 December 2006 (UTC)


 * Fantastic. Good job keeping it backwards compatible. Cheers, --MarkSweep (call me collect) 07:44, 5 December 2006 (UTC)

What does LCClassification identify?
Using this template, what might be the rationale for specifying 'Z253.U69' or 'Z253.U69 1982' as the parameter value?


 * --returns a list of records by call number, starting (5 per page) with those of 11 books with call numbers that begin 'Z253.U69 1982' --all 11 of which share LCCN=82002832 and are linked to one page of information on those 11 copies
 * — hits the same list of records
 * — hits a list of records by call number, starting with those of four books with call numbers that begin 'Z253.U69 1993' --all 4 of which share LCCN=92037475 and are linked to a page of information on those 4 copies

Does this mean 'Z253.U69' was first used for editions beginning in 1982? That was not the first Chicago Manual of Style; publisher U of Chicago Press evidently calls 1982 and 1993 its 13th and 14th editions. Why create a new classification for the 13th edition? For example, does the classification change with every change in title? every change except subtitle alone?

Alternatively, may we infer that no earlier edition is in the (online) catalog?

--P64 (talk) 20:12, 28 May 2013 (UTC)