Skip to main content

Digging into the Spanish Depósito Legal identifier (part 1)

Every country has its laws which determines what has to be printed on releases. One of the countries where this is most visible is Spain. Especially on older releases you can find one identifier that is of great help to date releases, namely the depósito legal identifier.

In Spain it is normal (or perhaps even mandatory) to deposit music releases with a library, similar to the Library of Congress in the US, or other deposit libraries around the world. Each release (not just records, but also books) is assigned an identifier that is printed on it, for example in the picture below:


If you want to you can go to a library and search for the item and perhaps listen to it. For example. Queen's Back Chat 7" can be found at the national library in Madrid in Sala Barbieri.

It is unfortunately not easy to unlock this information from the website of the national library in Spain (so they still have quite some work to do) and it doesn't seem you can search on the depósito legal number.

Depósito legal format

The format of the depósito legal number has been defined in Spanish law (the link points to the format as defined in 2011 and article 14 describes the format).

The depósito legal number has the following fields:
  1. abbreviation of the name of the city where the item was originally deposited
  2. number assigned to the item
  3. year the item was originally deposited
The latest format (as defined in 2011) says that the year should be 4 digits, but as many releases were released before 2011 there are also many releases with just 2 digits.

Cities where item was deposited

Examples of abbreviations of names of cities where the items were originally deposited include:
  • M = Madrid
  • B = Barcelona
  • V = Valencia
  • T = Tarragona
  • BI = Bilbao
  • Z = Zaragoza
and so on. A longer list can be found in the (excellent) description in the Discogs forum.

Item number

The number assigned to the item is just that: a number. Typically this number has between 1 and 5 digits (mostly 4 or 5).

Year

The year is either 2 or 4 digits. If it is 2 digits then if it starts with 0 or 1 it should be prefixed with 20, otherwise with 19. At the moment this is unambigious, as there were no records in the early 1900s and the depósito legal identifier only became common in the late 1950s/early 1960s.

Recognizing depósito legal on a release

Recognizing a Spanish depósito legal identifier is not that difficult. Usually there will be some indicator that it is a depósito legal identifier, for example one of the following:
as well as other values, although sometimes they are missing.
This is followed by the abbreviation for the name of the city where the item has been deposited. Then there is either a space, a dot, a slash or dash (or a combination thereof), followed by the number (which might contain a dot as a delimiter), then again a slash, dash, dot or space (mostly seen are dash and slash) and then finally a 2 or 4 digit number indicating the year the item was deposited (sometimes with a dot as a delimiter)

Depósito Legal in Discogs

The Depósito Legal field in Discogs is fairly new. Therefore there are many old releases that have the data, but in the wrong field. One common place where you can find them is in "Barcodes and Other Identifiers" in the Other field, with some text in the description field indicating that there is a depósito legal identifier in the field.

Of course, since humans typed it in there are many errors and spelling mistakes. Some that were found:
  • depósito degal
  • deposito lagal
  • deposrito legal
  • depósito légal
  • sepósito legal
  • depósito lgeal
  • depósito legl
  • depõsito legal
  • depótiso legal
  • depásito legal
and many more.

Other fields in BaOI are also quite popular to store a depósito legal, as are the notes.

Since there is an actual Depósito Legal field quite a few of the new releases are using the new field although almost every day a few releases are added that either have the depósito legal field in the notes, or somewhere else, either because the person submitting it copied an older release as a template, or because the person is simply unaware of the fact that the field exists, has adopted a certain routine and keeps using that.

Using my scripts I ran some tests to see how many depósito legal identifiers were used where the Depósito Legal field should be used instead, by looking at various identifiers and the Notes field. In the September 2017 dump (data until September 1 2017) there were a bit over 43,500 entries that needed to be fixed. In the October 2017 dump (data until October 1 2017) this was down to a bit over 36,000.
On September 1, 2017 there were over 43,500 releases with a Depósito Legal identifier that needed to be fixed. On October 1, 2017 this was down to 36,000.
Several people have started the massive task of correcting these fields. How successful this is should be more clear as soon as the November 2017 dump is available.

Using the Depósito Legal field for more checks

The Depósito Legal field can be used for more checks, such as verifying if the year is correct, or if there are releases with the same depósito legal identifier that have not been added to the same master release. This is future work.

Comments

Popular posts from this blog

SID codes (part 1)

One thing that I only learned about after using Discogs is the so called Source Identification Code, or SID. These codes were introduced in 1994 to combat piracy and to find out on which machines a CD was made. It was introduced by Philips and adopted by IFPI, and specifications are publicly available which clearly describe the two available SID codes (mastering SID code and mould SID code). Since quite a few months Discogs has two fields available in the " Barcode and Other Identifiers " (BaOI) section: Mould SID code Mastering SID code A few questions immediately popped up in my mind: how many releases don't have a SID field defined when there should be (for example, the free text field indicates it is a SID field)? how many releases have a SID field with values that should not be in the SID field? how many release have a SID field, but a wrong year (as SID codes were only introduced in 1994) how many vinyl releases have a SID code defined (which is impossi

SPARS codes (part 1)

Let's talk about SPARS codes used on CDs (or CD-like formats). You have most likely seen it used, but maybe don't know its name. The SPARS code is a three letter code indicating if recording, mixing and mastering were analogue or digital. For example they could look like the ones below. There is not a fixed format, so there are other variants as well. Personally I am not paying too much attention to these codes (I simply do not care), but in the classical music world if something was labeled as DDD (so everything digital) companies could ask premium prices. That makes it interesting information to mine and unlock, which is something that Discogs does not allow people to do when searching (yet!) even though it could be a helpful filter. I wanted to see if it can be used as an identifier to tell releases apart (are there similar releases where the only difference is the SPARS code?). SPARS code in Discogs Since a few months SPARS is a separate field in the Discogs

Country statistics (part 2)

One thing I wondered about: for how many releases is the country field changed? I looked at the two most recent data dumps (covering February and March 2019) and see where they differed. In total 5274 releases "moved". The top 20 moves are: unknown -> US: 454 Germany -> Europe: 319 UK & Europe -> Europe: 217 unknown -> UK: 178 UK -> Europe: 149 Netherlands -> Europe: 147 unknown -> Europe: 139 unknown -> Germany: 120 UK -> US: 118 Europe -> Germany: 84 US -> UK: 79 USA & Canada -> US: 76 US -> Canada: 65 unknown -> France: 64 UK -> UK & Europe: 62 UK & Europe -> UK: 51 France -> Europe: 51 Saudi Arabia -> United Arab Emirates: 49 US -> Europe: 46 unknown -> Japan: 45 When you think about it these all make sense (there was a big consolidation in Europe in the 1980s and releases for multiple countries were made in a single pressing plant) but there are also a few weird changes: