mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-11-10 13:14:16 +00:00
Request work types/languages
This commit is contained in:
parent
ccc352e3ca
commit
ec6e8cf82d
1 changed files with 18 additions and 444 deletions
|
@ -159,442 +159,8 @@ function batch_recording_rels() {
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
var work_type_options = '\
|
var $work_type_options = $('<select id="bpr-work-type"></select>');
|
||||||
<select id="bpr-work-type">\
|
var $work_language_options = $('<select id="bpr-work-language"></select>');
|
||||||
<option selected="selected"></option>\
|
|
||||||
<option value="1">Aria</option>\
|
|
||||||
<option value="2">Ballet</option>\
|
|
||||||
<option value="3">Cantata</option>\
|
|
||||||
<option value="4">Concerto</option>\
|
|
||||||
<option value="5">Sonata</option>\
|
|
||||||
<option value="6">Suite</option>\
|
|
||||||
<option value="7">Madrigal</option>\
|
|
||||||
<option value="8">Mass</option>\
|
|
||||||
<option value="9">Motet</option>\
|
|
||||||
<option value="10">Opera</option>\
|
|
||||||
<option value="11">Oratorio</option>\
|
|
||||||
<option value="12">Overture</option>\
|
|
||||||
<option value="13">Partita</option>\
|
|
||||||
<option value="14">Quartet</option>\
|
|
||||||
<option value="15">Song-cycle</option>\
|
|
||||||
<option value="16">Symphony</option>\
|
|
||||||
<option value="17">Song</option>\
|
|
||||||
<option value="18">Symphonic poem</option>\
|
|
||||||
<option value="19">Zarzuela</option>\
|
|
||||||
<option value="20">Étude</option>\
|
|
||||||
<option value="21">Poem</option>\
|
|
||||||
</select>';
|
|
||||||
|
|
||||||
var work_language_options = '\
|
|
||||||
<select id="bpr-work-language">\
|
|
||||||
<option selected="selected"></option>\
|
|
||||||
<optgroup label="Frequently used">\
|
|
||||||
<option value="18">Arabic</option>\
|
|
||||||
<option value="76">Chinese</option>\
|
|
||||||
<option value="98">Czech</option>\
|
|
||||||
<option value="100">Danish</option>\
|
|
||||||
<option value="113">Dutch</option>\
|
|
||||||
<option value="120">English</option>\
|
|
||||||
<option value="131">Finnish</option>\
|
|
||||||
<option value="134">French</option>\
|
|
||||||
<option value="145">German</option>\
|
|
||||||
<option value="159">Greek</option>\
|
|
||||||
<option value="195">Italian</option>\
|
|
||||||
<option value="198">Japanese</option>\
|
|
||||||
<option value="309">Norwegian</option>\
|
|
||||||
<option value="338">Polish</option>\
|
|
||||||
<option value="340">Portuguese</option>\
|
|
||||||
<option value="353">Russian</option>\
|
|
||||||
<option value="393">Spanish</option>\
|
|
||||||
<option value="403">Swedish</option>\
|
|
||||||
<option value="433">Turkish</option>\
|
|
||||||
<option value="284">[Multiple languages]</option>\
|
|
||||||
</optgroup>\
|
|
||||||
<optgroup label="Other">\
|
|
||||||
<option value="2">Abkhazian</option>\
|
|
||||||
<option value="3">Achinese</option>\
|
|
||||||
<option value="4">Acoli</option>\
|
|
||||||
<option value="5">Adangme</option>\
|
|
||||||
<option value="6">Adyghe</option>\
|
|
||||||
<option value="1">Afar</option>\
|
|
||||||
<option value="8">Afrihili</option>\
|
|
||||||
<option value="9">Afrikaans</option>\
|
|
||||||
<option value="473">Ainu</option>\
|
|
||||||
<option value="10">Akan</option>\
|
|
||||||
<option value="12">Albanian</option>\
|
|
||||||
<option value="13">Aleut</option>\
|
|
||||||
<option value="15">Amharic</option>\
|
|
||||||
<option value="475">Angika</option>\
|
|
||||||
<option value="20">Aragonese</option>\
|
|
||||||
<option value="23">Arapaho</option>\
|
|
||||||
<option value="25">Arawak</option>\
|
|
||||||
<option value="21">Armenian</option>\
|
|
||||||
<option value="479">Aromanian</option>\
|
|
||||||
<option value="26">Assamese</option>\
|
|
||||||
<option value="27">Asturian</option>\
|
|
||||||
<option value="30">Avaric</option>\
|
|
||||||
<option value="31">Avestan</option>\
|
|
||||||
<option value="32">Awadhi</option>\
|
|
||||||
<option value="33">Aymara</option>\
|
|
||||||
<option value="34">Azerbaijani</option>\
|
|
||||||
<option value="40">Balinese</option>\
|
|
||||||
<option value="38">Baluchi</option>\
|
|
||||||
<option value="39">Bambara</option>\
|
|
||||||
<option value="42">Basa</option>\
|
|
||||||
<option value="37">Bashkir</option>\
|
|
||||||
<option value="41">Basque</option>\
|
|
||||||
<option value="44">Beja</option>\
|
|
||||||
<option value="45">Belarusian</option>\
|
|
||||||
<option value="46">Bemba</option>\
|
|
||||||
<option value="47">Bengali</option>\
|
|
||||||
<option value="49">Bhojpuri</option>\
|
|
||||||
<option value="51">Bikol</option>\
|
|
||||||
<option value="52">Bini</option>\
|
|
||||||
<option value="53">Bislama</option>\
|
|
||||||
<option value="64">Blin</option>\
|
|
||||||
<option value="56">Bosnian</option>\
|
|
||||||
<option value="57">Braj</option>\
|
|
||||||
<option value="58">Breton</option>\
|
|
||||||
<option value="61">Buginese</option>\
|
|
||||||
<option value="62">Bulgarian</option>\
|
|
||||||
<option value="60">Buriat</option>\
|
|
||||||
<option value="63">Burmese</option>\
|
|
||||||
<option value="65">Caddo</option>\
|
|
||||||
<option value="68">Catalan</option>\
|
|
||||||
<option value="70">Cebuano</option>\
|
|
||||||
<option value="75">Chagatai</option>\
|
|
||||||
<option value="72">Chamorro</option>\
|
|
||||||
<option value="74">Chechen</option>\
|
|
||||||
<option value="82">Cherokee</option>\
|
|
||||||
<option value="85">Cheyenne</option>\
|
|
||||||
<option value="73">Chibcha</option>\
|
|
||||||
<option value="313">Chichewa</option>\
|
|
||||||
<option value="79">Chinook jargon</option>\
|
|
||||||
<option value="81">Chipewyan</option>\
|
|
||||||
<option value="80">Choctaw</option>\
|
|
||||||
<option value="83">Church Slavic</option>\
|
|
||||||
<option value="77">Chuukese</option>\
|
|
||||||
<option value="84">Chuvash</option>\
|
|
||||||
<option value="87">Coptic</option>\
|
|
||||||
<option value="88">Cornish</option>\
|
|
||||||
<option value="89">Corsican</option>\
|
|
||||||
<option value="93">Cree</option>\
|
|
||||||
<option value="286">Creek</option>\
|
|
||||||
<option value="94">Crimean Tatar</option>\
|
|
||||||
<option value="366">Croatian</option>\
|
|
||||||
<option value="99">Dakota</option>\
|
|
||||||
<option value="101">Dargwa</option>\
|
|
||||||
<option value="103">Delaware</option>\
|
|
||||||
<option value="106">Dinka</option>\
|
|
||||||
<option value="107">Divehi</option>\
|
|
||||||
<option value="108">Dogri</option>\
|
|
||||||
<option value="105">Dogrib</option>\
|
|
||||||
<option value="111">Duala</option>\
|
|
||||||
<option value="114">Dyula</option>\
|
|
||||||
<option value="115">Dzongkha</option>\
|
|
||||||
<option value="116">Efik</option>\
|
|
||||||
<option value="118">Ekajuk</option>\
|
|
||||||
<option value="119">Elamite</option>\
|
|
||||||
<option value="290">Erzya</option>\
|
|
||||||
<option value="122">Esperanto</option>\
|
|
||||||
<option value="123">Estonian</option>\
|
|
||||||
<option value="124">Ewe</option>\
|
|
||||||
<option value="125">Ewondo</option>\
|
|
||||||
<option value="126">Fang</option>\
|
|
||||||
<option value="128">Fanti</option>\
|
|
||||||
<option value="127">Faroese</option>\
|
|
||||||
<option value="129">Fijian</option>\
|
|
||||||
<option value="130">Filipino</option>\
|
|
||||||
<option value="133">Fon</option>\
|
|
||||||
<option value="485">Frisian, Eastern</option>\
|
|
||||||
<option value="484">Frisian, Northern</option>\
|
|
||||||
<option value="137">Frisian, Western</option>\
|
|
||||||
<option value="139">Friulian</option>\
|
|
||||||
<option value="138">Fulah</option>\
|
|
||||||
<option value="140">Ga</option>\
|
|
||||||
<option value="67">Galibi Carib</option>\
|
|
||||||
<option value="150">Galician</option>\
|
|
||||||
<option value="249">Ganda</option>\
|
|
||||||
<option value="141">Gayo</option>\
|
|
||||||
<option value="142">Gbaya</option>\
|
|
||||||
<option value="146">Geez</option>\
|
|
||||||
<option value="144">Georgian</option>\
|
|
||||||
<option value="299">German, Low</option>\
|
|
||||||
<option value="476">German, Swiss</option>\
|
|
||||||
<option value="147">Gilbertese</option>\
|
|
||||||
<option value="154">Gondi</option>\
|
|
||||||
<option value="155">Gorontalo</option>\
|
|
||||||
<option value="156">Gothic</option>\
|
|
||||||
<option value="157">Grebo</option>\
|
|
||||||
<option value="158">Greek, Ancient</option>\
|
|
||||||
<option value="204">Greenlandic</option>\
|
|
||||||
<option value="160">Guarani</option>\
|
|
||||||
<option value="161">Gujarati</option>\
|
|
||||||
<option value="162">Gwich\'in</option>\
|
|
||||||
<option value="163">Haida</option>\
|
|
||||||
<option value="164">Haitian Creole</option>\
|
|
||||||
<option value="165">Hausa</option>\
|
|
||||||
<option value="166">Hawaiian</option>\
|
|
||||||
<option value="167">Hebrew</option>\
|
|
||||||
<option value="168">Herero</option>\
|
|
||||||
<option value="169">Hiligaynon</option>\
|
|
||||||
<option value="171">Hindi</option>\
|
|
||||||
<option value="174">Hiri Motu</option>\
|
|
||||||
<option value="173">Hmong</option>\
|
|
||||||
<option value="176">Hungarian</option>\
|
|
||||||
<option value="177">Hupa</option>\
|
|
||||||
<option value="178">Iban</option>\
|
|
||||||
<option value="180">Icelandic</option>\
|
|
||||||
<option value="181">Ido</option>\
|
|
||||||
<option value="179">Igbo</option>\
|
|
||||||
<option value="186">Iloko</option>\
|
|
||||||
<option value="189">Indonesian</option>\
|
|
||||||
<option value="191">Ingush</option>\
|
|
||||||
<option value="187">Interlingua</option>\
|
|
||||||
<option value="185">Interlingue</option>\
|
|
||||||
<option value="184">Inuktitut</option>\
|
|
||||||
<option value="192">Inupiaq</option>\
|
|
||||||
<option value="149">Irish</option>\
|
|
||||||
<option value="196">Javanese</option>\
|
|
||||||
<option value="200">Judeo-Arabic</option>\
|
|
||||||
<option value="199">Judeo-Persian</option>\
|
|
||||||
<option value="212">Kabardian</option>\
|
|
||||||
<option value="202">Kabyle</option>\
|
|
||||||
<option value="203">Kachin</option>\
|
|
||||||
<option value="459">Kalmyk</option>\
|
|
||||||
<option value="205">Kamba</option>\
|
|
||||||
<option value="206">Kannada</option>\
|
|
||||||
<option value="209">Kanuri</option>\
|
|
||||||
<option value="201">Kara-Kalpak</option>\
|
|
||||||
<option value="227">Karachay-Balkar</option>\
|
|
||||||
<option value="477">Karelian</option>\
|
|
||||||
<option value="208">Kashmiri</option>\
|
|
||||||
<option value="96">Kashubian</option>\
|
|
||||||
<option value="211">Kazakh</option>\
|
|
||||||
<option value="213">Khasi</option>\
|
|
||||||
<option value="215">Khmer, Central</option>\
|
|
||||||
<option value="217">Kikuyu</option>\
|
|
||||||
<option value="220">Kimbundu</option>\
|
|
||||||
<option value="218">Kinyarwanda</option>\
|
|
||||||
<option value="219">Kirghiz</option>\
|
|
||||||
<option value="421">Klingon</option>\
|
|
||||||
<option value="222">Komi</option>\
|
|
||||||
<option value="223">Kongo</option>\
|
|
||||||
<option value="221">Konkani</option>\
|
|
||||||
<option value="224">Korean</option>\
|
|
||||||
<option value="225">Kosraean</option>\
|
|
||||||
<option value="226">Kpelle</option>\
|
|
||||||
<option value="230">Kuanyama</option>\
|
|
||||||
<option value="231">Kumyk</option>\
|
|
||||||
<option value="232">Kurdish</option>\
|
|
||||||
<option value="229">Kurukh</option>\
|
|
||||||
<option value="233">Kutenai</option>\
|
|
||||||
<option value="3529">Kölsch</option>\
|
|
||||||
<option value="234">Ladino</option>\
|
|
||||||
<option value="235">Lahnda</option>\
|
|
||||||
<option value="236">Lamba</option>\
|
|
||||||
<option value="237">Lao</option>\
|
|
||||||
<option value="238">Latin</option>\
|
|
||||||
<option value="239">Latvian</option>\
|
|
||||||
<option value="240">Lezghian</option>\
|
|
||||||
<option value="241">Limburgish</option>\
|
|
||||||
<option value="242">Lingala</option>\
|
|
||||||
<option value="243">Lithuanian</option>\
|
|
||||||
<option value="3858">Liv</option>\
|
|
||||||
<option value="197">Lojban</option>\
|
|
||||||
<option value="245">Lozi</option>\
|
|
||||||
<option value="248">Luba-Katanga</option>\
|
|
||||||
<option value="247">Luba-Lulua</option>\
|
|
||||||
<option value="250">Luiseno</option>\
|
|
||||||
<option value="251">Lunda</option>\
|
|
||||||
<option value="252">Luo</option>\
|
|
||||||
<option value="253">Lushai</option>\
|
|
||||||
<option value="246">Luxembourgish</option>\
|
|
||||||
<option value="254">Macedonian</option>\
|
|
||||||
<option value="255">Madurese</option>\
|
|
||||||
<option value="256">Magahi</option>\
|
|
||||||
<option value="258">Maithili</option>\
|
|
||||||
<option value="259">Makasar</option>\
|
|
||||||
<option value="275">Malagasy</option>\
|
|
||||||
<option value="266">Malay</option>\
|
|
||||||
<option value="260">Malayalam</option>\
|
|
||||||
<option value="276">Maltese</option>\
|
|
||||||
<option value="277">Manchu</option>\
|
|
||||||
<option value="268">Mandar</option>\
|
|
||||||
<option value="1739">Mandarin Chinese</option>\
|
|
||||||
<option value="261">Mandingo</option>\
|
|
||||||
<option value="278">Manipuri</option>\
|
|
||||||
<option value="151">Manx</option>\
|
|
||||||
<option value="262">Maori</option>\
|
|
||||||
<option value="22">Mapudungun</option>\
|
|
||||||
<option value="264">Marathi</option>\
|
|
||||||
<option value="78">Mari</option>\
|
|
||||||
<option value="257">Marshallese</option>\
|
|
||||||
<option value="288">Marwari</option>\
|
|
||||||
<option value="265">Masai</option>\
|
|
||||||
<option value="269">Mende</option>\
|
|
||||||
<option value="271">Mi\'kmaq</option>\
|
|
||||||
<option value="4663">Min Nan Chinese</option>\
|
|
||||||
<option value="272">Minangkabau</option>\
|
|
||||||
<option value="287">Mirandese</option>\
|
|
||||||
<option value="280">Mohawk</option>\
|
|
||||||
<option value="267">Moksha</option>\
|
|
||||||
<option value="244">Mongo</option>\
|
|
||||||
<option value="282">Mongolian</option>\
|
|
||||||
<option value="4369">Montagnais</option>\
|
|
||||||
<option value="283">Mossi</option>\
|
|
||||||
<option value="478">N\'Ko</option>\
|
|
||||||
<option value="294">Nauru</option>\
|
|
||||||
<option value="295">Navajo</option>\
|
|
||||||
<option value="297">Ndebele, North</option>\
|
|
||||||
<option value="296">Ndebele, South</option>\
|
|
||||||
<option value="298">Ndonga</option>\
|
|
||||||
<option value="293">Neapolitan</option>\
|
|
||||||
<option value="301">Nepal Bhasa</option>\
|
|
||||||
<option value="300">Nepali</option>\
|
|
||||||
<option value="302">Nias</option>\
|
|
||||||
<option value="304">Niuean</option>\
|
|
||||||
<option value="486">No linguistic content</option>\
|
|
||||||
<option value="307">Nogai</option>\
|
|
||||||
<option value="308">Norse, Old</option>\
|
|
||||||
<option value="306">Norwegian Bokmål</option>\
|
|
||||||
<option value="305">Norwegian Nynorsk</option>\
|
|
||||||
<option value="314">Nyamwezi</option>\
|
|
||||||
<option value="315">Nyankole</option>\
|
|
||||||
<option value="316">Nyoro</option>\
|
|
||||||
<option value="317">Nzima</option>\
|
|
||||||
<option value="318">Occitan</option>\
|
|
||||||
<option value="319">Ojibwa</option>\
|
|
||||||
<option value="320">Oriya</option>\
|
|
||||||
<option value="321">Oromo</option>\
|
|
||||||
<option value="322">Osage</option>\
|
|
||||||
<option value="323">Ossetian</option>\
|
|
||||||
<option value="332">Palauan</option>\
|
|
||||||
<option value="337">Pali</option>\
|
|
||||||
<option value="329">Pampanga</option>\
|
|
||||||
<option value="327">Pangasinan</option>\
|
|
||||||
<option value="330">Panjabi</option>\
|
|
||||||
<option value="331">Papiamento</option>\
|
|
||||||
<option value="334">Persian</option>\
|
|
||||||
<option value="339">Pohnpeian</option>\
|
|
||||||
<option value="343">Pushto</option>\
|
|
||||||
<option value="5603">Puyuma</option>\
|
|
||||||
<option value="344">Quechua</option>\
|
|
||||||
<option value="345">Rajasthani</option>\
|
|
||||||
<option value="346">Rapanui</option>\
|
|
||||||
<option value="347">Rarotongan</option>\
|
|
||||||
<option value="351">Romanian</option>\
|
|
||||||
<option value="349">Romansh</option>\
|
|
||||||
<option value="350">Romany</option>\
|
|
||||||
<option value="352">Rundi</option>\
|
|
||||||
<option value="5690">Réunion Creole French</option>\
|
|
||||||
<option value="359">Samaritan Aramaic</option>\
|
|
||||||
<option value="383">Sami, Inari</option>\
|
|
||||||
<option value="382">Sami, Lule</option>\
|
|
||||||
<option value="380">Sami, Northern</option>\
|
|
||||||
<option value="385">Sami, Skolt</option>\
|
|
||||||
<option value="379">Sami, Southern</option>\
|
|
||||||
<option value="384">Samoan</option>\
|
|
||||||
<option value="354">Sandawe</option>\
|
|
||||||
<option value="355">Sango</option>\
|
|
||||||
<option value="360">Sanskrit</option>\
|
|
||||||
<option value="362">Santali</option>\
|
|
||||||
<option value="394">Sardinian</option>\
|
|
||||||
<option value="361">Sasak</option>\
|
|
||||||
<option value="365">Scots</option>\
|
|
||||||
<option value="148">Scottish Gaelic</option>\
|
|
||||||
<option value="367">Selkup</option>\
|
|
||||||
<option value="363">Serbian</option>\
|
|
||||||
<option value="395">Serer</option>\
|
|
||||||
<option value="371">Shan</option>\
|
|
||||||
<option value="386">Shona</option>\
|
|
||||||
<option value="182">Sichuan Yi</option>\
|
|
||||||
<option value="364">Sicilian</option>\
|
|
||||||
<option value="372">Sidamo</option>\
|
|
||||||
<option value="54">Siksika</option>\
|
|
||||||
<option value="387">Sindhi</option>\
|
|
||||||
<option value="373">Sinhala</option>\
|
|
||||||
<option value="104">Slave (Athapascan)</option>\
|
|
||||||
<option value="377">Slovak</option>\
|
|
||||||
<option value="378">Slovenian</option>\
|
|
||||||
<option value="390">Somali</option>\
|
|
||||||
<option value="388">Soninke</option>\
|
|
||||||
<option value="110">Sorbian, Lower</option>\
|
|
||||||
<option value="175">Sorbian, Upper</option>\
|
|
||||||
<option value="310">Sotho, Northern</option>\
|
|
||||||
<option value="392">Sotho, Southern</option>\
|
|
||||||
<option value="474">Southern Altai</option>\
|
|
||||||
<option value="480">Sranan Tongo</option>\
|
|
||||||
<option value="398">Sukuma</option>\
|
|
||||||
<option value="399">Sundanese</option>\
|
|
||||||
<option value="400">Susu</option>\
|
|
||||||
<option value="402">Swahili</option>\
|
|
||||||
<option value="397">Swati</option>\
|
|
||||||
<option value="404">Syriac</option>\
|
|
||||||
<option value="414">Tagalog</option>\
|
|
||||||
<option value="405">Tahitian</option>\
|
|
||||||
<option value="413">Tajik</option>\
|
|
||||||
<option value="423">Tamashek</option>\
|
|
||||||
<option value="407">Tamil</option>\
|
|
||||||
<option value="408">Tatar</option>\
|
|
||||||
<option value="409">Telugu</option>\
|
|
||||||
<option value="411">Tereno</option>\
|
|
||||||
<option value="412">Tetum</option>\
|
|
||||||
<option value="415">Thai</option>\
|
|
||||||
<option value="416">Tibetan</option>\
|
|
||||||
<option value="417">Tigre</option>\
|
|
||||||
<option value="418">Tigrinya</option>\
|
|
||||||
<option value="410">Timne</option>\
|
|
||||||
<option value="419">Tiv</option>\
|
|
||||||
<option value="422">Tlingit</option>\
|
|
||||||
<option value="426">Tok Pisin</option>\
|
|
||||||
<option value="420">Tokelau</option>\
|
|
||||||
<option value="424">Tonga (Nyasa)</option>\
|
|
||||||
<option value="425">Tonga (Tonga Islands)</option>\
|
|
||||||
<option value="427">Tsimshian</option>\
|
|
||||||
<option value="429">Tsonga</option>\
|
|
||||||
<option value="428">Tswana</option>\
|
|
||||||
<option value="431">Tumbuka</option>\
|
|
||||||
<option value="324">Turkish, Ottoman</option>\
|
|
||||||
<option value="430">Turkmen</option>\
|
|
||||||
<option value="435">Tuvalu</option>\
|
|
||||||
<option value="437">Tuvinian</option>\
|
|
||||||
<option value="436">Twi</option>\
|
|
||||||
<option value="438">Udmurt</option>\
|
|
||||||
<option value="440">Uighur</option>\
|
|
||||||
<option value="441">Ukrainian</option>\
|
|
||||||
<option value="442">Umbundu</option>\
|
|
||||||
<option value="444">Urdu</option>\
|
|
||||||
<option value="445">Uzbek</option>\
|
|
||||||
<option value="446">Vai</option>\
|
|
||||||
<option value="447">Venda</option>\
|
|
||||||
<option value="448">Vietnamese</option>\
|
|
||||||
<option value="449">Volapük</option>\
|
|
||||||
<option value="450">Votic</option>\
|
|
||||||
<option value="6966">Võro</option>\
|
|
||||||
<option value="457">Walloon</option>\
|
|
||||||
<option value="453">Waray</option>\
|
|
||||||
<option value="454">Washo</option>\
|
|
||||||
<option value="455">Welsh</option>\
|
|
||||||
<option value="452">Wolaitta</option>\
|
|
||||||
<option value="458">Wolof</option>\
|
|
||||||
<option value="460">Xhosa</option>\
|
|
||||||
<option value="5808">Yaeyama</option>\
|
|
||||||
<option value="356">Yakut</option>\
|
|
||||||
<option value="461">Yao</option>\
|
|
||||||
<option value="462">Yapese</option>\
|
|
||||||
<option value="463">Yiddish</option>\
|
|
||||||
<option value="464">Yoruba</option>\
|
|
||||||
<option value="7640">Yue Chinese</option>\
|
|
||||||
<option value="466">Zapotec</option>\
|
|
||||||
<option value="483">Zaza</option>\
|
|
||||||
<option value="467">Zenaga</option>\
|
|
||||||
<option value="468">Zhuang</option>\
|
|
||||||
<option value="470">Zulu</option>\
|
|
||||||
<option value="471">Zuni</option>\
|
|
||||||
<option value="24">[Artificial (Other)]</option>\
|
|
||||||
</optgroup>\
|
|
||||||
</select>';
|
|
||||||
|
|
||||||
// Add button to manage performance ARs
|
// Add button to manage performance ARs
|
||||||
var $relate_table = table(
|
var $relate_table = table(
|
||||||
|
@ -609,9 +175,9 @@ function batch_recording_rels() {
|
||||||
tr(td("Their suggested works"),
|
tr(td("Their suggested works"),
|
||||||
td(goBtn(relate_to_suggested_works))),
|
td(goBtn(relate_to_suggested_works))),
|
||||||
tr(td(label("Work type:").attr('for',"bpr-work-type")),
|
tr(td(label("Work type:").attr('for',"bpr-work-type")),
|
||||||
td(work_type_options)),
|
td($work_type_options)),
|
||||||
tr(td(label("Lyrics language:").attr('for', "bpr-work-language")),
|
tr(td(label("Lyrics language:").attr('for', "bpr-work-language")),
|
||||||
td(work_language_options))).hide();
|
td($work_language_options))).hide();
|
||||||
|
|
||||||
var $works_table = table(
|
var $works_table = table(
|
||||||
$('<tr id="bpr-works-row"></tr>').append(
|
$('<tr id="bpr-works-row"></tr>').append(
|
||||||
|
@ -631,8 +197,16 @@ function batch_recording_rels() {
|
||||||
.insertAfter($("div#content h2")[0]);
|
.insertAfter($("div#content h2")[0]);
|
||||||
|
|
||||||
$container.find("table").find("td").css("width", "auto");
|
$container.find("table").find("td").css("width", "auto");
|
||||||
$container.children("tbody").children("tr").children("td")
|
$container.children("tbody").children("tr").children("td").css({ padding: "0.5em", "vertical-align": "top" });
|
||||||
.css({"padding": "0.5em", "vertical-align": "top"});
|
|
||||||
|
// Get actual work types/languages
|
||||||
|
|
||||||
|
$.get('/dialog?path=%2Fwork%2Fcreate', function (data) {
|
||||||
|
var nodes = $.parseHTML(data);
|
||||||
|
|
||||||
|
$work_type_options.append($('#id-edit-work\\.type_id', nodes).children()).val('');
|
||||||
|
$work_language_options.append($('#id-edit-work\\.language_id', nodes).children()).val('');
|
||||||
|
});
|
||||||
|
|
||||||
var hide_performed_recs = $.cookie('hide_performed_recs') === 'true' ? true : false;
|
var hide_performed_recs = $.cookie('hide_performed_recs') === 'true' ? true : false;
|
||||||
var hide_pending_edits = $.cookie('hide_pending_edits') === 'true' ? true : false;
|
var hide_pending_edits = $.cookie('hide_pending_edits') === 'true' ? true : false;
|
||||||
|
@ -1269,12 +843,12 @@ function batch_recording_rels() {
|
||||||
|
|
||||||
// Edit creation
|
// Edit creation
|
||||||
|
|
||||||
$("#bpr-work-type").val($.cookie("bpr_work_type") || 0)
|
$work_type_options.val($.cookie("bpr_work_type") || 0)
|
||||||
.change(function () {
|
.change(function () {
|
||||||
$.cookie('bpr_work_type', this.value, { path: '/', expires: 1000 });
|
$.cookie('bpr_work_type', this.value, { path: '/', expires: 1000 });
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#bpr-work-language").val($.cookie("bpr_work_language") || 0)
|
$work_language_options.val($.cookie("bpr_work_language") || 0)
|
||||||
.change(function () {
|
.change(function () {
|
||||||
$.cookie('bpr_work_language', this.value, { path: '/', expires: 1000 });
|
$.cookie('bpr_work_language', this.value, { path: '/', expires: 1000 });
|
||||||
});
|
});
|
||||||
|
@ -1401,8 +975,8 @@ function batch_recording_rels() {
|
||||||
function create_new_work(title, callback) {
|
function create_new_work(title, callback) {
|
||||||
function post_edit() {
|
function post_edit() {
|
||||||
var data = "edit-work.name=" + title;
|
var data = "edit-work.name=" + title;
|
||||||
var work_type = $("#bpr-work-type").val();
|
var work_type = $work_type_options.val();
|
||||||
var work_lang = $("#bpr-work-language").val();
|
var work_lang = $work_language_options.val();
|
||||||
|
|
||||||
if (work_type) data += "&edit-work.type_id=" + work_type;
|
if (work_type) data += "&edit-work.type_id=" + work_type;
|
||||||
if (work_lang) data += "&edit-work.language_id=" + work_lang;
|
if (work_lang) data += "&edit-work.language_id=" + work_lang;
|
||||||
|
|
Loading…
Reference in a new issue