1 /************************************************************************
2 **
3 ** Copyright (C) 2016 Kevin B. Hendricks, Stratford, Ontario, Canada
4 ** Copyright (C) 2011 John Schember <john@nachtimwald.com>
5 **
6 ** This file is part of Sigil.
7 **
8 ** Sigil is free software: you can redistribute it and/or modify
9 ** it under the terms of the GNU General Public License as published by
10 ** the Free Software Foundation, either version 3 of the License, or
11 ** (at your option) any later version.
12 **
13 ** Sigil is distributed in the hope that it will be useful,
14 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ** GNU General Public License for more details.
17 **
18 ** You should have received a copy of the GNU General Public License
19 ** along with Sigil. If not, see <http://www.gnu.org/licenses/>.
20 **
21 *************************************************************************/
22
23 #include <QString>
24 #include <QStringList>
25 #include <QHash>
26
27 #include "Misc/MarcRelators.h"
28
29 MarcRelators *MarcRelators::m_instance = 0;
30
instance()31 MarcRelators *MarcRelators::instance()
32 {
33 if (m_instance == 0) {
34 m_instance = new MarcRelators();
35 }
36
37 return m_instance;
38 }
39
40
GetName(QString code)41 QString MarcRelators::GetName(QString code)
42 {
43 DescriptiveInfo rel = m_CodeMap.value(code, DescriptiveInfo() );
44 return rel.name;
45 }
46
47
GetDescriptionByCode(QString code)48 QString MarcRelators::GetDescriptionByCode(QString code)
49 {
50 DescriptiveInfo rel = m_CodeMap.value(code, DescriptiveInfo());
51 return rel.description;
52 }
53
54
GetDescriptionByName(QString name)55 QString MarcRelators::GetDescriptionByName(QString name)
56 {
57 QString code = m_NameMap.value(name, QString());
58 return GetDescriptionByCode(code);
59 }
60
61
GetCode(QString name)62 QString MarcRelators::GetCode(QString name)
63 {
64 return m_NameMap.value(name, QString());
65 }
66
isRelatorCode(QString code)67 bool MarcRelators::isRelatorCode(QString code)
68 {
69 return m_CodeMap.contains(code);
70 }
71
isRelatorName(QString name)72 bool MarcRelators::isRelatorName(QString name)
73 {
74 return m_NameMap.contains(name);
75 }
76
GetSortedNames()77 QStringList MarcRelators::GetSortedNames()
78 {
79 if (!m_sortedNames.isEmpty()) {
80 return m_sortedNames;
81 }
82
83 foreach(QString code, m_CodeMap.keys()) {
84 DescriptiveInfo rel = m_CodeMap.value(code);
85 m_sortedNames.append(rel.name);
86 }
87 m_sortedNames.sort();
88 return m_sortedNames;
89 }
90
GetCodeMap()91 const QHash<QString, DescriptiveInfo> & MarcRelators::GetCodeMap()
92 {
93 return m_CodeMap;
94 }
95
MarcRelators()96 MarcRelators::MarcRelators()
97 {
98 SetRelatorsMap();
99 }
100
SetRelatorsMap()101 void MarcRelators::SetRelatorsMap()
102 {
103 if (!m_CodeMap.isEmpty()) {
104 return;
105 }
106
107 // For the authoritiative relator list and descriptive definitions see http://www.loc.gov/marc/relators/
108 // Names and codes must be unique between basic and advanced (except Publisher).
109 QStringList data;
110 data <<
111 tr("Abridger") << "abr" << tr("A person, family, or organization contributing to a resource by shortening or condensing the original work but leaving the nature and content of the original work substantially unchanged. For substantial modifications that result in the creation of a new work, see Author.") <<
112 tr("Actor") << "act" << tr("Use for a person or organization who principally exhibits acting skills in a musical or dramatic presentation or entertainment.") <<
113 tr("Adapter") << "adp" << tr("Use for a person or organization who 1) reworks a musical composition, usually for a different medium, or 2) rewrites novels or stories for motion pictures or other audiovisual medium.") <<
114 tr("Analyst") << "anl" << tr("Use for a person or organization that reviews, examines and interprets data or information in a specific area.") <<
115 tr("Animator") << "anm" << tr("Use for a person or organization who draws the two-dimensional figures, manipulates the three dimensional objects and/or also programs the computer to move objects and images for the purpose of animated film processing. Animation cameras, stands, celluloid screens, transparencies and inks are some of the tools of the animator.") <<
116 tr("Annotator") << "ann" << tr("Use for a person who writes manuscript annotations on a printed item.") <<
117 tr("Appellant") << "apl" << tr("A person or organization who appeals a lower court's decision.") <<
118 tr("Appellee") << "ape" << tr("A person or organization against whom an appeal is taken.") <<
119 tr("Applicant") << "app" << tr("Use for a person or organization responsible for the submission of an application or who is named as eligible for the results of the processing of the application (e.g., bestowing of rights, reward, title, position).") <<
120 tr("Architect") << "arc" << tr("Use for a person or organization who designs structures or oversees their construction.") <<
121 tr("Arranger") << "arr" << tr("Use for a person or organization who transcribes a musical composition, usually for a different medium from that of the original; in an arrangement the musical substance remains essentially unchanged.") <<
122 tr("Art copyist") << "acp" << tr("Use for a person (e.g., a painter or sculptor) who makes copies of works of visual art.") <<
123 tr("Art director") << "adi" << tr("A person contributing to a motion picture or television production by overseeing the artists and craftspeople who build the sets.") <<
124 tr("Artist") << "art" << tr("Use for a person (e.g., a painter) or organization who conceives, and perhaps also implements, an original graphic design or work of art, if specific codes (e.g., [egr], [etr]) are not desired. For book illustrators, prefer Illustrator [ill]. ") <<
125 tr("Artistic director") << "ard" << tr("Use for a person responsible for controlling the development of the artistic style of an entire production, including the choice of works to be presented and selection of senior production staff.") <<
126 tr("Assignee") << "asg" << tr("Use for a person or organization to whom a license for printing or publishing has been transferred.") <<
127 tr("Associated name") << "asn" << tr("Use for a person or organization associated with or found in an item or collection, which cannot be determined to be that of a Former owner [fmo] or other designated relator indicative of provenance.") <<
128 tr("Attributed name") << "att" << tr("Use for an author, artist, etc., relating him/her to a work for which there is or once was substantial authority for designating that person as author, creator, etc. of the work. ") <<
129 tr("Auctioneer") << "auc" << tr("Use for a person or organization in charge of the estimation and public auctioning of goods, particularly books, artistic works, etc.") <<
130 tr("Author") << "aut" << tr("Use for a person or organization chiefly responsible for the intellectual or artistic content of a work, usually printed text. This term may also be used when more than one person or body bears such responsibility. ") <<
131 tr("Author in quotations or text extracts") << "aqt" << tr("Use for a person or organization whose work is largely quoted or extracted in works to which he or she did not contribute directly. Such quotations are found particularly in exhibition catalogs, collections of photographs, etc.") <<
132 tr("Author of afterword, colophon, etc.") << "aft" << tr("Use for a person or organization responsible for an afterword, postface, colophon, etc. but who is not the chief author of a work.") <<
133 tr("Author of dialog") << "aud" << tr("Use for a person or organization responsible for the dialog or spoken commentary for a screenplay or sound recording.") <<
134 tr("Author of introduction, etc.") << "aui" << tr("Use for a person or organization responsible for an introduction, preface, foreword, or other critical introductory matter, but who is not the chief author.") <<
135 tr("Author of screenplay, etc.") << "aus" << tr("Use for a person or organization responsible for a motion picture screenplay, dialog, spoken commentary, etc.") <<
136 tr("Autographer") << "ato" << tr("A person whose manuscript signature appears on an item.") <<
137 tr("Bibliographic antecedent") << "ant" << tr("Use for a person or organization responsible for a work upon which the work represented by the catalog record is based. This may be appropriate for adaptations, sequels, continuations, indexes, etc.") <<
138 tr("Binder") << "bnd" << tr("Use for a person or organization responsible for the binding of printed or manuscript materials.") <<
139 tr("Binding designer") << "bdd" << tr("Use for a person or organization responsible for the binding design of a book, including the type of binding, the type of materials used, and any decorative aspects of the binding. ") <<
140 tr("Blurb writer") << "blw" << tr("A person or organization responsible for writing a commendation or testimonial for a work, which appears on or within the publication itself, frequently on the back or dust jacket of print publications or on advertising material for all media.") <<
141 tr("Book designer") << "bkd" << tr("Use for a person or organization responsible for the entire graphic design of a book, including arrangement of type and illustration, choice of materials, and process used. ") <<
142 tr("Book producer") << "bkp" << tr("Use for a person or organization responsible for the production of books and other print media, if specific codes (e.g., [bkd], [egr], [tyd], [prt]) are not desired. ") <<
143 tr("Bookjacket designer") << "bjd" << tr("Use for a person or organization responsible for the design of flexible covers designed for or published with a book, including the type of materials used, and any decorative aspects of the bookjacket. ") <<
144 tr("Bookplate designer") << "bpd" << tr("Use for a person or organization responsible for the design of a book owner's identification label that is most commonly pasted to the inside front cover of a book. ") <<
145 tr("Bookseller") << "bsl" << tr("Use for a person or organization who makes books and other bibliographic materials available for purchase. Interest in the materials is primarily lucrative.") <<
146 tr("Braille embosser") << "brl" << tr("A person, family, or organization involved in manufacturing a resource by embossing Braille cells using a stylus, special embossing printer, or other device.") <<
147 tr("Broadcaster") << "brd" << tr("A person, family, or organization involved in broadcasting a resource to an audience via radio, television, webcast, etc.") <<
148 tr("Calligrapher") << "cll" << tr("Use for a person or organization who writes in an artistic hand, usually as a copyist and or engrosser.") <<
149 tr("Cartographer") << "ctg" << tr("Use for a person or organization responsible for the creation of maps and other cartographic materials.") <<
150 tr("Caster") << "cas" << tr("A person, family, or organization involved in manufacturing a resource by pouring a liquid or molten substance into a mold and leaving it to solidify to take the shape of the mold.") <<
151 tr("Censor") << "cns" << tr("Use for a censor, bowdlerizer, expurgator, etc., official or private. ") <<
152 tr("Choreographer") << "chr" << tr("Use for a person or organization who composes or arranges dances or other movements (e.g., \"master of swords\") for a musical or dramatic presentation or entertainment.") <<
153 tr("Cinematographer") << "cng" << tr("Use for a person or organization who is in charge of the images captured for a motion picture film. The cinematographer works under the supervision of a director, and may also be referred to as director of photography. Do not confuse with videographer.") <<
154 tr("Client") << "cli" << tr("Use for a person or organization for whom another person or organization is acting.") <<
155 tr("Collection registrar") << "cor" << tr("A curator who lists or inventories the items in an aggregate work such as a collection of items or works.") <<
156 tr("Collector") << "col" << tr("Use for a person or organization who has brought together material from various sources that has been arranged, described, and cataloged as a collection. A collector is neither the creator of the material nor a person to whom manuscripts in the collection may have been addressed.") <<
157 tr("Collotyper") << "clt" << tr("Use for a person or organization responsible for the production of photographic prints from film or other colloid that has ink-receptive and ink-repellent surfaces.") <<
158 tr("Colorist") << "clr" << tr("A person or organization responsible for applying color to drawings, prints, photographs, maps, moving images, etc.") <<
159 tr("Commentator") << "cmm" << tr("Use for a person or organization who provides interpretation, analysis, or a discussion of the subject matter on a recording, motion picture, or other audiovisual medium.") <<
160 tr("Commentator for written text") << "cwt" << tr("Use for a person or organization responsible for the commentary or explanatory notes about a text. For the writer of manuscript annotations in a printed book, use Annotator [ann].") <<
161 tr("Compiler") << "com" << tr("Use for a person or organization who produces a work or publication by selecting and putting together material from the works of various persons or bodies.") <<
162 tr("Complainant") << "cpl" << tr("Use for the party who applies to the courts for redress, usually in an equity proceeding.") <<
163 tr("Complainant-appellant") << "cpt" << tr("Use for a complainant who takes an appeal from one court or jurisdiction to another to reverse the judgment, usually in an equity proceeding.") <<
164 tr("Complainant-appellee") << "cpe" << tr("Use for a complainant against whom an appeal is taken from one court or jurisdiction to another to reverse the judgment, usually in an equity proceeding.") <<
165 tr("Composer") << "cmp" << tr("Use for a person or organization who creates a musical work, usually a piece of music in manuscript or printed form.") <<
166 tr("Compositor") << "cmt" << tr("Use for a person or organization responsible for the creation of metal slug, or molds made of other materials, used to produce the text and images in printed matter. ") <<
167 tr("Conceptor") << "ccp" << tr("Use for a person or organization responsible for the original idea on which a work is based, this includes the scientific author of an audio-visual item and the conceptor of an advertisement.") <<
168 tr("Conductor") << "cnd" << tr("Use for a person who directs a performing group (orchestra, chorus, opera, etc.) in a musical or dramatic presentation or entertainment.") <<
169 tr("Conservator") << "con" << tr("A person or organization responsible for documenting, preserving, or treating printed or manuscript material, works of art, artifacts, or other media.") <<
170 tr("Consultant") << "csl" << tr("Use for a person or organization relevant to a resource, who is called upon for professional advice or services in a specialized field of knowledge or training.") <<
171 tr("Consultant to a project") << "csp" << tr("Use for a person or organization relevant to a resource, who is engaged specifically to provide an intellectual overview of a strategic or operational task and by analysis, specification, or instruction, to create or propose a cost-effective course of action or solution.") <<
172 tr("Contestant") << "cos" << tr("Use for the party who opposes, resists, or disputes, in a court of law, a claim, decision, result, etc.") <<
173 tr("Contestant-appellant") << "cot" << tr("Use for a contestant who takes an appeal from one court of law or jurisdiction to another to reverse the judgment.") <<
174 tr("Contestant-appellee") << "coe" << tr("Use for a contestant against whom an appeal is taken from one court of law or jurisdiction to another to reverse the judgment.") <<
175 tr("Contestee") << "cts" << tr("Use for the party defending a claim, decision, result, etc. being opposed, resisted, or disputed in a court of law.") <<
176 tr("Contestee-appellant") << "ctt" << tr("Use for a contestee who takes an appeal from one court or jurisdiction to another to reverse the judgment.") <<
177 tr("Contestee-appellee") << "cte" << tr("Use for a contestee against whom an appeal is taken from one court or jurisdiction to another to reverse the judgment.") <<
178 tr("Contractor") << "ctr" << tr("Use for a person or organization relevant to a resource, who enters into a contract with another person or organization to perform a specific task.") <<
179 tr("Contributor") << "ctb" << tr("Use for a person or organization one whose work has been contributed to a larger work, such as an anthology, serial publication, or other compilation of individual works. Do not use if the sole function in relation to a work is as author, editor, compiler or translator.") <<
180 tr("Copyright claimant") << "cpc" << tr("Use for a person or organization listed as a copyright owner at the time of registration. Copyright can be granted or later transferred to another person or organization, at which time the claimant becomes the copyright holder.") <<
181 tr("Copyright holder") << "cph" << tr("Use for a person or organization to whom copy and legal rights have been granted or transferred for the intellectual content of a work. The copyright holder, although not necessarily the creator of the work, usually has the exclusive right to benefit financially from the sale and use of the work to which the associated copyright protection applies.") <<
182 tr("Corrector") << "crr" << tr("Use for a person or organization who is a corrector of manuscripts, such as the scriptorium official who corrected the work of a scribe. For printed matter, use Proofreader.") <<
183 tr("Correspondent") << "crp" << tr("Use for a person or organization who was either the writer or recipient of a letter or other communication.") <<
184 tr("Costume designer") << "cst" << tr("Use for a person or organization who designs or makes costumes, fixes hair, etc., for a musical or dramatic presentation or entertainment.") <<
185 tr("Court governed") << "cou" << tr("A court governed by court rules, regardless of their official nature (e.g., laws, administrative regulations.)") <<
186 tr("Court reporter") << "crt" << tr("A person, family, or organization contributing to a resource by preparing a court's opinions for publication.") <<
187 tr("Cover designer") << "cov" << tr("Use for a person or organization responsible for the graphic design of a book cover, album cover, slipcase, box, container, etc. For a person or organization responsible for the graphic design of an entire book, use Book designer; for book jackets, use Bookjacket designer.") <<
188 tr("Creator") << "cre" << tr("Use for a person or organization responsible for the intellectual or artistic content of a work.") <<
189 tr("Curator of an exhibition") << "cur" << tr("Use for a person or organization responsible for conceiving and organizing an exhibition.") <<
190 tr("Dancer") << "dnc" << tr("Use for a person or organization who principally exhibits dancing skills in a musical or dramatic presentation or entertainment.") <<
191 tr("Data contributor") << "dtc" << tr("Use for a person or organization that submits data for inclusion in a database or other collection of data.") <<
192 tr("Data manager") << "dtm" << tr("Use for a person or organization responsible for managing databases or other data sources.") <<
193 tr("Dedicatee") << "dte" << tr("Use for a person or organization to whom a book, manuscript, etc., is dedicated (not the recipient of a gift).") <<
194 tr("Dedicator") << "dto" << tr("Use for the author of a dedication, which may be a formal statement or in epistolary or verse form.") <<
195 tr("Defendant") << "dfd" << tr("Use for the party defending or denying allegations made in a suit and against whom relief or recovery is sought in the courts, usually in a legal action.") <<
196 tr("Defendant-appellant") << "dft" << tr("Use for a defendant who takes an appeal from one court or jurisdiction to another to reverse the judgment, usually in a legal action.") <<
197 tr("Defendant-appellee") << "dfe" << tr("Use for a defendant against whom an appeal is taken from one court or jurisdiction to another to reverse the judgment, usually in a legal action.") <<
198 tr("Degree grantor") << "dgg" << tr("Use for the organization granting a degree for which the thesis or dissertation described was presented.") <<
199 tr("Delineator") << "dln" << tr("Use for a person or organization executing technical drawings from others' designs.") <<
200 tr("Depicted") << "dpc" << tr("Use for an entity depicted or portrayed in a work, particularly in a work of art.") <<
201 tr("Depositor") << "dpt" << tr("Use for a person or organization placing material in the physical custody of a library or repository without transferring the legal title.") <<
202 tr("Designer") << "dsr" << tr("Use for a person or organization responsible for the design if more specific codes (e.g., [bkd], [tyd]) are not desired.") <<
203 tr("Director") << "drt" << tr("Use for a person or organization who is responsible for the general management of a work or who supervises the production of a performance for stage, screen, or sound recording.") <<
204 tr("Dissertant") << "dis" << tr("Use for a person who presents a thesis for a university or higher-level educational degree.") <<
205 tr("Distribution place") << "dbp" << tr("A place from which a resource, e.g., a serial, is distributed.") <<
206 tr("Distributor") << "dst" << tr("Use for a person or organization that has exclusive or shared marketing rights for an item.") <<
207 tr("Donor") << "dnr" << tr("Use for a person or organization who is the donor of a book, manuscript, etc., to its present owner. Donors to previous owners are designated as Former owner [fmo] or Inscriber [ins].") <<
208 tr("Draftsman") << "drm" << tr("Use for a person or organization who prepares artistic or technical drawings. ") <<
209 tr("Dubious author") << "dub" << tr("Use for a person or organization to which authorship has been dubiously or incorrectly ascribed.") <<
210 tr("Editor") << "edt" << tr("Use for a person or organization who prepares for publication a work not primarily his/her own, such as by elucidating text, adding introductory or other critical matter, or technically directing an editorial staff.") <<
211 tr("Editor of compilation") << "edc" << tr("A person, family, or organization contributing to a collective or aggregate work by selecting and putting together works, or parts of works, by one or more creators. For compilations of data, information, etc., that result in new works, see compiler.") <<
212 tr("Editor of moving image work") << "edm" << tr("A person, family, or organization responsible for assembling, arranging, and trimming film, video, or other moving image formats, including both visual and audio aspects.") <<
213 tr("Electrician") << "elg" << tr("Use for a person responsible for setting up a lighting rig and focusing the lights for a production, and running the lighting at a performance.") <<
214 tr("Electrotyper") << "elt" << tr("Use for a person or organization who creates a duplicate printing surface by pressure molding and electrodepositing of metal that is then backed up with lead for printing.") <<
215 tr("Engineer") << "eng" << tr("Use for a person or organization that is responsible for technical planning and design, particularly with construction.") <<
216 tr("Engraver") << "egr" << tr("Use for a person or organization who cuts letters, figures, etc. on a surface, such as a wooden or metal plate, for printing.") <<
217 tr("Etcher") << "etr" << tr("Use for a person or organization who produces text or images for printing by subjecting metal, glass, or some other surface to acid or the corrosive action of some other substance.") <<
218 tr("Event place") << "evp" << tr("A place where an event such as a conference or a concert took place.") <<
219 tr("Expert") << "exp" << tr("Use for a person or organization in charge of the description and appraisal of the value of goods, particularly rare items, works of art, etc. ") <<
220 tr("Facsimilist") << "fac" << tr("Use for a person or organization that executed the facsimile.") <<
221 tr("Field director") << "fld" << tr("Use for a person or organization that manages or supervises the work done to collect raw data or do research in an actual setting or environment (typically applies to the natural and social sciences).") <<
222 tr("Film director") << "fmd" << tr("A director responsible for the general management and supervision of a filmed performance.") <<
223 tr("Film distributor") << "fds" << tr("A person, family, or organization involved in distributing a moving image resource to theatres or other distribution channels.") <<
224 tr("Film editor") << "flm" << tr("Use for a person or organization who is an editor of a motion picture film. This term is used regardless of the medium upon which the motion picture is produced or manufactured (e.g., acetate film, video tape). ") <<
225 tr("Film producer") << "fmp" << tr("A producer responsible for most of the business aspects of a film.") <<
226 tr("Filmmaker") << "fmk" << tr("A person, family or organization responsible for creating an independent or personal film. A filmmaker is individually responsible for the conception and execution of all aspects of the film.") <<
227 tr("First party") << "fpy" << tr("Use for a person or organization who is identified as the only party or the party of the first part. In the case of transfer of right, this is the assignor, transferor, licensor, grantor, etc. Multiple parties can be named jointly as the first party.") <<
228 tr("Forger") << "frg" << tr("Use for a person or organization who makes or imitates something of value or importance, especially with the intent to defraud. ") <<
229 tr("Former owner") << "fmo" << tr("Use for a person or organization who owned an item at any time in the past. Includes those to whom the material was once presented. A person or organization giving the item to the present owner is designated as Donor [dnr].") <<
230 tr("Funder") << "fnd" << tr("Use for a person or organization that furnished financial support for the production of the work.") <<
231 tr("Geographic information specialist") << "gis" << tr("Use for a person responsible for geographic information system (GIS) development and integration with global positioning system data.") <<
232 tr("Honoree") << "hnr" << tr("Use for a person or organization in memory or honor of whom a book, manuscript, etc. is donated. ") <<
233 tr("Host") << "hst" << tr("Use for a person who is invited or regularly leads a program (often broadcast) that includes other guests, performers, etc. (e.g., talk show host).") <<
234 tr("Host institution") << "his" << tr("An organization hosting the event, exhibit, conference, etc., which gave rise to a resource, but having little or no responsibility for the content of the resource.") <<
235 tr("Illuminator") << "ilu" << tr("Use for a person or organization responsible for the decoration of a work (especially manuscript material) with precious metals or color, usually with elaborate designs and motifs.") <<
236 tr("Illustrator") << "ill" << tr("Use for a person or organization who conceives, and perhaps also implements, a design or illustration, usually to accompany a written text.") <<
237 tr("Inscriber") << "ins" << tr("Use for a person who has written a statement of dedication or gift.") <<
238 tr("Instrumentalist") << "itr" << tr("Use for a person or organization who principally plays an instrument in a musical or dramatic presentation or entertainment.") <<
239 tr("Interviewee") << "ive" << tr("Use for a person or organization who is interviewed at a consultation or meeting, usually by a reporter, pollster, or some other information gathering agent.") <<
240 tr("Interviewer") << "ivr" << tr("Use for a person or organization who acts as a reporter, pollster, or other information gathering agent in a consultation or meeting involving one or more individuals.") <<
241 tr("Inventor") << "inv" << tr("Use for a person or organization who first produces a particular useful item, or develops a new process for obtaining a known item or result.") <<
242 tr("Issuing body") << "isb" << tr("A person, family or organization issuing a work, such as an official organ of the body.") <<
243 tr("Judge") << "jud" << tr("A person who hears and decides on legal matters in court.") <<
244 tr("Jurisdiction governed") << "jug" << tr("A jurisdiction governed by a law, regulation, etc., that was enacted by another jurisdiction.") <<
245 tr("Laboratory") << "lbr" << tr("Use for an institution that provides scientific analyses of material samples.") <<
246 tr("Laboratory director") << "ldr" << tr("Use for a person or organization that manages or supervises work done in a controlled setting or environment. ") <<
247 tr("Landscape architect") << "lsa" << tr("Use for a person or organization whose work involves coordinating the arrangement of existing and proposed land features and structures.") <<
248 tr("Lead") << "led" << tr("Use to indicate that a person or organization takes primary responsibility for a particular activity or endeavor. Use with another relator term or code to show the greater importance this person or organization has regarding that particular role. If more than one relator is assigned to a heading, use the Lead relator only if it applies to all the relators.") <<
249 tr("Lender") << "len" << tr("Use for a person or organization permitting the temporary use of a book, manuscript, etc., such as for photocopying or microfilming.") <<
250 tr("Libelant") << "lil" << tr("Use for the party who files a libel in an ecclesiastical or admiralty case.") <<
251 tr("Libelant-appellant") << "lit" << tr("Use for a libelant who takes an appeal from one ecclesiastical court or admiralty to another to reverse the judgment.") <<
252 tr("Libelant-appellee") << "lie" << tr("Use for a libelant against whom an appeal is taken from one ecclesiastical court or admiralty to another to reverse the judgment.") <<
253 tr("Libelee") << "lel" << tr("Use for a party against whom a libel has been filed in an ecclesiastical court or admiralty.") <<
254 tr("Libelee-appellant") << "let" << tr("Use for a libelee who takes an appeal from one ecclesiastical court or admiralty to another to reverse the judgment.") <<
255 tr("Libelee-appellee") << "lee" << tr("Use for a libelee against whom an appeal is taken from one ecclesiastical court or admiralty to another to reverse the judgment.") <<
256 tr("Librettist") << "lbt" << tr("Use for a person or organization who is a writer of the text of an opera, oratorio, etc.") <<
257 tr("Licensee") << "lse" << tr("Use for a person or organization who is an original recipient of the right to print or publish.") <<
258 tr("Licensor") << "lso" << tr("Use for person or organization who is a signer of the license, imprimatur, etc. ") <<
259 tr("Lighting designer") << "lgd" << tr("Use for a person or organization who designs the lighting scheme for a theatrical presentation, entertainment, motion picture, etc.") <<
260 tr("Lithographer") << "ltg" << tr("Use for a person or organization who prepares the stone or plate for lithographic printing, including a graphic artist creating a design directly on the surface from which printing will be done.") <<
261 tr("Lyricist") << "lyr" << tr("Use for a person or organization who is the a writer of the text of a song.") <<
262 tr("Manufacture place") << "mfp" << tr("The place of manufacture (e.g., printing, duplicating, casting, etc.) of a resource in a published form.") <<
263 tr("Manufacturer") << "mfr" << tr("Use for a person or organization that makes an artifactual work (an object made or modified by one or more persons). Examples of artifactual works include vases, cannons or pieces of furniture.") <<
264 tr("Marbler") << "mrb" << tr("The entity responsible for marbling paper, cloth, leather, etc. used in construction of a resource.") <<
265 tr("Markup editor") << "mrk" << tr("Use for a person or organization performing the coding of SGML, HTML, or XML markup of metadata, text, etc.") <<
266 tr("Medium") << "med" << tr("A person held to be a channel of communication between the earthly world and a different world.") <<
267 tr("Metadata contact") << "mdc" << tr("Use for a person or organization primarily responsible for compiling and maintaining the original description of a metadata set (e.g., geospatial metadata set).") <<
268 tr("Metal-engraver") << "mte" << tr("Use for a person or organization responsible for decorations, illustrations, letters, etc. cut on a metal surface for printing or decoration.") <<
269 tr("Minute taker") << "mtk" << tr("A person, family, or organization responsible for recording the minutes of a meeting.") <<
270 tr("Moderator") << "mod" << tr("Use for a person who leads a program (often broadcast) where topics are discussed, usually with participation of experts in fields related to the discussion.") <<
271 tr("Monitor") << "mon" << tr("Use for a person or organization that supervises compliance with the contract and is responsible for the report and controls its distribution. Sometimes referred to as the grantee, or controlling agency.") <<
272 tr("Music copyist") << "mcp" << tr("Use for a person who transcribes or copies musical notation") <<
273 tr("Musical director") << "msd" << tr("Use for a person responsible for basic music decisions about a production, including coordinating the work of the composer, the sound editor, and sound mixers, selecting musicians, and organizing and/or conducting sound for rehearsals and performances.") <<
274 tr("Musician") << "mus" << tr("Use for a person or organization who performs music or contributes to the musical content of a work when it is not possible or desirable to identify the function more precisely.") <<
275 tr("Narrator") << "nrt" << tr("Use for a person who is a speaker relating the particulars of an act, occurrence, or course of events.") <<
276 tr("Onscreen presenter") << "osp" << tr("A performer contributing to an expression of a work by appearing on screen in nonfiction moving image materials or introductions to fiction moving image materials to provide contextual or background information. Use when another term (e.g., Narrator, Host) is either not applicable or not desired.") <<
277 tr("Opponent") << "opn" << tr("Use for a person or organization responsible for opposing a thesis or dissertation.") <<
278 tr("Organizer of meeting") << "orm" << tr("Use for a person or organization responsible for organizing a meeting for which an item is the report or proceedings.") <<
279 tr("Originator") << "org" << tr("Use for a person or organization performing the work, i.e., the name of a person or organization associated with the intellectual content of the work. This category does not include the publisher or personal affiliation, or sponsor except where it is also the corporate author.") <<
280 tr("Other") << "oth" << tr("Use for relator codes from other lists which have no equivalent in the MARC list or for terms which have not been assigned a code.") <<
281 tr("Owner") << "own" << tr("Use for a person or organization that currently owns an item or collection.") <<
282 tr("Panelist") << "pan" << tr(" performer contributing to a resource by participating in a program (often broadcast) where topics are discussed, usually with participation of experts in fields related to the discussion.") <<
283 tr("Papermaker") << "ppm" << tr("Use for a person or organization responsible for the production of paper, usually from wood, cloth, or other fibrous material.") <<
284 tr("Patent applicant") << "pta" << tr("Use for a person or organization that applied for a patent.") <<
285 tr("Patent holder") << "pth" << tr("Use for a person or organization that was granted the patent referred to by the item. ") <<
286 tr("Patron") << "pat" << tr("Use for a person or organization responsible for commissioning a work. Usually a patron uses his or her means or influence to support the work of artists, writers, etc. This includes those who commission and pay for individual works.") <<
287 tr("Performer") << "prf" << tr("Use for a person or organization who exhibits musical or acting skills in a musical or dramatic presentation or entertainment, if specific codes for those functions ([act], [dnc], [itr], [voc], etc.) are not used. If specific codes are used, [prf] is used for a person whose principal skill is not known or specified.") <<
288 tr("Permitting agency") << "pma" << tr("Use for an authority (usually a government agency) that issues permits under which work is accomplished.") <<
289 tr("Photographer") << "pht" << tr("Use for a person or organization responsible for taking photographs, whether they are used in their original form or as reproductions.") <<
290 tr("Plaintiff") << "ptf" << tr("Use for the party who complains or sues in court in a personal action, usually in a legal proceeding.") <<
291 tr("Plaintiff-appellant") << "ptt" << tr("Use for a plaintiff who takes an appeal from one court or jurisdiction to another to reverse the judgment, usually in a legal proceeding.") <<
292 tr("Plaintiff-appellee") << "pte" << tr("Use for a plaintiff against whom an appeal is taken from one court or jurisdiction to another to reverse the judgment, usually in a legal proceeding.") <<
293 tr("Platemaker") << "plt" << tr("Use for a person or organization responsible for the production of plates, usually for the production of printed images and/or text.") <<
294 tr("Praeses") << "pra" << tr("A person who is the faculty moderator of an academic disputation, normally proposing a thesis and participating in the ensuing disputation.") <<
295 tr("Presenter") << "pre" << tr("A person or organization mentioned in an 'X presents' credit for moving image materials and who is associated with production, finance, or distribution in some way. A vanity credit; in early years, normally the head of a studio.") <<
296 tr("Printer") << "prt" << tr("Use for a person or organization who prints texts, whether from type or plates.") <<
297 tr("Printer of plates") << "pop" << tr("Use for a person or organization who prints illustrations from plates. ") <<
298 tr("Printmaker") << "prm" << tr("Use for a person or organization who makes a relief, intaglio, or planographic printing surface.") <<
299 tr("Process contact") << "prc" << tr("Use for a person or organization primarily responsible for performing or initiating a process, such as is done with the collection of metadata sets.") <<
300 tr("Producer") << "pro" << tr("Use for a person or organization responsible for the making of a motion picture, including business aspects, management of the productions, and the commercial success of the work.") <<
301 tr("Production company") << "prn" << tr("An organization that is responsible for financial, technical, and organizational management of a production for stage, screen, audio recording, television, webcast, etc.") <<
302 tr("Production designer") << "prs" << tr("A person or organization responsible for designing the overall visual appearance of a moving image production.") <<
303 tr("Production manager") << "pmn" << tr("Use for a person responsible for all technical and business matters in a production.") <<
304 tr("Production personnel") << "prd" << tr("Use for a person or organization associated with the production (props, lighting, special effects, etc.) of a musical or dramatic presentation or entertainment.") <<
305 tr("Production place") << "prp" << tr("The place of production (e.g., inscription, fabrication, construction, etc.) of a resource in an unpublished form.") <<
306 tr("Programmer") << "prg" << tr("Use for a person or organization responsible for the creation and/or maintenance of computer program design documents, source code, and machine-executable digital files and supporting documentation.") <<
307 tr("Project director") << "pdr" << tr("Use for a person or organization with primary responsibility for all essential aspects of a project, or that manages a very large project that demands senior level responsibility, or that has overall responsibility for managing projects, or provides overall direction to a project manager.") <<
308 tr("Proofreader") << "pfr" << tr("Use for a person who corrects printed matter. For manuscripts, use Corrector [crr].") <<
309 tr("Provider") << "prv" << tr("A person or organization who produces, publishes, manufactures, or distributes a resource if specific codes are not desired (e.g. [mfr], [pbl].)") <<
310 tr("Publication place ") << "pup" << tr("The place where a resource is published.") <<
311 tr("Publisher") << "pbl" << tr("Use for a person or organization that makes printed matter, often text, but also printed music, artwork, etc. available to the public.") <<
312 tr("Publishing director") << "pbd" << tr("Use for a person or organization who presides over the elaboration of a collective work to ensure its coherence or continuity. This includes editors-in-chief, literary editors, editors of series, etc.") <<
313 tr("Puppeteer") << "ppt" << tr("Use for a person or organization who manipulates, controls, or directs puppets or marionettes in a musical or dramatic presentation or entertainment.") <<
314 tr("Radio director") << "rdd" << tr("A director responsible for the general management and supervision of a radio program.") <<
315 tr("Radio producer") << "rpc" << tr("A producer responsible for most of the business aspects of a radio program.") <<
316 tr("Recipient") << "rcp" << tr("Use for a person or organization to whom correspondence is addressed.") <<
317 tr("Recording engineer") << "rce" << tr("Use for a person or organization who supervises the technical aspects of a sound or video recording session.") <<
318 tr("Recording engineer") << "rce" << tr("A person contributing to a resource by supervising the technical aspects of a sound or video recording session.") <<
319 tr("Redactor") << "red" << tr("Use for a person or organization who writes or develops the framework for an item without being intellectually responsible for its content.") <<
320 tr("Renderer") << "ren" << tr("Use for a person or organization who prepares drawings of architectural designs (i.e., renderings) in accurate, representational perspective to show what the project will look like when completed.") <<
321 tr("Reporter") << "rpt" << tr("Use for a person or organization who writes or presents reports of news or current events on air or in print.") <<
322 tr("Repository") << "rps" << tr("Use for an agency that hosts data or material culture objects and provides services to promote long term, consistent and shared use of those data or objects.") <<
323 tr("Research team head") << "rth" << tr("Use for a person who directed or managed a research project.") <<
324 tr("Research team member") << "rtm" << tr("Use for a person who participated in a research project but whose role did not involve direction or management of it.") <<
325 tr("Researcher") << "res" << tr("Use for a person or organization responsible for performing research. ") <<
326 tr("Respondent") << "rsp" << tr("Use for the party who makes an answer to the courts pursuant to an application for redress, usually in an equity proceeding.") <<
327 tr("Respondent-appellant") << "rst" << tr("Use for a respondent who takes an appeal from one court or jurisdiction to another to reverse the judgment, usually in an equity proceeding.") <<
328 tr("Respondent-appellee") << "rse" << tr("Use for a respondent against whom an appeal is taken from one court or jurisdiction to another to reverse the judgment, usually in an equity proceeding.") <<
329 tr("Responsible party") << "rpy" << tr("Use for a person or organization legally responsible for the content of the published material.") <<
330 tr("Restager") << "rsg" << tr("Use for a person or organization, other than the original choreographer or director, responsible for restaging a choreographic or dramatic work and who contributes minimal new content.") <<
331 tr("Restorationist") << "rsr" << tr("A person, family, or organization responsible for the set of technical, editorial, and intellectual procedures aimed at compensating for the degradation of an item by bringing it back to a state as close as possible to its original condition.") <<
332 tr("Reviewer") << "rev" << tr("Use for a person or organization responsible for the review of a book, motion picture, performance, etc.") <<
333 tr("Rubricator") << "rbr" << tr("Use for a person or organization responsible for parts of a work, often headings or opening parts of a manuscript, that appear in a distinctive color, usually red.") <<
334 tr("Scenarist") << "sce" << tr("Use for a person or organization who is the author of a motion picture screenplay.") <<
335 tr("Scientific advisor") << "sad" << tr("Use for a person or organization who brings scientific, pedagogical, or historical competence to the conception and realization on a work, particularly in the case of audio-visual items.") <<
336 tr("Scribe") << "scr" << tr("Use for a person who is an amanuensis and for a writer of manuscripts proper. For a person who makes pen-facsimiles, use Facsimilist [fac].") <<
337 tr("Sculptor") << "scl" << tr("Use for a person or organization who models or carves figures that are three-dimensional representations.") <<
338 tr("Second party") << "spy" << tr("Use for a person or organization who is identified as the party of the second part. In the case of transfer of right, this is the assignee, transferee, licensee, grantee, etc. Multiple parties can be named jointly as the second party.") <<
339 tr("Secretary") << "sec" << tr("Use for a person or organization who is a recorder, redactor, or other person responsible for expressing the views of a organization.") <<
340 tr("Seller") << "sll" << tr("A former owner of an item who sold that item to another owner.") <<
341 tr("Set designer") << "std" << tr("Use for a person or organization who translates the rough sketches of the art director into actual architectural structures for a theatrical presentation, entertainment, motion picture, etc. Set designers draw the detailed guides and specifications for building the set.") <<
342 tr("Setting") << "stg" << tr("An entity in which the activity or plot of a work takes place, e.g. a geographic place, a time period, a building, an event.") <<
343 tr("Signer") << "sgn" << tr("Use for a person whose signature appears without a presentation or other statement indicative of provenance. When there is a presentation statement, use Inscriber [ins].") <<
344 tr("Singer") << "sng" << tr("Use for a person or organization who uses his/her/their voice with or without instrumental accompaniment to produce music. A performance may or may not include actual words.") <<
345 tr("Sound designer") << "sds" << tr("Use for a person who produces and reproduces the sound score (both live and recorded), the installation of microphones, the setting of sound levels, and the coordination of sources of sound for a production.") <<
346 tr("Speaker") << "spk" << tr("Use for a person who participates in a program (often broadcast) and makes a formalized contribution or presentation generally prepared in advance.") <<
347 tr("Sponsor") << "spn" << tr("Use for a person or organization that issued a contract or under the auspices of which a work has been written, printed, published, etc.") <<
348 tr("Stage director") << "sgd" << tr("A person or organization contributing to a stage resource through the overall management and supervision of a performance.") <<
349 tr("Stage manager") << "stm" << tr("Use for a person who is in charge of everything that occurs on a performance stage, and who acts as chief of all crews and assistant to a director during rehearsals.") <<
350 tr("Standards body") << "stn" << tr("Use for an organization responsible for the development or enforcement of a standard.") <<
351 tr("Stereotyper") << "str" << tr("Use for a person or organization who creates a new plate for printing by molding or copying another printing surface.") <<
352 tr("Storyteller") << "stl" << tr("Use for a person relaying a story with creative and/or theatrical interpretation.") <<
353 tr("Supporting host") << "sht" << tr("Use for a person or organization that supports (by allocating facilities, staff, or other resources) a project, program, meeting, event, data objects, material culture objects, or other entities capable of support. ") <<
354 tr("Surveyor") << "srv" << tr("Use for a person or organization who does measurements of tracts of land, etc. to determine location, forms, and boundaries.") <<
355 tr("Teacher") << "tch" << tr("Use for a person who, in the context of a resource, gives instruction in an intellectual subject or demonstrates while teaching physical skills. ") <<
356 tr("Technical director") << "tcd" << tr("Use for a person who is ultimately in charge of scenery, props, lights and sound for a production.") <<
357 tr("Television director") << "tld" << tr("A director responsible for the general management and supervision of a television program.") <<
358 tr("Television producer") << "tlp" << tr("A producer responsible for most of the business aspects of a television program.") <<
359 tr("Thesis advisor") << "ths" << tr("Use for a person under whose supervision a degree candidate develops and presents a thesis, mémoire, or text of a dissertation. ") <<
360 tr("Transcriber") << "trc" << tr("Use for a person who prepares a handwritten or typewritten copy from original material, including from dictated or orally recorded material. For makers of pen-facsimiles, use Facsimilist [fac].") <<
361 tr("Translator") << "trl" << tr("Use for a person or organization who renders a text from one language into another, or from an older form of a language into the modern form.") <<
362 tr("Type designer") << "tyd" << tr("Use for a person or organization who designed the type face used in a particular item. ") <<
363 tr("Typographer") << "tyg" << tr("Use for a person or organization primarily responsible for choice and arrangement of type used in an item. If the typographer is also responsible for other aspects of the graphic design of a book (e.g., Book designer [bkd]), codes for both functions may be needed.") <<
364 tr("University place") << "uvp" << tr("A place where a university that is associated with a resource is located, for example, a university where an academic dissertation or thesis was presented.") <<
365 tr("Videographer") << "vdg" << tr("Use for a person or organization in charge of a video production, e.g. the video recording of a stage production as opposed to a commercial motion picture. The videographer may be the camera operator or may supervise one or more camera operators. Do not confuse with cinematographer.") <<
366 tr("Voice actor") << "vac" << tr("An actor contributing to a resource by providing the voice for characters in radio and audio productions and for animated characters in moving image works, as well as by providing voice overs in radio and television commercials, dubbed resources, etc.") <<
367 tr("Witness") << "wit" << tr("Use for a person who verifies the truthfulness of an event or action. ") <<
368 tr("Wood-engraver") << "wde" << tr("Use for a person or organization who makes prints by cutting the image in relief on the end-grain of a wood block.") <<
369 tr("Woodcutter") << "wdc" << tr("Use for a person or organization who makes prints by cutting the image in relief on the plank side of a wood block.") <<
370 tr("Writer of accompanying material") << "wam" << tr("Use for a person or organization who writes significant material which accompanies a sound recording or other audiovisual material.") <<
371 tr("Writer of added commentary") << "wac" << tr("A person, family, or organization contributing to an expression of a work by providing an interpretation or critical explanation of the original work.") <<
372 tr("Writer of added lyrics") << "wal" << tr("A writer of words added to an expression of a musical work. For lyric writing in collaboration with a composer to form an original work, see lyricist.") <<
373 tr("Writer of added text") << "wat" << tr("A person, family, or organization contributing to a non-textual resource by providing text for the non-textual work (e.g., writing captions for photographs, descriptions of maps.)") <<
374 tr("Writer of introduction") << "win" << tr("A person, family, or organization contributing to a resource by providing an introduction to the original work.") <<
375 tr("Writer of preface") << "wpr" << tr("A person, family, or organization contributing to a resource by providing a preface to the original work.") <<
376 tr("Writer of supplementary textual content") << "wst" << tr("A person, family, or organization contributing to a resource by providing supplementary textual content (e.g., an introduction, a preface) to the original work.");
377
378 for (int i = 0; i < data.count(); i++) {
379 QString name = data.at(i++);
380 QString code = data.at(i++);
381 QString description = data.at(i);
382 DescriptiveInfo rel;
383 rel.name = name;
384 rel.description = description;
385 m_CodeMap.insert(code, rel);
386 m_NameMap.insert(name, code);
387 }
388 }
389