ParserFunction for Library of Congress Control Numbers (LCCN)
Closed, DeclinedPublic

Description

Author: ui2t5v002

Description:
This is similar in concept to the magic ISBN numbers we already have, but I
think a different implementation would be superior.

LCCNs have two forms. Regular form that you would find in books (89-456), and
normalized form, used for machine-readable stuff (89000456).

See http://www.loc.gov/marc/lccn-namespace.html for the normalization rules.

We have a template {{LCCN}} to handle them now, but, since we have no string
manipulation capabilities on the user side, it's ugly and hard to use.

The magic ISBN feature is nice, but instead of "LCCN 71-143545" being rendered
directly as a link, I'd rather just have a flexible parserfunction like
urlencode to convert regular form into normalized form. Like
"{{lccn:n78-89035}}" would output "n78089035".

Then the numbers can be used in different ways in different places. The
standard template's link target and display formatting could remain controllable
by users, while the normalized number could be used by itself in
machine-readable COinS tags in citation templates, for instance.


Version: unspecified
Severity: enhancement
URL: http://en.wikipedia.org/wiki/Template_talk:LCCN

bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz8160.
bzimport created this task.Via LegacyDec 5 2006, 4:07 PM
Qgil added a comment.Via ConduitApr 26 2014, 6:31 AM

{{Template:LCCN}} still seems to fit the bill, and a parserfunction for LCCN in MediaWiki core sounds a bit of an overkill.

I wonder whether this is a wontfix.

jayvdb added a comment.Via ConduitApr 26 2014, 9:35 AM

(In reply to Quim Gil from comment #1)

I wonder whether this is a wontfix.

I agree. The Lua string manipulation capabilities now available provide the functionality requested by this bug.

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.
https://phabricator.wikimedia.org/T10160
phabricator.wikimedia.org
crawl=CC-MAIN-2015-18
27233
application/http; msgtype=response
sha1:HXFNL7T4Z27HK3YES5MINO4ESXEW6SU3
<urn:uuid:fb532a34-6291-4ce3-927c-60ffbf820b1d>
2015-04-28T03:47:25Z
208.80.154.241
sha1:AJPFYFRL2KEEHWQHRL5VFNPCISPJPD54
<urn:uuid:68d9ebab-97ac-47fc-a041-71bc3f30e819>
https://phabricator.wikimedia.org/T10160
response
<urn:uuid:71d5d109-1f4b-414f-bf92-377b60dee731>
robots: classic
hostname: ip-10-235-10-82.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2015-18
operator: CommonCrawl Admin
description: Wide crawl of the web for April 2015
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf