The legal deposit system is geared to preserving copies of all a country's published works. It involves a number being issued to each edition of each such work. In Spain, the system applies to all publications produced for dissemination purposes in the country, regardless of their type and format, whether subject to payment or free of charge.