Template talk:LOC-image

From Wikimedia Commons, the free media repository
Jump to: navigation, search
Info non-talk.svg Template:LOC-image has been protected indefinitely because it is a highly-used or visible template. Use {{Edit request}} on this page to request an edit.

Note[edit]

This template's HDL lookup only works for images from the Library of Congress's Prints and Photographs Division (the loc.pnp in the URL). For images from the Geography and Map Division, see Template:LOC-map. There may be other divisions as well that we should create templates for. --Delirium 07:53, 14 June 2006 (UTC)

Copyright[edit]

We should add instructions about still needing a copyright tag. --Evrik 13:40, 19 March 2007 (UTC)

Hm. The template doesn't mention copyright at all. Is there really confusion about this? :) --Gmaxwell 13:58, 19 March 2007 (UTC)
  • yeahh .... the template ite replaced was a copyright template, there might still be confusion. --Evrik 17:05, 22 March 2007 (UTC)
I bet some of the more casual users of Commons are totally unaware that not all tags are copyright tags.--Pharos 17:29, 22 March 2007 (UTC)

Problem[edit]

It appears the LOC has changed their servers a bit. See Image:Pauling.jpg and notice the template does not work correctly, even though this is from the PNP part of their site. Aboutmovies 08:23, 4 December 2007 (UTC)

The digital ID was not given correctly for this image, so no, it did not work. (It can be hard to figure out the digital ID if you find images on other parts of LoC's site; you usually need to search on the PNP part and find the original page, and that is what seems to have happened here.) Carl Lindberg 08:42, 4 December 2007 (UTC)

Should we add a field for their reproduction number?[edit]

Hi, when you click on How to obtain copies of this item (right below the pic in its destination page) they always ask you for its reproduction number (even when obtaining copies from digital files through their Photoduplication Service). I was wondering if we should include a field for it in this template, since it seems to be the most reliable identifier for them. - Esteban Zissou (talk) 13:31, 17 June 2008 (UTC)

We do, it's the same as the digital ID for the prints and photographs div. Or rather the reproduction number has some heading stuff too, but as I recall I wasn't able to form a working URL using it or something like that. --Gmaxwell (talk) 00:48, 20 June 2008 (UTC)
Yeah, you can't easily form a URL for it I don't think, so it would have to be in addition to the digital ID. We could make it optional I suppose. If I recall there are some works where the digital ID refers to a grouping of works, with the reproduction number being the actual individual items. One example is Image:ApexBuildingHighsmith.jpg, which is from pplot.13734, a collection of photographs. Clicking a link on that page gives you a gallery view, but it is possible to link to an individual image (in this case reproduction number LC-DIG-pplot-13734-01527). Usually though the digital ID points to a page with individual works, and it is easy to get the reproduction number from there. The LoC does seem to use this "pageturner" thing for certain collections though; no idea under what circumstances. Carl Lindberg (talk) 02:02, 20 June 2008 (UTC)
I think an optional field will do, à la {{LOC-image|ggbain.XXXXX|#repNumber#}}, where #repNumber# is an optional field for its reproduction number. Esteban Zissou (talk) 12:56, 24 June 2008 (UTC)

Colour[edit]

{{Editprotected}} I don't see a need for this to be red. A less alarming colour would be nice, e.g. white or gray. Thanks, -- ChrisiPK (Talk|Contribs) 21:54, 3 November 2008 (UTC)

✓ Done [1] by Wuzur. Thanks, -- ChrisiPK (Talk|Contribs) 19:40, 4 November 2008 (UTC)

Change category[edit]

{{editprotected}}

Please move this to Category:Source templates rather than Markers, since that's what its for. ViperSnake151 (talk) 22:34, 7 April 2009 (UTC)

✓ Done Rocket000 (talk) 02:02, 8 April 2009 (UTC)

Creation of Category:LOC picture without template[edit]

I create this maintenance category so that people can help adding templates to those files. Teofilo (talk) 11:42, 30 September 2009 (UTC)

Changes to note#3[edit]

{{editprotected}} One should consider that "(the loc.pnp in the URL)" as mentioned in note#3 still applies. But appearingly the Library of Congress redesigned their page, so ".gov/pictures/" in the URL is where to find Prints and Photographs Division from now on. The "old" style with loc.pnp does not work for all items, although some are redirected properly. Please add this info to note#3.

 Not done : I don't know what you're talking about, but you can do it yourself anyway as Template:LOC-image/en is where the English message comes from and that page isn't protected. --The Evil IP address (talk) 14:22, 18 April 2010 (UTC)
He is saying that the Library of Congress is changing the URL style of many of their images, and the URLs generated by this template sometimes no longer work (but sometimes they do; I haven't found a pattern yet). Unfortunately I'm not sure the old "digital IDs" they use, which is the parameter for usages of this template, apply for the new URLs. So, sometimes this template will give a link which no longer works, but the image may well still exist. So yes, I guess the best we could do at the moment is add a note. Carl Lindberg (talk) 15:52, 18 April 2010 (UTC)

New image URL at the LOC[edit]

{{editprotected}} Old URL: [http://www.loc.gov/pictures/resource/{{urlencode:{{{1|}}}}}/ {{{1|}}}]
New URL: [http://loc.gov/pictures/item/...

Can you change the appropriate template?

- Dogears (talk) 16:47, 5 June 2010 (UTC)
Please update the documentation as well. Jappalang (talk) 05:13, 30 June 2010 (UTC)
Hmmm, I tried with File:Dresden Altmarkt 1900.jpg : old url http://www.loc.gov/pictures/resource/ppmsca.00946/ works, your suggestion http://loc.gov/pictures/item/ppmsca.00946/ does not.
Is it something I missed? Jean-Fred (talk) 09:44, 30 June 2010 (UTC)
If you are asking me, I am not certain; I presume Dogears know of the correct code. What I know is the template is not working for File:William Zeckendorf NYWTS.jpg. Jappalang (talk) 21:12, 30 June 2010 (UTC)
The info above appears to be incorrect. The "item" URLs take a new item identifier, not the older digital ID which is the argument to all the templates on the hundreds of thousands of existing images. So no, the template should not be changed per the above. The (really) old URLs appear to usually still work; in the above case though the old hdl.loc.gov URL redirects to the "resource" URL then gets an internal error. Perhaps we should add an "item" parameter to the LOC image templates; if present *then* we can use the "item" URL style as specified above rather than the resource. I.e. something like {{LOC-image|item=12345678}}. A (working) URL for the above image is here; that needs an item parameter of 95507047 though. Carl Lindberg (talk) 02:43, 2 July 2010 (UTC)
The digital id, was specifically chosen because it is a permanent url ID and because it is unique to the specific scan/digitization of an item. I'm not sure if there are similar guarantees about the permanentness of the new item ids. TheDJ (talk) 18:03, 17 August 2010 (UTC)
Yeah, I'm not sure either. They do often still show the older digital ID links on their image pages, which seems to indicate they are supposed to keep working. On the other hand, they seem to show the new item links under the "Bookmark This Record" headings, which indicates that is now a preferred (or at least supported) URL style. And if you look at the MARC records, you'll see these item numbers under the "001" tag (usually the first one listed), so I think these numbers have long existed, if not used in URLs. It may be best to ask for *both* values to be supplied if known, and maybe use the most reliable URL style (which seems to be the "item" ones at the moment. Carl Lindberg (talk) 14:01, 18 August 2010 (UTC)
 Not done old and new ID are different, the old ID, ppmsca.00946 in the example above, is still present on the page. So we should continue to use it and not replace it. If someone skilled can rewrite the template to accept both IDs it would be great, but that was not requested here. --Martin H. (talk) 16:53, 23 September 2010 (UTC)

Based on Template:LOC-meta from 13.08.2010[edit]

This template based on Template:LOC-meta from 13.08.2010. Please Keep all future discussion on Template talk:LOC-meta. --Kaganer (talk) 17:04, 17 August 2010 (UTC)

Wrong URL again?[edit]

The LOC might have changed their links again. The template is linking to http://hdl.loc.gov/loc.pnp/g7823m.ct000570 but the new url appears to be http://hdl.loc.gov/loc.gmd/g7823m.ct000570 instead. -- Autopilot (talk) 01:02, 20 August 2012 (UTC)

No, that image should be using the {{LOC-map}} template instead of LOC-image, that's all. Carl Lindberg (talk) 07:25, 20 August 2012 (UTC)

Derivative images[edit]

{{editrequest}} Often an image will be taken from the LOC but modified (e.g., Franklin Pierce, which had to be cropped for File:Franklin Pierce.jpg). There should be a flag such as |derivative=true which will change the text to "This file was modified from an image available at the Library of Congress." or something like that. —Designate (talk) 00:36, 1 July 2014 (UTC)

rm editrequest-template. Please provide the code. --Steinsplitter (talk) 11:50, 29 October 2014 (UTC)