├── favicon.ico ├── img ├── facebook.ico ├── favicon.ico └── twitter.ico ├── css ├── images │ ├── Thumbs.db │ ├── ui-icons_217bc0_256x240.png │ ├── ui-icons_222222_256x240.png │ ├── ui-icons_228ef1_256x240.png │ ├── ui-icons_2e83ff_256x240.png │ ├── ui-icons_469bdd_256x240.png │ ├── ui-icons_6da8d5_256x240.png │ ├── ui-icons_cd0a0a_256x240.png │ ├── ui-icons_d8e7f3_256x240.png │ ├── ui-icons_ef8c08_256x240.png │ ├── ui-icons_f9bd01_256x240.png │ ├── ui-icons_ffd27a_256x240.png │ ├── ui-icons_ffffff_256x240.png │ ├── ui-bg_flat_0_aaaaaa_40x100.png │ ├── ui-bg_flat_10_000000_40x100.png │ ├── ui-bg_flat_55_fbec88_40x100.png │ ├── ui-bg_glass_100_f6f6f6_1x400.png │ ├── ui-bg_glass_100_fdf5ce_1x400.png │ ├── ui-bg_glass_65_ffffff_1x400.png │ ├── ui-bg_glass_75_d0e5f5_1x400.png │ ├── ui-bg_glass_85_dfeffc_1x400.png │ ├── ui-bg_glass_95_fef1ec_1x400.png │ ├── ui-bg_inset-hard_100_eeeeee_1x100.png │ ├── ui-bg_inset-hard_100_f5f8f9_1x100.png │ ├── ui-bg_inset-hard_100_fcfdfd_1x100.png │ ├── ui-bg_inset-soft_100_f5f8f9_1x100.png │ ├── ui-bg_inset-soft_55_6b90d4_1x100.png │ ├── ui-bg_inset-soft_75_d0e5f5_1x100.png │ ├── ui-bg_inset-soft_85_eeeeee_1x100.png │ ├── ui-bg_inset-soft_95_fef1ec_1x100.png │ ├── ui-bg_gloss-wave_35_f6a828_500x100.png │ ├── ui-bg_gloss-wave_55_5c9ccc_500x100.png │ ├── ui-bg_highlight-soft_75_ffe45c_1x100.png │ ├── ui-bg_diagonals-thick_18_b81900_40x40.png │ ├── ui-bg_diagonals-thick_20_666666_40x40.png │ └── ui-bg_highlight-soft_100_eeeeee_1x100.png ├── jquery.ui.autocomplete.css ├── csshover3.htc ├── dcstyle_ie.css ├── dcstyle.css ├── dcstyle_test.css └── jquery-ui-1.8.16.custom.css ├── README.md ├── robots.txt ├── js ├── analytics.js ├── interface_nq.js ├── interface_zc.js ├── jquery.anirows.js ├── generator_zc.js ├── vocabsources.js ├── generator_nq.js ├── interface_test.js └── interface.js ├── save.php ├── php ├── imtlookup.php ├── iso6393lookup.php ├── iso6392lookup.php └── iso3166lookup.php ├── notfound.html ├── index.html ├── about.html ├── contribute.html ├── generator_zc.html ├── generator_nq.html └── LICENSE /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/favicon.ico -------------------------------------------------------------------------------- /img/facebook.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/img/facebook.ico -------------------------------------------------------------------------------- /img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/img/favicon.ico -------------------------------------------------------------------------------- /img/twitter.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/img/twitter.ico -------------------------------------------------------------------------------- /css/images/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/Thumbs.db -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # dublin-core-generator 2 | A JavaScript/JQuery tool for working with Dublin core metadata code. 3 | -------------------------------------------------------------------------------- /css/images/ui-icons_217bc0_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-icons_217bc0_256x240.png -------------------------------------------------------------------------------- /css/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /css/images/ui-icons_228ef1_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-icons_228ef1_256x240.png -------------------------------------------------------------------------------- /css/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /css/images/ui-icons_469bdd_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-icons_469bdd_256x240.png -------------------------------------------------------------------------------- /css/images/ui-icons_6da8d5_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-icons_6da8d5_256x240.png -------------------------------------------------------------------------------- /css/images/ui-icons_cd0a0a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-icons_cd0a0a_256x240.png -------------------------------------------------------------------------------- /css/images/ui-icons_d8e7f3_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-icons_d8e7f3_256x240.png -------------------------------------------------------------------------------- /css/images/ui-icons_ef8c08_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-icons_ef8c08_256x240.png -------------------------------------------------------------------------------- /css/images/ui-icons_f9bd01_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-icons_f9bd01_256x240.png -------------------------------------------------------------------------------- /css/images/ui-icons_ffd27a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-icons_ffd27a_256x240.png -------------------------------------------------------------------------------- /css/images/ui-icons_ffffff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-icons_ffffff_256x240.png -------------------------------------------------------------------------------- /css/images/ui-bg_flat_0_aaaaaa_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_flat_0_aaaaaa_40x100.png -------------------------------------------------------------------------------- /css/images/ui-bg_flat_10_000000_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_flat_10_000000_40x100.png -------------------------------------------------------------------------------- /css/images/ui-bg_flat_55_fbec88_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_flat_55_fbec88_40x100.png -------------------------------------------------------------------------------- /css/images/ui-bg_glass_100_f6f6f6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_glass_100_f6f6f6_1x400.png -------------------------------------------------------------------------------- /css/images/ui-bg_glass_100_fdf5ce_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_glass_100_fdf5ce_1x400.png -------------------------------------------------------------------------------- /css/images/ui-bg_glass_65_ffffff_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_glass_65_ffffff_1x400.png -------------------------------------------------------------------------------- /css/images/ui-bg_glass_75_d0e5f5_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_glass_75_d0e5f5_1x400.png -------------------------------------------------------------------------------- /css/images/ui-bg_glass_85_dfeffc_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_glass_85_dfeffc_1x400.png -------------------------------------------------------------------------------- /css/images/ui-bg_glass_95_fef1ec_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_glass_95_fef1ec_1x400.png -------------------------------------------------------------------------------- /robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: /Steffel_cv.pdf 3 | Disallow: /testgen.html 4 | Disallow: /testgen2.html 5 | Disallow: /testgen3.html 6 | Allow: / -------------------------------------------------------------------------------- /css/images/ui-bg_inset-hard_100_eeeeee_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_inset-hard_100_eeeeee_1x100.png -------------------------------------------------------------------------------- /css/images/ui-bg_inset-hard_100_f5f8f9_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_inset-hard_100_f5f8f9_1x100.png -------------------------------------------------------------------------------- /css/images/ui-bg_inset-hard_100_fcfdfd_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_inset-hard_100_fcfdfd_1x100.png -------------------------------------------------------------------------------- /css/images/ui-bg_inset-soft_100_f5f8f9_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_inset-soft_100_f5f8f9_1x100.png -------------------------------------------------------------------------------- /css/images/ui-bg_inset-soft_55_6b90d4_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_inset-soft_55_6b90d4_1x100.png -------------------------------------------------------------------------------- /css/images/ui-bg_inset-soft_75_d0e5f5_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_inset-soft_75_d0e5f5_1x100.png -------------------------------------------------------------------------------- /css/images/ui-bg_inset-soft_85_eeeeee_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_inset-soft_85_eeeeee_1x100.png -------------------------------------------------------------------------------- /css/images/ui-bg_inset-soft_95_fef1ec_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_inset-soft_95_fef1ec_1x100.png -------------------------------------------------------------------------------- /css/images/ui-bg_gloss-wave_35_f6a828_500x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png -------------------------------------------------------------------------------- /css/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png -------------------------------------------------------------------------------- /css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png -------------------------------------------------------------------------------- /css/images/ui-bg_diagonals-thick_18_b81900_40x40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png -------------------------------------------------------------------------------- /css/images/ui-bg_diagonals-thick_20_666666_40x40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_diagonals-thick_20_666666_40x40.png -------------------------------------------------------------------------------- /css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nsteffel/dublin-core-generator/HEAD/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png -------------------------------------------------------------------------------- /js/analytics.js: -------------------------------------------------------------------------------- 1 | var _gaq = _gaq || []; 2 | _gaq.push(['_setAccount', 'UA-20071889-3']); 3 | _gaq.push(['_setDomainName', 'none']); 4 | _gaq.push(['_setAllowLinker', true]); 5 | _gaq.push(['_trackPageview']); 6 | 7 | (function() { 8 | var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 9 | ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 10 | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 11 | })(); -------------------------------------------------------------------------------- /js/interface_nq.js: -------------------------------------------------------------------------------- 1 | function addRowToTable(type){ 2 | if(type !== "description"){ 3 | $("#"+type+"Table").addRow({ 4 | newRow: '' 5 | }); 6 | } 7 | else{ 8 | $("#"+type+"Table").addRow({ 9 | newRow: '' 10 | }); 11 | } 12 | } 13 | 14 | function removeRowFromTable(tableID){ 15 | var rowCount = $("#"+tableID+" tr").length; 16 | if(rowCount > 2){ 17 | $("#"+tableID+"").removeRow({}); 18 | } 19 | } -------------------------------------------------------------------------------- /js/interface_zc.js: -------------------------------------------------------------------------------- 1 | function addRowToTable(type){ 2 | if((type !== "description")&&(type !== "abstract")&&(type !== "contents")){ 3 | $("#"+type+"Table").addRow({ 4 | newRow: '' 5 | }); 6 | } 7 | else{ 8 | $("#"+type+"Table").addRow({ 9 | newRow: '' 10 | }); 11 | } 12 | } 13 | 14 | function removeRowFromTable(tableID){ 15 | var rowCount = $("#"+tableID+" tr").length; 16 | if(rowCount > 2){ 17 | $("#"+tableID+"").removeRow({}); 18 | } 19 | } -------------------------------------------------------------------------------- /save.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /php/imtlookup.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /php/iso6393lookup.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /php/iso6392lookup.php: -------------------------------------------------------------------------------- 1 | ''"); 18 | 19 | /* Retrieve and store in array the results of the query.*/ 20 | while ($row = mysql_fetch_array($fetch, MYSQL_ASSOC)) { 21 | $row_array['label'] = $row['RefName']; 22 | $row_array['value'] = $row['ID6392t']; 23 | 24 | array_push($return_arr,$row_array); 25 | } 26 | } 27 | /* Free connection resources. */ 28 | mysql_close($conn); 29 | 30 | /* Toss back results as json encoded array. */ 31 | echo json_encode($return_arr); 32 | 33 | 34 | ?> 35 | -------------------------------------------------------------------------------- /php/iso3166lookup.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /notfound.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Page Not Found 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 | dublincoregenerator.com - a better dublin core generator 14 |
15 |
16 |
17 |
18 |
Oh no!
19 |
20 |

The page you are looking for could not be found. Don't worry though, just click here to return to the main page.

21 |
22 |
23 |
24 |
25 |
26 | 27 | 28 | -------------------------------------------------------------------------------- /css/jquery.ui.autocomplete.css: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery UI Autocomplete 1.8.16 3 | * 4 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) 5 | * Dual licensed under the MIT or GPL Version 2 licenses. 6 | * http://jquery.org/license 7 | * 8 | * http://docs.jquery.com/UI/Autocomplete#theming 9 | */ 10 | .ui-autocomplete { position: absolute; cursor: default; } 11 | 12 | /* workarounds */ 13 | * html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */ 14 | 15 | /* 16 | * jQuery UI Menu 1.8.16 17 | * 18 | * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) 19 | * Dual licensed under the MIT or GPL Version 2 licenses. 20 | * http://jquery.org/license 21 | * 22 | * http://docs.jquery.com/UI/Menu#theming 23 | */ 24 | .ui-menu { 25 | list-style:none; 26 | padding: 2px; 27 | margin: 0; 28 | display:block; 29 | float: left; 30 | } 31 | .ui-menu .ui-menu { 32 | margin-top: -3px; 33 | } 34 | .ui-menu .ui-menu-item { 35 | margin:0; 36 | padding: 0; 37 | zoom: 1; 38 | float: left; 39 | clear: left; 40 | width: 100%; 41 | } 42 | .ui-menu .ui-menu-item a { 43 | text-decoration:none; 44 | display:block; 45 | padding:.2em .4em; 46 | line-height:1.5; 47 | zoom:1; 48 | } 49 | .ui-menu .ui-menu-item a.ui-state-hover, 50 | .ui-menu .ui-menu-item a.ui-state-active { 51 | font-weight: normal; 52 | margin: -1px; 53 | } 54 | -------------------------------------------------------------------------------- /js/jquery.anirows.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | var defaults = { 3 | rowSpeed: 300, 4 | newRow: null, 5 | addTop: true, 6 | removeTop: true 7 | }; 8 | var newClasses = "newRow" 9 | var options = $.extend(defaults, options); 10 | $.fn.addRow = function (options) { 11 | opts = $.extend(defaults, options); 12 | var $table = $(this); 13 | var $tableBody = $("tbody", $table); 14 | var t = $(opts.newRow).find("td").wrapInner("
").parent() 15 | if (opts.addTop) t.appendTo($tableBody); 16 | else t.prependTo($tableBody); 17 | t.attr("class", newClasses).removeAttr("id").show().find("td div").slideDown(options.rowSpeed, function () { 18 | $(this).each(function () { 19 | var $set = jQuery(this); 20 | $set.replaceWith($set.contents()); 21 | }).end() 22 | }) 23 | return false; 24 | }; 25 | $.fn.removeRow = function (options) { 26 | opts = $.extend(defaults, options); 27 | var $table = $(this); 28 | var t 29 | if (opts.removeTop) t = $table.find('tbody tr:last') 30 | else t = $table.find('tbody tr:first'); 31 | t.find("td") 32 | .wrapInner("
") 33 | .parent().find("td div") 34 | .slideUp(opts.rowSpeed, function () { 35 | $(this).parent().parent().remove(); 36 | }); 37 | return false; 38 | }; 39 | return this; 40 | })(jQuery); -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | dublincoregenerator.com - Main 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
dublincoregenerator.com - a better dublin core generator
15 | 23 |
 
24 |
25 |
26 |
27 |
Main Page
28 |
29 |

Welcome to dublincoregenerator.com! Our mission is to provide accurate and dynamic tools for generating Dublin Core metadata code.

30 |

If you want to generate simple Dublin Core metadata using only the 15 main elements, use the Simple Generator. If you are interested in generating more advanced Dublin Core metadata code using the more detailed qualified elements and encoding schemes, use the Advanced Generator. There's also a generator for the xZINECOREx variation of Dublin Core.

31 |

Feel free to also read up about the site and how you can help.

32 |
33 |
34 |   35 |
36 |
37 |

This site is available under the GNU General Public License (v2). Check it out on GitHub.

38 |
39 |
40 |
41 |
42 |
43 | 44 | -------------------------------------------------------------------------------- /css/csshover3.htc: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /css/dcstyle_ie.css: -------------------------------------------------------------------------------- 1 | .container { 2 | width: 800px; 3 | margin: auto; 4 | padding: 0; 5 | } 6 | 7 | .header{ 8 | width: 590px; 9 | border: 2px solid #6B90D4; 10 | margin: 0 auto; 11 | font-size: 24px; 12 | text-align: center; 13 | padding: 5px; 14 | } 15 | 16 | .leftpage{ 17 | width: 150px; 18 | float: left; 19 | padding: 0; 20 | } 21 | 22 | .centerpage{ 23 | width: 800px; 24 | padding: 0; 25 | } 26 | 27 | .rightpage{ 28 | width: 600px; 29 | float: right; 30 | padding: 0; 31 | } 32 | 33 | .leftbox{ 34 | border: 1px solid #FFC440; 35 | padding: 0; 36 | background-color:#FFFFFF; 37 | } 38 | 39 | .centerbox{ 40 | border: 1px solid #FFC440; 41 | padding: 0; 42 | background-color:#FFFFFF; 43 | } 44 | 45 | .lefttext{ 46 | margin-left: 10px; 47 | } 48 | 49 | .rightbox{ 50 | border: 1px solid #FFC440; 51 | padding: 0; 52 | margin-bottom: 25px; 53 | background-color: #FFFFFF; 54 | zoom: 1; 55 | position: relative; 56 | } 57 | 58 | .lowerpage{ 59 | width: 750px; 60 | padding: 0; 61 | margin: 0 auto; 62 | } 63 | 64 | .lowerbox{ 65 | border: 1px solid #FFC440; 66 | padding: 0; 67 | background-color:#FFFFFF; 68 | } 69 | 70 | .page{ 71 | padding: 20px 0 0; 72 | } 73 | 74 | .boxheader{ 75 | background-color: #FFC440; 76 | border-bottom: 1px solid #FFC440; 77 | padding-left: 10px; 78 | font-weight: bold; 79 | } 80 | 81 | .boxtext{ 82 | padding: 10px; 83 | } 84 | 85 | .activemenu{ 86 | background-color: #6B90D4; 87 | margin: 0px 5px 0px 5px; 88 | padding: 0; 89 | font-weight: bold; 90 | text-decoration: underline; 91 | color: #000000; 92 | } 93 | 94 | .activemenu a:link, .activemenu a:visited, .activemenu a:active, .activemnu a:hover{ 95 | background-color: #6B90D4; 96 | padding: 0; 97 | font-weight: bold; 98 | text-decoration: underline; 99 | color: #000000; 100 | } 101 | 102 | .inactivemenu{ 103 | background-color: #6B90D4; 104 | margin: 0px 5px 0px 5px; 105 | padding: 0; 106 | font-weight: bold; 107 | color: #26517C; 108 | } 109 | 110 | .inactivemenu a:link, .inactivemenu a:visited, .inactivemenu a:active{ 111 | background-color: #6B90D4; 112 | padding: 0; 113 | font-weight: bold; 114 | } 115 | 116 | .inactivemenu a:hover{ 117 | background-color: #6B90D4; 118 | padding: 0; 119 | font-weight: bold; 120 | text-decoration: underline; 121 | color: #000000; 122 | } 123 | 124 | .menu{ 125 | width: 600px; 126 | border: 2px solid #6B90D4; 127 | margin: 0 auto; 128 | background-color: #6B90D4; 129 | } 130 | 131 | .defaulttable{ 132 | border: 1px solid #06276F; 133 | margin-top: 10px; 134 | -moz-border-radius: 4px; 135 | border-radius: 4px; 136 | } 137 | 138 | .addremovebutton{ 139 | text-decoration: none; 140 | font-family: monospace; 141 | } 142 | 143 | .superscript{ 144 | vertical-align: super; 145 | text-decoration: none; 146 | font-size: 12px; 147 | } 148 | 149 | body{ 150 | background-color: #F5F5F5; 151 | } 152 | 153 | input{ 154 | background: #EEEEEE; 155 | color: #6F6F6F; 156 | border: solid 2px #D3D3D3; 157 | outline: none; 158 | color: #000000; 159 | } 160 | 161 | input[type="checkbox"]{ 162 | border: none; 163 | color: #FFFFFF; 164 | background: #FFFFFF; 165 | } 166 | 167 | 168 | select{ 169 | background: #EEEEEE; 170 | border: solid 2px #D3D3D3; 171 | outline: none; 172 | } 173 | 174 | select:focus, select.focus{ 175 | border: solid 2px #73A6FF; 176 | background: #EFF5FF; 177 | color: #000; 178 | outline: none; 179 | } 180 | 181 | textarea{ 182 | background: #EEEEEE; 183 | border: solid 2px #D3D3D3; 184 | outline: none; 185 | } 186 | 187 | textarea:focus, textarea.focus{ 188 | border: solid 2px #73A6FF; 189 | background: #EFF5FF; 190 | color: #000000; 191 | outline: none; 192 | } 193 | 194 | a:link{ 195 | text-decoration: none; 196 | color: #03406A; 197 | } 198 | a:visited{ 199 | text-decoration: none; 200 | color: #03406A; 201 | } 202 | a:hover{ 203 | text-decoration: underline; 204 | color: #6C8DD5; 205 | } 206 | a:active{ 207 | text-decoration: none; 208 | } 209 | .divider{ 210 | border-top: 1px dashed #C0C0C0; 211 | margin: 10px; 212 | } 213 | 214 | .resourceheader{ 215 | color:#000000; 216 | text-decoration:underline; 217 | } 218 | 219 | .titlerow{ 220 | padding-left: 5px; 221 | } 222 | 223 | .indexbody{ 224 | margin-left: 10px; 225 | } 226 | 227 | li { 228 | margin: .5em 0 .5em 0; 229 | } 230 | 231 | ul { 232 | margin-left: 16px; 233 | } 234 | 235 | .checkbox{ 236 | background-color: #FFFFFF; 237 | border: none; 238 | } -------------------------------------------------------------------------------- /about.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | dublincoregenerator.com - About 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
dublincoregenerator.com - a better dublin core generator
15 | 23 |
 
24 |
25 |
26 |
27 |
About The Site
28 |
29 |

I starting developing this tool in the fall of 2010 while taking a course on metadata as part of my MLIS at St. Catherine University. My overall goal was to develop a tool for generating Dublin Core code that was easy to use, flexible with regards to adding and removing tags, and updated to the most recent Dublin Core standards. I also thought that maybe, just maybe, I could come up with something that looked a little prettier.

30 |

The nice folks at the Dublin Core Metadata Initiative allowed me to do a poster presentation about my tool at the DC-2011 conference. The extended abstract is available here. While there I met Dr. Jane Greenberg from the Metadata Research Center at UNC Chapel Hill. Her support for our vocabulary lookup functionality through the HIVE Project is greatly appreciated.

31 |

The tool itself is programmed using a dwindling amount of pure JavaScript and an ever-growing amount of the JQuery and JQuery UI frameworks and should work in any relatively modern browser. It will look somewhat prettier in Firefox/Chrome/Safari than it will in Internet Explorer.

32 |

All coding is my own unless otherwise noted in the source. When code written by others has been used, it has been made available without any ostensible restrictions on its use.

33 |

Interested in the code? This site is available under the GNU General Public License (v2). Check it out on GitHub.

34 |

All references to Dublin Core as well as the underlying schema and are the property of the Dublin Core Metadata Initiative. The use herein of Dublin Core schemas are done under the Creative Commons 3.0 Attribution license. Please don't sue me.

35 |
36 |
37 |   38 |
39 |
Contact Me
40 |
41 |

Electronic mail: nsteffel [at] gmail [dot] com

42 |

For occasional Twitter updates on this website: www.twitter.com/dublincoregen

43 |

For Twitter updates on me, the weather in Minneapolis, what I'm waiting in line for, etc.: www.twitter.com/nicksteffel

44 |
45 |
46 |
47 |   48 |
49 |
50 |

This site is available under the GNU General Public License (v2). Check it out on GitHub.

51 |
52 |
53 |
54 |
55 | 56 | -------------------------------------------------------------------------------- /css/dcstyle.css: -------------------------------------------------------------------------------- 1 | body{ 2 | font-family:Arial,sans-serif; 3 | } 4 | 5 | .container { 6 | width:960px; 7 | margin:auto; 8 | padding:0; 9 | } 10 | 11 | .header { 12 | width:800px; 13 | border: 2px solid #6B90D4; 14 | font-size:24px; 15 | text-align:center; 16 | -moz-border-radius: 10px 10px 0 0; 17 | -webkit-border-radius: 10px 10px 0 0; 18 | border-radius: 10px 10px 0 0; 19 | margin:0 auto; 20 | padding:5px; 21 | } 22 | 23 | .centerpage { 24 | width:960px; 25 | padding:0; 26 | } 27 | 28 | .leftpage { 29 | width:200px; 30 | float:left; 31 | padding:0; 32 | } 33 | 34 | .rightpage { 35 | width:740px; 36 | float:right; 37 | padding:0; 38 | } 39 | 40 | .leftbox { 41 | padding:0; 42 | } 43 | 44 | .centerbox { 45 | -moz-border-radius: 0 0 10px 10px; 46 | -webkit-border-radius: 0 0 10px 10px; 47 | border-radius: 0 0 10px 10px; 48 | padding:0; 49 | } 50 | 51 | .lefttext { 52 | margin-left:10px; 53 | } 54 | 55 | .rightbox { 56 | margin-bottom:25px; 57 | padding:0; 58 | zoom: 1; 59 | position: relative; 60 | } 61 | 62 | .lowerpage { 63 | width:750px; 64 | margin:0 auto; 65 | padding:0; 66 | } 67 | 68 | .lowerbox { 69 | border:1px solid #FFC440; 70 | -moz-border-radius:10px; 71 | -webkit-border-radius:10px; 72 | border-radius:10px; 73 | background-color:#FFF; 74 | padding:0; 75 | } 76 | 77 | .lowertext { 78 | font-size:10px; 79 | margin-left:10px; 80 | } 81 | 82 | .page { 83 | padding:20px 0 0; 84 | } 85 | 86 | .boxheader { 87 | background-color:#FFC440; 88 | padding:5px 5px 5px 10px; 89 | font-weight:700; 90 | -moz-border-radius: 10px 10px 0 0; 91 | -webkit-border-radius: 10px 10px 0 0; 92 | border-radius: 10px 10px 0 0; 93 | height:20px; 94 | } 95 | 96 | .boxtext { 97 | background-color:#FFF; 98 | border-left:1px solid #FFC440; 99 | border-right:1px solid #FFC440; 100 | border-bottom:1px solid #FFC440; 101 | -moz-border-radius: 0 0 10px 10px; 102 | -webkit-border-radius: 0 0 10px 10px; 103 | border-radius: 0 0 10px 10px; 104 | padding:10px; 105 | } 106 | 107 | .defaulttable { 108 | border:1px solid #06276F; 109 | margin:10px; 110 | -moz-border-radius:4px; 111 | -webkit-border-radius:4px; 112 | border-radius:4px; 113 | } 114 | 115 | .addremovebutton { 116 | text-decoration:none; 117 | font-family:monospace; 118 | } 119 | 120 | .superscript { 121 | vertical-align:super; 122 | text-decoration:none; 123 | font-size:12px; 124 | } 125 | 126 | body { 127 | background-color:#F5F5F5; 128 | } 129 | 130 | input { 131 | background:#EEE; 132 | color:#6F6F6F; 133 | border:solid 2px #D3D3D3; 134 | outline:none; 135 | } 136 | 137 | .divider { 138 | border-top:1px dashed silver; 139 | margin:10px; 140 | } 141 | 142 | .resourceheader { 143 | color:#000; 144 | text-decoration:underline; 145 | } 146 | 147 | .titlerow { 148 | padding-left:5px; 149 | } 150 | 151 | .indexbody { 152 | margin-left:24px; 153 | } 154 | 155 | .directionslist { 156 | margin: .5em; 157 | list-style-type:square; 158 | } 159 | 160 | .directionslist >li { 161 | margin-bottom:10px; 162 | } 163 | 164 | input:focus,input.focus,select:focus,select.focus,textarea:focus,textarea.focus { 165 | border:solid 2px #73A6FF; 166 | background:#EFF5FF; 167 | color:#000; 168 | outline:none; 169 | } 170 | 171 | select,textarea { 172 | background:#EEE; 173 | border:solid 2px #D3D3D3; 174 | outline:none; 175 | } 176 | 177 | a:link,a.link,a:visited,a.visited { 178 | text-decoration:none; 179 | color:#03406A; 180 | } 181 | 182 | a:hover,a.hover { 183 | text-decoration:underline; 184 | color:#6C8DD5; 185 | } 186 | 187 | a:active,a.active { 188 | text-decoration:none; 189 | } 190 | 191 | .checkbox{ 192 | background: #FFF; 193 | border: none; 194 | } 195 | 196 | #newmenu{ 197 | margin:0px; 198 | padding:1px; 199 | list-style:none; 200 | color:#000000; 201 | font-weight:700; 202 | line-height:15px; 203 | display:inline-block; 204 | float:left; 205 | width:808px; 206 | border:2px solid #6B90D4; 207 | background:#6B90D4; 208 | -moz-border-radius: 0 0 10px 10px; 209 | -webkit-border-radius: 0 0 10px 10px; 210 | border-radius: 0 0 10px 10px; 211 | margin-left: 73px; 212 | text-align:center; 213 | } 214 | 215 | #newmenu li { 216 | background:#6B90D4 none repeat scroll 0 0; 217 | display:inline; 218 | padding:0px 8px 0px 8px; 219 | } 220 | 221 | #newmenu a { 222 | color:#000000; 223 | text-decoration:none; 224 | } 225 | 226 | #newmenu li a:hover { 227 | color:#B0D730; 228 | } 229 | 230 | #outputopts { 231 | line-height: 150%; 232 | } 233 | 234 | tr textarea{ 235 | font-family: sans-serif; 236 | font-size: 14px; 237 | } 238 | 239 | #DCMIBoxBuilder label, #DCMIPointBuilder label, #DCMIPeriodBuilder label{ 240 | float:left; 241 | width:85px; 242 | text-align:right; 243 | margin-bottom: 10px; 244 | } 245 | 246 | #DCMIBoxBuilder input, #DCMIPointBuilder input, #DCMIPeriodBuilder input{ 247 | margin-left: 2px; 248 | margin-bottom: 10px; 249 | } 250 | 251 | .finderinput{ 252 | margin-bottom: 10px; 253 | } -------------------------------------------------------------------------------- /css/dcstyle_test.css: -------------------------------------------------------------------------------- 1 | .container { 2 | width: 800px; 3 | margin: auto; 4 | padding: 0; 5 | } 6 | 7 | .header{ 8 | width: 590px; 9 | border: 2px solid #6B90D4; 10 | margin: 0 auto; 11 | font-size: 24px; 12 | text-align: center; 13 | padding: 5px; 14 | -moz-border-radius-topright: 10px; 15 | -moz-border-radius-topleft: 10px; 16 | border-top-right-radius: 10px; 17 | border-top-left-radius: 10px; 18 | } 19 | 20 | .leftpage{ 21 | width: 150px; 22 | float: left; 23 | padding: 0; 24 | } 25 | 26 | .centerpage{ 27 | width: 800px; 28 | padding: 0; 29 | } 30 | 31 | .rightpage{ 32 | width: 600px; 33 | float: right; 34 | padding: 0; 35 | } 36 | 37 | .leftbox{ 38 | padding: 0; 39 | background-color:#FFFFFF; 40 | } 41 | 42 | .centerbox{ 43 | padding: 0; 44 | -moz-border-radius-bottomright: 10px; 45 | -moz-border-radius-bottomleft: 10px; 46 | border-bottom-right-radius: 10px; 47 | border-bottom-left-radius: 10px; 48 | } 49 | 50 | .lefttext{ 51 | margin-left: 10px; 52 | } 53 | 54 | .rightbox{ 55 | padding: 0; 56 | margin-bottom: 25px; 57 | background-color: #FFFFFF; 58 | } 59 | 60 | .lowerpage{ 61 | width: 750px; 62 | padding: 0; 63 | margin: 0 auto; 64 | } 65 | 66 | .lowerbox{ 67 | border: 1px solid #FFC440; 68 | padding: 0; 69 | } 70 | 71 | .page{ 72 | padding: 20px 0 0; 73 | } 74 | 75 | .boxheader{ 76 | background-color: #FFC440; 77 | padding-left: 10px; 78 | font-weight: bold; 79 | -moz-border-radius-topright: 10px; 80 | -moz-border-radius-topleft: 10px; 81 | border-top-right-radius: 10px; 82 | border-top-left-radius: 10px; 83 | } 84 | 85 | .boxtext{ 86 | background-color:#FFFFFF; 87 | padding: 5px; 88 | padding-top: 10px; 89 | border-left: 1px solid #FFC440; 90 | border-right: 1px solid #FFC440; 91 | border-bottom: 1px solid #FFC440; 92 | -moz-border-radius-bottomleft: 10px; 93 | -moz-border-radius-bottomright: 10px; 94 | border-bottom-right-radius: 10px; 95 | border-bottom-left-radius: 10px; 96 | } 97 | 98 | .activemenu{ 99 | background-color: #6B90D4; 100 | margin: 0px 5px 0px 5px; 101 | padding: 0; 102 | font-weight: bold; 103 | text-decoration: underline; 104 | color: #000000; 105 | } 106 | 107 | .activemenu a:link, .activemenu a:visited, .activemenu a:active, .activemnu a:hover{ 108 | background-color: #6B90D4; 109 | padding: 0; 110 | font-weight: bold; 111 | text-decoration: underline; 112 | color: #000000; 113 | } 114 | 115 | .inactivemenu{ 116 | background-color: #6B90D4; 117 | margin: 0px 5px 0px 5px; 118 | padding: 0; 119 | font-weight: bold; 120 | color: #26517C; 121 | } 122 | 123 | .inactivemenu a:link, .inactivemenu a:visited, .inactivemenu a:active{ 124 | background-color: #6B90D4; 125 | padding: 0; 126 | font-weight: bold; 127 | } 128 | 129 | .inactivemenu a:hover{ 130 | background-color: #6B90D4; 131 | padding: 0; 132 | font-weight: bold; 133 | text-decoration: underline; 134 | color: #000000; 135 | } 136 | 137 | .menu{ 138 | width: 600px; 139 | border: 2px solid #6B90D4; 140 | margin: 0 auto; 141 | background-color: #6B90D4; 142 | -moz-border-radius-bottomright: 10px; 143 | -moz-border-radius-bottomleft: 10px; 144 | border-bottom-right-radius: 10px; 145 | border-bottom-left-radius: 10px; 146 | } 147 | 148 | .defaulttable{ 149 | border: 1px solid #06276F; 150 | margin-left: 10px; 151 | margin-top: 10px; 152 | -moz-border-radius: 4px; 153 | border-radius: 4px; 154 | } 155 | 156 | .addremovebutton{ 157 | text-decoration: none; 158 | font-family: monospace; 159 | } 160 | 161 | .superscript{ 162 | vertical-align: super; 163 | text-decoration: none; 164 | font-size: 12px; 165 | } 166 | 167 | body{ 168 | background-color: #F5F5F5; 169 | } 170 | 171 | input{ 172 | background: #EEEEEE; 173 | color: #6F6F6F; 174 | border: solid 2px #D3D3D3; 175 | outline: none; 176 | } 177 | 178 | input:focus, input.focus{ 179 | border: solid 2px #73A6FF; 180 | background: #EFF5FF; 181 | color: #000000; 182 | outline: none; 183 | } 184 | 185 | select{ 186 | background: #EEEEEE; 187 | border: solid 2px #D3D3D3; 188 | outline: none; 189 | } 190 | 191 | select:focus, select.focus{ 192 | border: solid 2px #73A6FF; 193 | background: #EFF5FF; 194 | color: #000; 195 | outline: none; 196 | } 197 | 198 | textarea{ 199 | background: #EEEEEE; 200 | border: solid 2px #D3D3D3; 201 | outline: none; 202 | } 203 | 204 | textarea:focus, textarea.focus{ 205 | border: solid 2px #73A6FF; 206 | background: #EFF5FF; 207 | color: #000000; 208 | outline: none; 209 | } 210 | 211 | a:link{ 212 | text-decoration: none; 213 | color: #03406A; 214 | } 215 | a:visited{ 216 | text-decoration: none; 217 | color: #03406A; 218 | } 219 | a:hover{ 220 | text-decoration: underline; 221 | color: #6C8DD5; 222 | } 223 | a:active{ 224 | text-decoration: none; 225 | } 226 | .divider{ 227 | border-top: 1px dashed #C0C0C0; 228 | margin: 10px; 229 | } 230 | 231 | .resourceheader{ 232 | color:#000000; 233 | text-decoration:underline; 234 | } 235 | 236 | .titlerow{ 237 | padding-left: 5px; 238 | } 239 | 240 | .indexbody{ 241 | margin-left: 24px; 242 | } 243 | 244 | li { 245 | margin: .5em 0.5em 0; 246 | } 247 | 248 | .visible{ 249 | display: ; 250 | } 251 | 252 | .invisible{ 253 | display: none; 254 | } 255 | 256 | .twitterbutton a { 257 | display: block; 258 | padding: 2px 5px 2px 20px; 259 | background: url('/img/twitter.ico') 1px center no-repeat; 260 | margin-bottom: 5px; 261 | margin-left: 5px; 262 | } -------------------------------------------------------------------------------- /contribute.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | dublincoregenerator.com - Contribute 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
dublincoregenerator.com - a better dublin core generator
15 | 23 |
 
24 |
25 |
26 |
27 |
Contribute
28 |
29 |

If you've come to this page you must find my tool somewhat useful. Yay!

30 | 31 |

The easiest way for you to contribute is to tell your friends and colleagues about this tool. Then they'll tell two friends about it, and they'll tell two friends about it...that's like ten people right there.

32 | 33 |

If you're technically savvy, the code is available under the GNU General Public License (v2). Check it out on GitHub. Let's make this thing even better.

34 | 35 |

Another easy way to contribute is to use the tool and send me some feedback. Did something not work? Do you wish it could do something it currently doesn't? Shoot me an email (nsteffel [at] gmail [dot] com) and let me know.

36 | 37 |

If you'd like to financially contribute to the ongoing costs of the tool's hosting, maintenance and development, you can donate funds via PayPal using the following link:

38 | 39 |
40 | 41 | 42 | 43 | 44 |
45 | 46 |

If you don't trust sending your credit card number over the interwebs, drop me a line if you're ever in Minneapolis and you can buy me a beer.

47 |
48 |
49 |
50 |   51 |
52 |
53 |

This site is available under the GNU General Public License (v2). Check it out on GitHub.

54 |
55 |
56 |
57 |
58 | 59 | -------------------------------------------------------------------------------- /js/generator_zc.js: -------------------------------------------------------------------------------- 1 | function generateCode(){ 2 | //Each block of generated code is a string which starts out empty. 3 | 4 | var generatedXMLCode = String(""); 5 | 6 | var results = $("#results"); 7 | 8 | //Each element is an array, we use JQuery to find every input row starting with the right name (titleRow, creatorRow, etc.) 9 | 10 | var title = []; 11 | title = $('input[name="titleRow"]'); 12 | 13 | var creator = []; 14 | creator = $('input[name="creatorRow"]'); 15 | 16 | var subject = []; 17 | subject = $('input[name="subjectRow"]'); 18 | 19 | var genre = []; 20 | genre = $('input[name="genreRow"]'); 21 | 22 | var description = []; 23 | description = $('textarea[name="descriptionRow"]'); 24 | 25 | var abstract = []; 26 | abstract = $('textarea[name="abstractRow"]'); 27 | 28 | var contents = []; 29 | contents = $('textarea[name="contentsRow"]'); 30 | 31 | var publisher = []; 32 | publisher = $('input[name="publisherRow"]'); 33 | 34 | var date = []; 35 | date = $('input[name="dateRow"]'); 36 | 37 | var extent = []; 38 | extent = $('input[name="extentRow"]'); 39 | 40 | var dimensions = []; 41 | dimensions = $('input[name="dimensionsRow"]'); 42 | 43 | var medium = []; 44 | medium = $('input[name="mediumRow"]'); 45 | 46 | var identifier = []; 47 | identifier = $('input[name="identifierRow"]'); 48 | 49 | var language = []; 50 | language = $('input[name="languageRow"]'); 51 | 52 | var collection = []; 53 | collection = $('input[name="collectionRow"]'); 54 | 55 | var volume = []; 56 | volume = $('input[name="volumeRow"]'); 57 | 58 | var issue = []; 59 | issue = $('input[name="issueRow"]'); 60 | 61 | var coverage = []; 62 | coverage = $('input[name="coverageRow"]'); 63 | 64 | var rights = []; 65 | rights = $('input[name="rightsRow"]'); 66 | 67 | generatedXMLCode +="" + '\n' + '\n'; 68 | 69 | //One of these per element type -- run each element from the array we created through, get the correct text 70 | //and append it to the string for each output language. Does a special test for things beginning with http 71 | //or www. to pick a instead of a for the HTML and XHTML output. 72 | for(i=0; i<=title.length-1; i++) { 73 | if(title[i].value !== ""){ 74 | generatedXMLCode += "" + title[i].value + "" + '\n'; 75 | } 76 | } 77 | 78 | for(i=0; i<=creator.length-1; i++) { 79 | if(creator[i].value !== ""){ 80 | generatedXMLCode += "" + creator[i].value + "" + '\n'; 81 | } 82 | } 83 | 84 | for(i=0; i<=subject.length-1; i++) { 85 | if(subject[i].value !== ""){ 86 | generatedXMLCode += "" + subject[i].value + "" + '\n'; 87 | } 88 | } 89 | 90 | for(i=0; i<=genre.length-1; i++) { 91 | if(genre[i].value !== ""){ 92 | generatedXMLCode += "" + genre[i].value + "" + '\n'; 93 | } 94 | } 95 | 96 | for(i=0; i<=description.length-1; i++) { 97 | if(description[i].value !== ""){ 98 | generatedXMLCode += "" + description[i].value + "" + '\n'; 99 | } 100 | } 101 | 102 | for(i=0; i<=abstract.length-1; i++) { 103 | if(abstract[i].value !== ""){ 104 | generatedXMLCode += "" + abstract[i].value + "" + '\n'; 105 | } 106 | } 107 | 108 | for(i=0; i<=contents.length-1; i++) { 109 | if(contents[i].value !== ""){ 110 | generatedXMLCode += "" + contents[i].value + "" + '\n'; 111 | } 112 | } 113 | 114 | for(i=0; i<=publisher.length-1; i++) { 115 | if(publisher[i].value !== ""){ 116 | generatedXMLCode += "" + publisher[i].value + "" + '\n'; 117 | } 118 | } 119 | 120 | for(i=0; i<=date.length-1; i++) { 121 | if(date[i].value !== ""){ 122 | generatedXMLCode += "" + date[i].value + "" + '\n'; 123 | } 124 | } 125 | 126 | for(i=0; i<=extent.length-1; i++) { 127 | if(extent[i].value !== ""){ 128 | generatedXMLCode += "" + extent[i].value + "" + '\n'; 129 | } 130 | } 131 | 132 | for(i=0; i<=dimensions.length-1; i++) { 133 | if(dimensions[i].value !== ""){ 134 | generatedXMLCode += "" + dimensions[i].value + "" + '\n'; 135 | } 136 | } 137 | 138 | for(i=0; i<=medium.length-1; i++) { 139 | if(medium[i].value !== ""){ 140 | generatedXMLCode += "" + medium[i].value + "" + '\n'; 141 | } 142 | } 143 | 144 | for(i=0; i<=identifier.length-1; i++) { 145 | if(identifier[i].value !== ""){ 146 | generatedXMLCode += "" + identifier[i].value + "" + '\n'; 147 | } 148 | } 149 | 150 | for(i=0; i<=language.length-1; i++) { 151 | if(language[i].value !== ""){ 152 | generatedXMLCode += "" + language[i].value + "" + '\n'; 153 | } 154 | } 155 | 156 | for(i=0; i<=collection.length-1; i++) { 157 | if(collection[i].value !== ""){ 158 | generatedXMLCode += "" + collection[i].value + "" + '\n'; 159 | } 160 | } 161 | 162 | for(i=0; i<=volume.length-1; i++) { 163 | if(volume[i].value !== ""){ 164 | generatedXMLCode += "" + volume[i].value + "" + '\n'; 165 | } 166 | } 167 | 168 | for(i=0; i<=issue.length-1; i++) { 169 | if(issue[i].value !== ""){ 170 | generatedXMLCode += "" + issue[i].value + "" + '\n'; 171 | } 172 | } 173 | 174 | for(i=0; i<=coverage.length-1; i++) { 175 | if(coverage[i].value !== ""){ 176 | generatedXMLCode += "" + coverage[i].value + "" + '\n'; 177 | } 178 | } 179 | 180 | for(i=0; i<=rights.length-1; i++) { 181 | if(rights[i].value !== ""){ 182 | generatedXMLCode += "" + rights[i].value + "" + '\n'; 183 | } 184 | } 185 | 186 | $('#xmlresults').val(generatedXMLCode); 187 | 188 | $('#generatebutton').blur(); 189 | 190 | } -------------------------------------------------------------------------------- /js/vocabsources.js: -------------------------------------------------------------------------------- 1 | var dcmiTypes = [ 2 | "Collection", 3 | "Dataset", 4 | "Event", 5 | "Image", 6 | "InteractiveResource", 7 | "MovingImage", 8 | "PhysicalObject", 9 | "Service", 10 | "Software", 11 | "Sound", 12 | "StillImage", 13 | "Text" 14 | ]; 15 | 16 | $(function() { 17 | $( "#DCMITypeFinder" ).autocomplete({ 18 | source: dcmiTypes 19 | }); 20 | $( "#findDCMIType" ).dialog({ 21 | autoOpen: false, 22 | width: 400 23 | }); 24 | 25 | $( "#findISO3166" ).dialog({ 26 | autoOpen: false, 27 | width: 400 28 | }); 29 | 30 | $( "#openDCMIType" ).click(function() { 31 | $( "#findDCMIType" ).dialog( "open" ); 32 | return false; 33 | }); 34 | $( "#IMTTypeFinder" ).autocomplete({ 35 | source: "/php/imtlookup.php", 36 | minLength: 2, 37 | select: function(event, ui) { 38 | $('#IMTTypeFinder').val(ui.item.id); 39 | } 40 | }); 41 | 42 | $( "#ISO3166Finder" ).autocomplete({ 43 | source: "/php/iso3166lookup.php", 44 | minLength: 2, 45 | select: function(event, ui) { 46 | $('#ISO3166Finder').val(ui.item.id); 47 | } 48 | }); 49 | 50 | $( "#openISO3166" ).click(function() { 51 | $( "#findISO3166" ).dialog( "open" ); 52 | return false; 53 | }); 54 | 55 | $( "#findIMTType" ).dialog({ 56 | autoOpen: false, 57 | width: 400 58 | }); 59 | $( "#openIMTType" ).click(function() { 60 | $( "#findIMTType" ).dialog( "open" ); 61 | return false; 62 | }); 63 | $( "#createDCMIPeriod" ).dialog({ 64 | autoOpen: false, 65 | width: 400 66 | }); 67 | $( "#openDCMIPeriod" ).click(function() { 68 | $( "#createDCMIPeriod" ).dialog( "open" ); 69 | return false; 70 | }); 71 | 72 | $( "#openDCMIPeriod2" ).click(function() { 73 | $( "#createDCMIPeriod" ).dialog( "open" ); 74 | return false; 75 | }); 76 | 77 | $( "#createDCMIBox" ).dialog({ 78 | autoOpen: false, 79 | width: 400 80 | }); 81 | 82 | $( "#createDCMIPoint" ).dialog({ 83 | autoOpen: false, 84 | width: 400 85 | }); 86 | 87 | $( "#openDCMIPoint" ).click(function() { 88 | $( "#createDCMIPoint" ).dialog( "open" ); 89 | return false; 90 | }); 91 | 92 | $( "#createW3CDTF").dialog({ 93 | autoOpen: false, 94 | width: 400 95 | }); 96 | 97 | $( "#openW3CTDF" ).click(function() { 98 | $( "#createW3CDTF" ).dialog( "open" ); 99 | return false; 100 | }); 101 | 102 | $( "#openW3CTDF2" ).click(function() { 103 | $( "#createW3CDTF" ).dialog( "open" ); 104 | return false; 105 | }); 106 | 107 | $( "#openDCMIBox" ).click(function() { 108 | $( "#createDCMIBox" ).dialog( "open" ); 109 | return false; 110 | }); 111 | 112 | $( "#findISO6392").dialog({ 113 | autoOpen: false, 114 | width: 400 115 | }); 116 | 117 | $( "#openISO6392" ).click(function() { 118 | $( "#findISO6392" ).dialog( "open" ); 119 | return false; 120 | }); 121 | 122 | $( "#ISO6392Finder" ).autocomplete({ 123 | source: "/php/iso6392lookup.php", 124 | minLength: 2, 125 | select: function(event, ui) { 126 | $('#ISO6392Finder').val(ui.item.id); 127 | } 128 | }); 129 | 130 | $( "#findISO6393").dialog({ 131 | autoOpen: false, 132 | width: 400 133 | }); 134 | 135 | $( "#openISO6393" ).click(function() { 136 | $( "#findISO6393" ).dialog( "open" ); 137 | return false; 138 | }); 139 | $( "#ISO6393Finder" ).autocomplete({ 140 | source: "/php/iso6393lookup.php", 141 | minLength: 2, 142 | select: function(event, ui) { 143 | $('#ISO6393Finder').val(ui.item.id); 144 | } 145 | }); 146 | $( "#findAGROVOC").dialog({ 147 | autoOpen: false, 148 | width: 400 149 | }); 150 | $( "#openAGROVOC" ).click(function() { 151 | $( "#findAGROVOC" ).dialog( "open" ); 152 | return false; 153 | }); 154 | $( "#findITIS").dialog({ 155 | autoOpen: false, 156 | width: 400 157 | }); 158 | $( "#openITIS" ).click(function() { 159 | $( "#findITIS" ).dialog( "open" ); 160 | return false; 161 | }); 162 | $( "#findLCSH").dialog({ 163 | autoOpen: false, 164 | width: 400 165 | }); 166 | $( "#openLCSH" ).click(function() { 167 | $( "#findLCSH" ).dialog( "open" ); 168 | return false; 169 | }); 170 | $( "#findMESH").dialog({ 171 | autoOpen: false, 172 | width: 400 173 | }); 174 | $( "#openMESH" ).click(function() { 175 | $( "#findMESH" ).dialog( "open" ); 176 | return false; 177 | }); 178 | $( "#findTGN").dialog({ 179 | autoOpen: false, 180 | width: 400 181 | }); 182 | $( "#openTGN" ).click(function() { 183 | $( "#findTGN" ).dialog( "open" ); 184 | return false; 185 | }); 186 | $( "#openTGN2" ).click(function() { 187 | $( "#findTGN" ).dialog( "open" ); 188 | return false; 189 | }); 190 | $( "input:button, input:submit").button(); 191 | 192 | function log( message ) { 193 | $( "
" ).text( message ).prependTo( "#log" ); 194 | $( "#log" ).attr( "scrollTop", 0 ); 195 | } 196 | function __highlight(s, t) { 197 | var matcher = new RegExp("("+$.ui.autocomplete.escapeRegex(t)+")", "ig" ); 198 | return s.replace(matcher, "$1"); 199 | } 200 | $( "#AGROVOCfinder" ).autocomplete({ 201 | source: function(request, response) { 202 | $.ajax({ 203 | url : 'http://hive.cci.drexel.edu:8080/ac?cv=agrovoc&', 204 | dataType: 'jsonp', 205 | data: { term: request.term }, 206 | success: function(data) { 207 | response($.map(data, function(item) { 208 | return {label: __highlight(item.label, request.term), 209 | value: item.label, 210 | id: item.id}; 211 | })); 212 | } 213 | }); 214 | }, 215 | select: function( event, ui ) { 216 | log( ui.item ? 217 | ui.item.value : 218 | "Nothing selected, input was " + this.value ); 219 | }, 220 | delay: 100, 221 | minLength: 2 222 | }) 223 | .data( "autocomplete" )._renderItem = function( ul, item ) { 224 | return $( "
  • " ) 225 | .data( "item.autocomplete", item ) 226 | .append( $( "" ).html(item.label) ) 227 | .appendTo( ul ); 228 | }; 229 | 230 | function log( message ) { 231 | $( "
    " ).text( message ).prependTo( "#log" ); 232 | $( "#log" ).attr( "scrollTop", 0 ); 233 | } 234 | function __highlight(s, t) { 235 | var matcher = new RegExp("("+$.ui.autocomplete.escapeRegex(t)+")", "ig" ); 236 | return s.replace(matcher, "$1"); 237 | } 238 | $( "#ITISfinder" ).autocomplete({ 239 | source: function(request, response) { 240 | $.ajax({ 241 | url : 'http://hive.cci.drexel.edu:8080/ac?cv=itis&', 242 | dataType: 'jsonp', 243 | data: { term: request.term }, 244 | success: function(data) { 245 | response($.map(data, function(item) { 246 | return {label: __highlight(item.label, request.term), 247 | value: item.label, 248 | id: item.id}; 249 | })); 250 | } 251 | }); 252 | }, 253 | select: function( event, ui ) { 254 | log( ui.item ? 255 | ui.item.value : 256 | "Nothing selected, input was " + this.value ); 257 | }, 258 | delay: 100, 259 | minLength: 2 260 | }) 261 | .data( "autocomplete" )._renderItem = function( ul, item ) { 262 | return $( "
  • " ) 263 | .data( "item.autocomplete", item ) 264 | .append( $( "" ).html(item.label) ) 265 | .appendTo( ul ); 266 | }; 267 | 268 | function log( message ) { 269 | $( "
    " ).text( message ).prependTo( "#log" ); 270 | $( "#log" ).attr( "scrollTop", 0 ); 271 | } 272 | function __highlight(s, t) { 273 | var matcher = new RegExp("("+$.ui.autocomplete.escapeRegex(t)+")", "ig" ); 274 | return s.replace(matcher, "$1"); 275 | } 276 | $( "#LCSHfinder" ).autocomplete({ 277 | source: function(request, response) { 278 | $.ajax({ 279 | url : 'http://hive.cci.drexel.edu:8080/ac?cv=lcsh&', 280 | dataType: 'jsonp', 281 | data: { term: request.term }, 282 | success: function(data) { 283 | response($.map(data, function(item) { 284 | return {label: __highlight(item.label, request.term), 285 | value: item.label, 286 | id: item.id}; 287 | })); 288 | } 289 | }); 290 | }, 291 | select: function( event, ui ) { 292 | log( ui.item ? 293 | ui.item.value : 294 | "Nothing selected, input was " + this.value ); 295 | }, 296 | delay: 100, 297 | minLength: 2 298 | }) 299 | .data( "autocomplete" )._renderItem = function( ul, item ) { 300 | return $( "
  • " ) 301 | .data( "item.autocomplete", item ) 302 | .append( $( "" ).html(item.label) ) 303 | .appendTo( ul ); 304 | }; 305 | 306 | function log( message ) { 307 | $( "
    " ).text( message ).prependTo( "#log" ); 308 | $( "#log" ).attr( "scrollTop", 0 ); 309 | } 310 | function __highlight(s, t) { 311 | var matcher = new RegExp("("+$.ui.autocomplete.escapeRegex(t)+")", "ig" ); 312 | return s.replace(matcher, "$1"); 313 | } 314 | $( "#MESHfinder" ).autocomplete({ 315 | source: function(request, response) { 316 | $.ajax({ 317 | url : 'http://hive.cci.drexel.edu:8080/ac?cv=mesh&', 318 | dataType: 'jsonp', 319 | data: { term: request.term }, 320 | success: function(data) { 321 | response($.map(data, function(item) { 322 | return {label: __highlight(item.label, request.term), 323 | value: item.label, 324 | id: item.id}; 325 | })); 326 | } 327 | }); 328 | }, 329 | select: function( event, ui ) { 330 | log( ui.item ? 331 | ui.item.value : 332 | "Nothing selected, input was " + this.value ); 333 | }, 334 | delay: 100, 335 | minLength: 2 336 | }) 337 | .data( "autocomplete" )._renderItem = function( ul, item ) { 338 | return $( "
  • " ) 339 | .data( "item.autocomplete", item ) 340 | .append( $( "" ).html(item.label) ) 341 | .appendTo( ul ); 342 | }; 343 | 344 | function log( message ) { 345 | $( "
    " ).text( message ).prependTo( "#log" ); 346 | $( "#log" ).attr( "scrollTop", 0 ); 347 | } 348 | function __highlight(s, t) { 349 | var matcher = new RegExp("("+$.ui.autocomplete.escapeRegex(t)+")", "ig" ); 350 | return s.replace(matcher, "$1"); 351 | } 352 | $( "#TGNfinder" ).autocomplete({ 353 | source: function(request, response) { 354 | $.ajax({ 355 | url : 'http://hive.cci.drexel.edu:8080/ac?cv=tgn&', 356 | dataType: 'jsonp', 357 | data: { term: request.term }, 358 | success: function(data) { 359 | response($.map(data, function(item) { 360 | return {label: __highlight(item.label, request.term), 361 | value: item.label, 362 | id: item.id}; 363 | })); 364 | } 365 | }); 366 | }, 367 | select: function( event, ui ) { 368 | log( ui.item ? 369 | ui.item.value : 370 | "Nothing selected, input was " + this.value ); 371 | }, 372 | delay: 100, 373 | minLength: 2 374 | }) 375 | .data( "autocomplete" )._renderItem = function( ul, item ) { 376 | return $( "
  • " ) 377 | .data( "item.autocomplete", item ) 378 | .append( $( "" ).html(item.label) ) 379 | .appendTo( ul ); 380 | }; 381 | }); -------------------------------------------------------------------------------- /generator_zc.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | The xZINECOREx Generator! 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 22 | 23 | 24 |
    25 |
    dublincoregenerator.com - a better dublin core generator
    26 | 34 |
     
    35 |
    36 |
    37 |
    38 |
    Directions
    39 |
    40 |
      41 |
    • Fill in the fields below and click on "Generate Code!" to convert your input into fully formed xZINECOREx metadata code. The code will be output in XML.
    • 42 |
    • If you need additional copies of a given field, click the plus sign to the upper-right of the tag's name to add an additional copy of it.
    • 43 |
    • Click the minus sign to delete any unneeded additional copies -- don't worry about removing tags you don't intend to use, the system will ignore any empty tags (and you can't delete the first row anyway).
    • 44 |
    • If you're unfamiliar with xZINECOREx, you may want to consult this webpage first.
    • 45 |
    46 |
    47 |
    48 |   49 |
    50 |
    Input
    51 |
    52 |   53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 |
    Title[+][-]
    61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 |
    Creator[+][-]
    70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |
    Subject[+][-]
    79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 |
    Genre[+][-]
    88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 |
    Description[+][-]
    97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 |
    Abstract[+][-]
    106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 |
    Table of Contents[+][-]
    115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 |
    Publisher[+][-]
    124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 |
    Date Created[+][-]
    133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 |
    Extent[+][-]
    142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 |
    Dimensions[+][-]
    151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 |
    Medium[+][-]
    160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 |
    Identifier[+][-]
    169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 |
    Language[+][-]
    178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 |
    Collection[+][-]
    187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 |
    Volume[+][-]
    196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 |
    Issue[+][-]
    205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 |
    Place of Publication[+][-]
    214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 |
    Rights Statement[+][-]
    223 |
    224 |
    225 |       226 |
    227 |
    228 |
    229 |
    230 |
    Output
    231 |
    232 | 233 |

    234 | 235 |
    236 |
    237 |
    238 |
    239 |
    240 |

    This site is available under the GNU General Public License (v2). Check it out on GitHub.

    241 |
    242 |
    243 |
    244 |
    245 |
    246 | 247 | -------------------------------------------------------------------------------- /generator_nq.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | The Simple Dublin Core Generator! 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 22 | 23 | 24 |
    25 |
    dublincoregenerator.com - a better dublin core generator
    26 | 34 |
     
    35 |
    36 |
    37 |
    38 |
    Directions
    39 |
    40 |
      41 |
    • Fill in the fields below and click on "Generate Code!" to convert your input into fully formed Dublin Core metadata code. Additional options for the format of the output code are available below.
    • 42 |
    • If you need additional copies of a given field, click the plus sign to the upper-right of the tag's name to add an additional copy of it.
    • 43 |
    • Click the minus sign to delete any unneeded additional copies -- don't worry about removing tags you don't intend to use, the system will ignore any empty tags (and you can't delete the first row anyway).
    • 44 |
    • If you are unsure how a specific tag works, you can click the question mark next to the tag's name to see the tag's entry in Diane Hilmann's wonderful guide "Using Dublin Core -- The Elements."
    • 45 |
    • If you would like to use encoding schemes and the more advanced qualified elements of Dublin Core metadata, use the Advanced Generator located here.
    • 46 |
    47 |
    48 |
    49 |   50 |
    51 |
    Input
    52 |
    53 |   54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 |
    Title?[+][-]
    62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 |
    Creator?[+][-]
    71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 |
    Subject?[+][-]
    80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 |
    Description?[+][-]
    89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 |
    Publisher?[+][-]
    98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 |
    Contributor?[+][-]
    107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 |
    Date?[+][-]
    116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 |
    Type?[+][-]
    125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 |
    Format?[+][-]
    134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 |
    Identifier?[+][-]
    143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 |
    Source?[+][-]
    152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 |
    Language?[+][-]
    161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 |
    Relation?[+][-]
    170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 |
    Coverage?[+][-]
    179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 |
    Rights?[+][-]
    188 |
    189 |
    190 |
    191 |
     
    192 |
    193 |
    Output Options
    194 |
    195 | 196 | Display output as:
    197 |
    198 |
    199 |
    200 |
    201 |
    202 |
    203 |
    204 | 211 | 219 |
    220 |       221 |
    222 |
    223 |
    224 |
    225 |
    Output
    226 |
    227 | 228 | 229 | 230 |

    231 | 232 |
    233 |
    234 |
    235 |
    236 |
    237 |

    This site is available under the GNU General Public License (v2). Check it out on GitHub.

    238 |
    239 |
    240 |
    241 |
    242 |
    243 | 244 | -------------------------------------------------------------------------------- /js/generator_nq.js: -------------------------------------------------------------------------------- 1 | function generateCode() 2 | { 3 | //Each block of generated code is a string which starts out empty. 4 | 5 | var generatedXMLCode = String(""); 6 | var generatedHTMLCode = String(""); 7 | var generatedXHTMLCode = String(""); 8 | 9 | var results = $("#results"); 10 | 11 | //Each element is an array, we use JQuery to find every input row starting with the right name (titleRow, creatorRow, etc.) 12 | 13 | var title = []; 14 | title = $('input[name="titleRow"]'); 15 | 16 | var creator = []; 17 | creator = $('input[name="creatorRow"]'); 18 | 19 | var subject = []; 20 | subject = $('input[name="subjectRow"]'); 21 | 22 | var description = []; 23 | description = $('textarea[name="descriptionRow"]'); 24 | 25 | var publisher = []; 26 | publisher = $('input[name="publisherRow"]'); 27 | 28 | var contributor = []; 29 | contributor = $('input[name="contributorRow"]'); 30 | 31 | var date = []; 32 | date = $('input[name="dateRow"]'); 33 | 34 | var type = []; 35 | type = $('input[name="typeRow"]'); 36 | 37 | var format = []; 38 | format = $('input[name="formatRow"]'); 39 | 40 | var identifier = []; 41 | identifier = $('input[name="identifierRow"]'); 42 | 43 | var source = []; 44 | source = $('input[name="sourceRow"]'); 45 | 46 | var language = []; 47 | language = $('input[name="languageRow"]'); 48 | 49 | var relation = []; 50 | relation = $('input[name="relationRow"]'); 51 | 52 | var coverage = []; 53 | coverage = $('input[name="coverageRow"]'); 54 | 55 | var rights = []; 56 | rights = $('input[name="rightsRow"]'); 57 | 58 | //Additional output options 59 | var adddeclaration = $("#adddeclaration"); 60 | var addroot = $("#addroot"); 61 | var adddc = $("#adddc"); 62 | var addhead = $("#addhead"); 63 | var addtitle = $("#addtitle"); 64 | var addlink = $("#addlink"); 65 | var adddeclarationhtml = $("#adddeclarationhtml"); 66 | var adddeclarationxhtml = $("#adddeclarationxhtml"); 67 | var addheadx = $("#addheadx"); 68 | var addtitlex = $("#addtitlex"); 69 | var addlinkx = $("#addlinkx"); 70 | 71 | //Checking and setting the XML options// 72 | if(adddeclaration.attr('checked')){ 73 | generatedXMLCode +="" + '\n' + '\n'; 74 | } 75 | 76 | if(addroot.attr('checked')){ 77 | var rootname = $('#rootname').val(); 78 | generatedXMLCode +="<" + rootname + '\n' + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\""; 79 | } 80 | 81 | if((addroot.attr('checked')) !== (adddc.attr('checked'))){ 82 | generatedXMLCode +=">" + '\n'; 83 | } 84 | 85 | if(adddc.attr('checked')){ 86 | generatedXMLCode += '\n' + "xmlns:dc=\"http://purl.org/dc/elements/1.1/\""; 87 | } 88 | 89 | if(adddc.attr('checked')){ 90 | generatedXMLCode +=">" + '\n'; 91 | } 92 | 93 | if((adddeclaration.attr('checked')) | (addroot.attr('checked')) | (adddc.attr('checked'))){ 94 | generatedXMLCode +='\n'; 95 | } 96 | 97 | //Checking and setting HTML options// 98 | if(adddeclarationhtml.attr('checked')){ 99 | generatedHTMLCode +="" + '\n' + "" + '\n'; 100 | } 101 | 102 | if(addhead.attr('checked')){ 103 | generatedHTMLCode +="" + '\n'; 104 | } 105 | 106 | if(addtitle.attr('checked')){ 107 | var titlename = document.getElementById('titlename'); 108 | generatedHTMLCode +="" + titlename.value + "" + '\n'; 109 | } 110 | 111 | if(addlink.attr('checked')){ 112 | generatedHTMLCode +="" + '\n'; 113 | } 114 | 115 | //Checking and setting XHTML options// 116 | if(adddeclarationxhtml.attr('checked')){ 117 | generatedXHTMLCode +="" + '\n' + "" + '\n' + "" + '\n'; 118 | } 119 | 120 | if(addheadx.attr('checked')){ 121 | generatedXHTMLCode +="" + '\n'; 122 | } 123 | 124 | if(addtitlex.attr('checked')){ 125 | var titlenamex = document.getElementById('titlenamex'); 126 | generatedXHTMLCode +="" + titlenamex.value + "" + '\n'; 127 | } 128 | 129 | if(addlinkx.attr('checked')){ 130 | generatedXHTMLCode +="" + '\n'; 131 | } 132 | 133 | //One of these per element type -- run each element from the array we created through, get the correct text 134 | //and append it to the string for each output language. Does a special test for things beginning with http 135 | //or www. to pick a instead of a for the HTML and XHTML output. 136 | for(i=0; i<=title.length-1; i++) { 137 | if((title[i].value.indexOf("http://") > -1) || (title[i].value.indexOf("www.") > -1)){ 138 | generatedXMLCode += "" + title[i].value + "" + '\n'; 139 | generatedHTMLCode +="" + '\n'; 140 | generatedXHTMLCode +="" + '\n'; 141 | } 142 | else if(title[i].value !== ""){ 143 | generatedXMLCode += "" + title[i].value + "" + '\n'; 144 | generatedHTMLCode +="" + '\n'; 145 | generatedXHTMLCode +="" + '\n'; 146 | } 147 | } 148 | 149 | for(i=0; i<=creator.length-1; i++) { 150 | if((creator[i].value.indexOf("http://") > -1) || (creator[i].value.indexOf("www.") > -1)){ 151 | generatedXMLCode += "" + creator[i].value + "" + '\n'; 152 | generatedHTMLCode += "" + '\n'; 153 | generatedXHTMLCode += "" + '\n'; 154 | } 155 | else if(creator[i].value !== ""){ 156 | generatedXMLCode += "" + creator[i].value + "" + '\n'; 157 | generatedHTMLCode += "" + '\n'; 158 | generatedXHTMLCode += "" + '\n'; 159 | } 160 | } 161 | 162 | for(i=0; i<=subject.length-1; i++) { 163 | if((subject[i].value.indexOf("http://") > -1) || (subject[i].value.indexOf("www.") > -1)){ 164 | generatedXMLCode += "" + subject[i].value + "" + '\n'; 165 | generatedHTMLCode +="" + '\n'; 166 | generatedXHTMLCode +="" + '\n'; 167 | } 168 | else if(subject[i].value !== ""){ 169 | generatedXMLCode += "" + subject[i].value + "" + '\n'; 170 | generatedHTMLCode +="" + '\n'; 171 | generatedXHTMLCode +="" + '\n'; 172 | } 173 | } 174 | 175 | for(i=0; i<=description.length-1; i++) { 176 | if((description[i].value.indexOf("http://") > -1) || (description[i].value.indexOf("www.") > -1)){ 177 | generatedXMLCode += "" + description[i].value + "" + '\n'; 178 | generatedHTMLCode +="" + '\n'; 179 | generatedXHTMLCode +="" + '\n'; 180 | } 181 | else if(description[i].value !== ""){ 182 | generatedXMLCode += "" + description[i].value + "" + '\n'; 183 | generatedHTMLCode +="" + '\n'; 184 | generatedXHTMLCode +="" + '\n'; 185 | } 186 | } 187 | 188 | for(i=0; i<=publisher.length-1; i++) { 189 | if((publisher[i].value.indexOf("http://") > -1) || (publisher[i].value.indexOf("www.") > -1)){ 190 | generatedXMLCode += "" + publisher[i].value + "" + '\n'; 191 | generatedHTMLCode +="" + '\n'; 192 | generatedXHTMLCode +="" + '\n'; 193 | } 194 | else if(publisher[i].value !== ""){ 195 | generatedXMLCode += "" + publisher[i].value + "" + '\n'; 196 | generatedHTMLCode +="" + '\n'; 197 | generatedXHTMLCode +="" + '\n'; 198 | } 199 | } 200 | 201 | for(i=0; i<=contributor.length-1; i++) { 202 | if((contributor[i].value.indexOf("http://") > -1) || (contributor[i].value.indexOf("www.") > -1)){ 203 | generatedXMLCode += "" + contributor[i].value + "" + '\n'; 204 | generatedHTMLCode +="" + '\n'; 205 | generatedXHTMLCode +="" + '\n'; 206 | } 207 | else if(contributor[i].value !== ""){ 208 | generatedXMLCode += "" + contributor[i].value + "" + '\n'; 209 | generatedHTMLCode +="" + '\n'; 210 | generatedXHTMLCode +="" + '\n'; 211 | } 212 | } 213 | 214 | for(i=0; i<=date.length-1; i++) { 215 | if((date[i].value.indexOf("http://") > -1) || (date[i].value.indexOf("www.") > -1)){ 216 | generatedXMLCode += "" + date[i].value + "" + '\n'; 217 | generatedHTMLCode +="" + '\n'; 218 | generatedXHTMLCode +="" + '\n'; 219 | } 220 | else if(date[i].value !== ""){ 221 | generatedXMLCode += "" + date[i].value + "" + '\n'; 222 | generatedHTMLCode +="" + '\n'; 223 | generatedXHTMLCode +="" + '\n'; 224 | } 225 | } 226 | 227 | for(i=0; i<=type.length-1; i++) { 228 | if((type[i].value.indexOf("http://") > -1) || (type[i].value.indexOf("www.") > -1)){ 229 | generatedXMLCode += "" + type[i].value + "" + '\n'; 230 | generatedHTMLCode +="" + '\n'; 231 | generatedXHTMLCode +="" + '\n'; 232 | } 233 | else if(type[i].value !== ""){ 234 | generatedXMLCode += "" + type[i].value + "" + '\n'; 235 | generatedHTMLCode +="" + '\n'; 236 | generatedXHTMLCode +="" + '\n'; 237 | } 238 | } 239 | 240 | for(i=0; i<=format.length-1; i++) { 241 | if((format[i].value.indexOf("http://") > -1) || (format[i].value.indexOf("www.") > -1)){ 242 | generatedXMLCode += "" + format[i].value + "" + '\n'; 243 | generatedHTMLCode +="" + '\n'; 244 | generatedXHTMLCode +="" + '\n'; 245 | } 246 | else if(format[i].value !== ""){ 247 | generatedXMLCode += "" + format[i].value + "" + '\n'; 248 | generatedHTMLCode +="" + '\n'; 249 | generatedXHTMLCode +="" + '\n'; 250 | } 251 | } 252 | 253 | for(i=0; i<=identifier.length-1; i++) { 254 | if((identifier[i].value.indexOf("http://") > -1) || (identifier[i].value.indexOf("www.") > -1)){ 255 | generatedXMLCode += "" + identifier[i].value + "" + '\n'; 256 | generatedHTMLCode +="" + '\n'; 257 | generatedXHTMLCode +="" + '\n'; 258 | } 259 | else if(identifier[i].value !== ""){ 260 | generatedXMLCode += "" + identifier[i].value + "" + '\n'; 261 | generatedHTMLCode +="" + '\n'; 262 | generatedXHTMLCode +="" + '\n'; 263 | } 264 | } 265 | 266 | for(i=0; i<=source.length-1; i++) { 267 | if((source[i].value.indexOf("http://") > -1) || (source[i].value.indexOf("www.") > -1)){ 268 | generatedXMLCode += "" + source[i].value + "" + '\n'; 269 | generatedHTMLCode +="" + '\n'; 270 | generatedXHTMLCode +="" + '\n'; 271 | } 272 | else if(source[i].value !== ""){ 273 | generatedXMLCode += "" + source[i].value + "" + '\n'; 274 | generatedHTMLCode +="" + '\n'; 275 | generatedXHTMLCode +="" + '\n'; 276 | } 277 | } 278 | 279 | for(i=0; i<=language.length-1; i++) { 280 | if((language[i].value.indexOf("http://") > -1) || (language[i].value.indexOf("www.") > -1)){ 281 | generatedXMLCode += "" + language[i].value + "" + '\n'; 282 | generatedHTMLCode +="" + '\n'; 283 | generatedXHTMLCode +="" + '\n'; 284 | } 285 | else if(language[i].value !== ""){ 286 | generatedXMLCode += "" + language[i].value + "" + '\n'; 287 | generatedHTMLCode +="" + '\n'; 288 | generatedXHTMLCode +="" + '\n'; 289 | } 290 | } 291 | 292 | for(i=0; i<=relation.length-1; i++) { 293 | if((relation[i].value.indexOf("http://") > -1) || (relation[i].value.indexOf("www.") > -1)){ 294 | generatedXMLCode += "" + relation[i].value + "" + '\n'; 295 | generatedHTMLCode +="" + '\n'; 296 | generatedXHTMLCode +="" + '\n'; 297 | } 298 | else if(relation[i].value !== ""){ 299 | generatedXMLCode += "" + relation[i].value + "" + '\n'; 300 | generatedHTMLCode +="" + '\n'; 301 | generatedXHTMLCode +="" + '\n'; 302 | } 303 | } 304 | 305 | for(i=0; i<=coverage.length-1; i++) { 306 | if((coverage[i].value.indexOf("http://") > -1) || (coverage[i].value.indexOf("www.") > -1)){ 307 | generatedXMLCode += "" + coverage[i].value + "" + '\n'; 308 | generatedHTMLCode +="" + '\n'; 309 | generatedXHTMLCode +="" + '\n'; 310 | } 311 | else if(coverage[i].value !== ""){ 312 | generatedXMLCode += "" + coverage[i].value + "" + '\n'; 313 | generatedHTMLCode +="" + '\n'; 314 | generatedXHTMLCode +="" + '\n'; 315 | } 316 | } 317 | 318 | for(i=0; i<=rights.length-1; i++) { 319 | if((rights[i].value.indexOf("http://") > -1) || (rights[i].value.indexOf("www.") > -1)){ 320 | generatedXMLCode += "" + rights[i].value + "" + '\n'; 321 | generatedHTMLCode +="" + '\n'; 322 | generatedXHTMLCode +="" + '\n'; 323 | } 324 | else if(rights[i].value !== ""){ 325 | generatedXMLCode += "" + rights[i].value + "" + '\n'; 326 | generatedHTMLCode +="" + '\n'; 327 | generatedXHTMLCode +="" + '\n'; 328 | } 329 | } 330 | 331 | //Checking for special output options again, this time for adding closing tags. 332 | if($("#addroot").attr('checked')){ 333 | var rootname = $('#rootname').val(); 334 | generatedXMLCode += '\n' + "<\/" + rootname + ">"; 335 | } 336 | 337 | if($("#addhead").attr('checked')){ 338 | generatedHTMLCode += ""; 339 | } 340 | 341 | if($("#adddeclarationhtml").attr('checked')){ 342 | generatedHTMLCode += '\n' + "" + '\n' + "" + '\n' + "" 343 | } 344 | 345 | if($("#addheadx").attr('checked')){ 346 | generatedXHTMLCode += ""; 347 | } 348 | 349 | if($("#adddeclarationxhtml").attr('checked')){ 350 | generatedXHTMLCode += '\n' + "" + '\n' + "" + '\n' + "" 351 | } 352 | 353 | $('#xmlresults').val(generatedXMLCode); 354 | $('#htmlresults').val(generatedHTMLCode); 355 | $('#xhtmlresults').val(generatedXHTMLCode); 356 | 357 | $('#generatebutton').blur(); 358 | } 359 | 360 | //A clunky but effective function to show and hide the correct output depending on which 361 | //is selected. 362 | function showHideOutput(){ 363 | var value = $('#outputType').val(); 364 | 365 | if(value == "xml"){ 366 | $('#xmlresults').show(); 367 | $('#xmloptions').show(); 368 | $('#htmlresults').hide(); 369 | $('#htmloptions').hide(); 370 | $('#xhtmlresults').hide(); 371 | $('#xhtmloptions').hide(); 372 | } 373 | else if(value == "html"){ 374 | $('#xmlresults').hide(); 375 | $('#xmloptions').hide(); 376 | $('#htmlresults').show(); 377 | $('#htmloptions').show(); 378 | $('#xhtmlresults').hide(); 379 | $('#xhtmloptions').hide(); 380 | } 381 | else if(value == "xhtml"){ 382 | $('#xmlresults').hide(); 383 | $('#xmloptions').hide(); 384 | $('#htmlresults').hide(); 385 | $('#htmloptions').hide(); 386 | $('#xhtmlresults').show(); 387 | $('#xhtmloptions').show(); 388 | } 389 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | {description} 294 | Copyright (C) {year} {fullname} 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | {signature of Ty Coon}, 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | 341 | -------------------------------------------------------------------------------- /css/jquery-ui-1.8.16.custom.css: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery UI CSS Framework 1.8.16 3 | * 4 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) 5 | * Dual licensed under the MIT or GPL Version 2 licenses. 6 | * http://jquery.org/license 7 | * 8 | * http://docs.jquery.com/UI/Theming/API 9 | */ 10 | 11 | /* Layout helpers 12 | ----------------------------------*/ 13 | .ui-helper-hidden { display: none; } 14 | .ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); } 15 | .ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; } 16 | .ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } 17 | .ui-helper-clearfix { display: inline-block; } 18 | /* required comment for clearfix to work in Opera \*/ 19 | * html .ui-helper-clearfix { height:1%; } 20 | .ui-helper-clearfix { display:block; } 21 | /* end clearfix */ 22 | .ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); } 23 | 24 | 25 | /* Interaction Cues 26 | ----------------------------------*/ 27 | .ui-state-disabled { cursor: default !important; } 28 | 29 | 30 | /* Icons 31 | ----------------------------------*/ 32 | 33 | /* states and images */ 34 | .ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; } 35 | 36 | 37 | /* Misc visuals 38 | ----------------------------------*/ 39 | 40 | /* Overlays */ 41 | .ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } 42 | 43 | 44 | /* 45 | * jQuery UI CSS Framework 1.8.16 46 | * 47 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) 48 | * Dual licensed under the MIT or GPL Version 2 licenses. 49 | * http://jquery.org/license 50 | * 51 | * http://docs.jquery.com/UI/Theming/API 52 | * 53 | * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS,%20Tahoma,%20Verdana,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=12_gloss_wave.png&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=03_highlight_soft.png&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=02_glass.png&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=03_highlight_soft.png&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=08_diagonals_thick.png&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=08_diagonals_thick.png&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=01_flat.png&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px 54 | */ 55 | 56 | 57 | /* Component containers 58 | ----------------------------------*/ 59 | .ui-widget { font-size: 16px; } 60 | .ui-widget .ui-widget { font-size: 12px; } 61 | .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button, ui-widget input:hover, .ui-widget select:hover, .ui-widget textarea:hover, .ui-widget button:hover { font-size: 12px; } 62 | .ui-widget-content { border: 1px solid #dddddd; background: #eeeeee url(images/ui-bg_highlight-soft_100_eeeeee_1x100.png) 50% top repeat-x; color: #333333; } 63 | .ui-widget-content a { color: #333333; } 64 | .ui-widget-header { border: 1px solid #e78f08; background: #f6a828 url(images/ui-bg_gloss-wave_35_f6a828_500x100.png) 50% 50% repeat-x; color: #ffffff; font-weight: bold; } 65 | .ui-widget-header a { color: #ffffff; } 66 | 67 | /* Interaction states 68 | ----------------------------------*/ 69 | .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #cccccc; background: #f6f6f6 url(images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #1c94c4; } 70 | .ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #1c94c4; text-decoration: none; } 71 | .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #fbcb09; background: #fdf5ce url(images/ui-bg_glass_100_fdf5ce_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #c77405; } 72 | .ui-state-hover a, .ui-state-hover a:hover { color: #c77405; text-decoration: none; } 73 | .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #fbd850; background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #eb8f00; } 74 | .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #eb8f00; text-decoration: none; } 75 | .ui-widget :active { outline: none; } 76 | 77 | /* Interaction Cues 78 | ----------------------------------*/ 79 | .ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fed22f; background: #ffe45c url(images/ui-bg_highlight-soft_75_ffe45c_1x100.png) 50% top repeat-x; color: #363636; } 80 | .ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; } 81 | .ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #b81900 url(images/ui-bg_diagonals-thick_18_b81900_40x40.png) 50% 50% repeat; color: #ffffff; } 82 | .ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #ffffff; } 83 | .ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #ffffff; } 84 | .ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; } 85 | .ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; } 86 | .ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; } 87 | 88 | /* Icons 89 | ----------------------------------*/ 90 | 91 | /* states and images */ 92 | .ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); } 93 | .ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); } 94 | .ui-widget-header .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); } 95 | .ui-state-default .ui-icon { background-image: url(images/ui-icons_ef8c08_256x240.png); } 96 | .ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_ef8c08_256x240.png); } 97 | .ui-state-active .ui-icon {background-image: url(images/ui-icons_ef8c08_256x240.png); } 98 | .ui-state-highlight .ui-icon {background-image: url(images/ui-icons_228ef1_256x240.png); } 99 | .ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_ffd27a_256x240.png); } 100 | 101 | /* positioning */ 102 | .ui-icon-carat-1-n { background-position: 0 0; } 103 | .ui-icon-carat-1-ne { background-position: -16px 0; } 104 | .ui-icon-carat-1-e { background-position: -32px 0; } 105 | .ui-icon-carat-1-se { background-position: -48px 0; } 106 | .ui-icon-carat-1-s { background-position: -64px 0; } 107 | .ui-icon-carat-1-sw { background-position: -80px 0; } 108 | .ui-icon-carat-1-w { background-position: -96px 0; } 109 | .ui-icon-carat-1-nw { background-position: -112px 0; } 110 | .ui-icon-carat-2-n-s { background-position: -128px 0; } 111 | .ui-icon-carat-2-e-w { background-position: -144px 0; } 112 | .ui-icon-triangle-1-n { background-position: 0 -16px; } 113 | .ui-icon-triangle-1-ne { background-position: -16px -16px; } 114 | .ui-icon-triangle-1-e { background-position: -32px -16px; } 115 | .ui-icon-triangle-1-se { background-position: -48px -16px; } 116 | .ui-icon-triangle-1-s { background-position: -64px -16px; } 117 | .ui-icon-triangle-1-sw { background-position: -80px -16px; } 118 | .ui-icon-triangle-1-w { background-position: -96px -16px; } 119 | .ui-icon-triangle-1-nw { background-position: -112px -16px; } 120 | .ui-icon-triangle-2-n-s { background-position: -128px -16px; } 121 | .ui-icon-triangle-2-e-w { background-position: -144px -16px; } 122 | .ui-icon-arrow-1-n { background-position: 0 -32px; } 123 | .ui-icon-arrow-1-ne { background-position: -16px -32px; } 124 | .ui-icon-arrow-1-e { background-position: -32px -32px; } 125 | .ui-icon-arrow-1-se { background-position: -48px -32px; } 126 | .ui-icon-arrow-1-s { background-position: -64px -32px; } 127 | .ui-icon-arrow-1-sw { background-position: -80px -32px; } 128 | .ui-icon-arrow-1-w { background-position: -96px -32px; } 129 | .ui-icon-arrow-1-nw { background-position: -112px -32px; } 130 | .ui-icon-arrow-2-n-s { background-position: -128px -32px; } 131 | .ui-icon-arrow-2-ne-sw { background-position: -144px -32px; } 132 | .ui-icon-arrow-2-e-w { background-position: -160px -32px; } 133 | .ui-icon-arrow-2-se-nw { background-position: -176px -32px; } 134 | .ui-icon-arrowstop-1-n { background-position: -192px -32px; } 135 | .ui-icon-arrowstop-1-e { background-position: -208px -32px; } 136 | .ui-icon-arrowstop-1-s { background-position: -224px -32px; } 137 | .ui-icon-arrowstop-1-w { background-position: -240px -32px; } 138 | .ui-icon-arrowthick-1-n { background-position: 0 -48px; } 139 | .ui-icon-arrowthick-1-ne { background-position: -16px -48px; } 140 | .ui-icon-arrowthick-1-e { background-position: -32px -48px; } 141 | .ui-icon-arrowthick-1-se { background-position: -48px -48px; } 142 | .ui-icon-arrowthick-1-s { background-position: -64px -48px; } 143 | .ui-icon-arrowthick-1-sw { background-position: -80px -48px; } 144 | .ui-icon-arrowthick-1-w { background-position: -96px -48px; } 145 | .ui-icon-arrowthick-1-nw { background-position: -112px -48px; } 146 | .ui-icon-arrowthick-2-n-s { background-position: -128px -48px; } 147 | .ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; } 148 | .ui-icon-arrowthick-2-e-w { background-position: -160px -48px; } 149 | .ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; } 150 | .ui-icon-arrowthickstop-1-n { background-position: -192px -48px; } 151 | .ui-icon-arrowthickstop-1-e { background-position: -208px -48px; } 152 | .ui-icon-arrowthickstop-1-s { background-position: -224px -48px; } 153 | .ui-icon-arrowthickstop-1-w { background-position: -240px -48px; } 154 | .ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; } 155 | .ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; } 156 | .ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; } 157 | .ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; } 158 | .ui-icon-arrowreturn-1-w { background-position: -64px -64px; } 159 | .ui-icon-arrowreturn-1-n { background-position: -80px -64px; } 160 | .ui-icon-arrowreturn-1-e { background-position: -96px -64px; } 161 | .ui-icon-arrowreturn-1-s { background-position: -112px -64px; } 162 | .ui-icon-arrowrefresh-1-w { background-position: -128px -64px; } 163 | .ui-icon-arrowrefresh-1-n { background-position: -144px -64px; } 164 | .ui-icon-arrowrefresh-1-e { background-position: -160px -64px; } 165 | .ui-icon-arrowrefresh-1-s { background-position: -176px -64px; } 166 | .ui-icon-arrow-4 { background-position: 0 -80px; } 167 | .ui-icon-arrow-4-diag { background-position: -16px -80px; } 168 | .ui-icon-extlink { background-position: -32px -80px; } 169 | .ui-icon-newwin { background-position: -48px -80px; } 170 | .ui-icon-refresh { background-position: -64px -80px; } 171 | .ui-icon-shuffle { background-position: -80px -80px; } 172 | .ui-icon-transfer-e-w { background-position: -96px -80px; } 173 | .ui-icon-transferthick-e-w { background-position: -112px -80px; } 174 | .ui-icon-folder-collapsed { background-position: 0 -96px; } 175 | .ui-icon-folder-open { background-position: -16px -96px; } 176 | .ui-icon-document { background-position: -32px -96px; } 177 | .ui-icon-document-b { background-position: -48px -96px; } 178 | .ui-icon-note { background-position: -64px -96px; } 179 | .ui-icon-mail-closed { background-position: -80px -96px; } 180 | .ui-icon-mail-open { background-position: -96px -96px; } 181 | .ui-icon-suitcase { background-position: -112px -96px; } 182 | .ui-icon-comment { background-position: -128px -96px; } 183 | .ui-icon-person { background-position: -144px -96px; } 184 | .ui-icon-print { background-position: -160px -96px; } 185 | .ui-icon-trash { background-position: -176px -96px; } 186 | .ui-icon-locked { background-position: -192px -96px; } 187 | .ui-icon-unlocked { background-position: -208px -96px; } 188 | .ui-icon-bookmark { background-position: -224px -96px; } 189 | .ui-icon-tag { background-position: -240px -96px; } 190 | .ui-icon-home { background-position: 0 -112px; } 191 | .ui-icon-flag { background-position: -16px -112px; } 192 | .ui-icon-calendar { background-position: -32px -112px; } 193 | .ui-icon-cart { background-position: -48px -112px; } 194 | .ui-icon-pencil { background-position: -64px -112px; } 195 | .ui-icon-clock { background-position: -80px -112px; } 196 | .ui-icon-disk { background-position: -96px -112px; } 197 | .ui-icon-calculator { background-position: -112px -112px; } 198 | .ui-icon-zoomin { background-position: -128px -112px; } 199 | .ui-icon-zoomout { background-position: -144px -112px; } 200 | .ui-icon-search { background-position: -160px -112px; } 201 | .ui-icon-wrench { background-position: -176px -112px; } 202 | .ui-icon-gear { background-position: -192px -112px; } 203 | .ui-icon-heart { background-position: -208px -112px; } 204 | .ui-icon-star { background-position: -224px -112px; } 205 | .ui-icon-link { background-position: -240px -112px; } 206 | .ui-icon-cancel { background-position: 0 -128px; } 207 | .ui-icon-plus { background-position: -16px -128px; } 208 | .ui-icon-plusthick { background-position: -32px -128px; } 209 | .ui-icon-minus { background-position: -48px -128px; } 210 | .ui-icon-minusthick { background-position: -64px -128px; } 211 | .ui-icon-close { background-position: -80px -128px; } 212 | .ui-icon-closethick { background-position: -96px -128px; } 213 | .ui-icon-key { background-position: -112px -128px; } 214 | .ui-icon-lightbulb { background-position: -128px -128px; } 215 | .ui-icon-scissors { background-position: -144px -128px; } 216 | .ui-icon-clipboard { background-position: -160px -128px; } 217 | .ui-icon-copy { background-position: -176px -128px; } 218 | .ui-icon-contact { background-position: -192px -128px; } 219 | .ui-icon-image { background-position: -208px -128px; } 220 | .ui-icon-video { background-position: -224px -128px; } 221 | .ui-icon-script { background-position: -240px -128px; } 222 | .ui-icon-alert { background-position: 0 -144px; } 223 | .ui-icon-info { background-position: -16px -144px; } 224 | .ui-icon-notice { background-position: -32px -144px; } 225 | .ui-icon-help { background-position: -48px -144px; } 226 | .ui-icon-check { background-position: -64px -144px; } 227 | .ui-icon-bullet { background-position: -80px -144px; } 228 | .ui-icon-radio-off { background-position: -96px -144px; } 229 | .ui-icon-radio-on { background-position: -112px -144px; } 230 | .ui-icon-pin-w { background-position: -128px -144px; } 231 | .ui-icon-pin-s { background-position: -144px -144px; } 232 | .ui-icon-play { background-position: 0 -160px; } 233 | .ui-icon-pause { background-position: -16px -160px; } 234 | .ui-icon-seek-next { background-position: -32px -160px; } 235 | .ui-icon-seek-prev { background-position: -48px -160px; } 236 | .ui-icon-seek-end { background-position: -64px -160px; } 237 | .ui-icon-seek-start { background-position: -80px -160px; } 238 | /* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */ 239 | .ui-icon-seek-first { background-position: -80px -160px; } 240 | .ui-icon-stop { background-position: -96px -160px; } 241 | .ui-icon-eject { background-position: -112px -160px; } 242 | .ui-icon-volume-off { background-position: -128px -160px; } 243 | .ui-icon-volume-on { background-position: -144px -160px; } 244 | .ui-icon-power { background-position: 0 -176px; } 245 | .ui-icon-signal-diag { background-position: -16px -176px; } 246 | .ui-icon-signal { background-position: -32px -176px; } 247 | .ui-icon-battery-0 { background-position: -48px -176px; } 248 | .ui-icon-battery-1 { background-position: -64px -176px; } 249 | .ui-icon-battery-2 { background-position: -80px -176px; } 250 | .ui-icon-battery-3 { background-position: -96px -176px; } 251 | .ui-icon-circle-plus { background-position: 0 -192px; } 252 | .ui-icon-circle-minus { background-position: -16px -192px; } 253 | .ui-icon-circle-close { background-position: -32px -192px; } 254 | .ui-icon-circle-triangle-e { background-position: -48px -192px; } 255 | .ui-icon-circle-triangle-s { background-position: -64px -192px; } 256 | .ui-icon-circle-triangle-w { background-position: -80px -192px; } 257 | .ui-icon-circle-triangle-n { background-position: -96px -192px; } 258 | .ui-icon-circle-arrow-e { background-position: -112px -192px; } 259 | .ui-icon-circle-arrow-s { background-position: -128px -192px; } 260 | .ui-icon-circle-arrow-w { background-position: -144px -192px; } 261 | .ui-icon-circle-arrow-n { background-position: -160px -192px; } 262 | .ui-icon-circle-zoomin { background-position: -176px -192px; } 263 | .ui-icon-circle-zoomout { background-position: -192px -192px; } 264 | .ui-icon-circle-check { background-position: -208px -192px; } 265 | .ui-icon-circlesmall-plus { background-position: 0 -208px; } 266 | .ui-icon-circlesmall-minus { background-position: -16px -208px; } 267 | .ui-icon-circlesmall-close { background-position: -32px -208px; } 268 | .ui-icon-squaresmall-plus { background-position: -48px -208px; } 269 | .ui-icon-squaresmall-minus { background-position: -64px -208px; } 270 | .ui-icon-squaresmall-close { background-position: -80px -208px; } 271 | .ui-icon-grip-dotted-vertical { background-position: 0 -224px; } 272 | .ui-icon-grip-dotted-horizontal { background-position: -16px -224px; } 273 | .ui-icon-grip-solid-vertical { background-position: -32px -224px; } 274 | .ui-icon-grip-solid-horizontal { background-position: -48px -224px; } 275 | .ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; } 276 | .ui-icon-grip-diagonal-se { background-position: -80px -224px; } 277 | 278 | 279 | /* Misc visuals 280 | ----------------------------------*/ 281 | 282 | /* Corner radius */ 283 | .ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -khtml-border-top-left-radius: 4px; border-top-left-radius: 4px; } 284 | .ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -khtml-border-top-right-radius: 4px; border-top-right-radius: 4px; } 285 | .ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; } 286 | .ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; } 287 | 288 | /* Overlays */ 289 | .ui-widget-overlay { background: #666666 url(images/ui-bg_diagonals-thick_20_666666_40x40.png) 50% 50% repeat; opacity: .50;filter:Alpha(Opacity=50); } 290 | .ui-widget-shadow { margin: -5px 0 0 -5px; padding: 5px; background: #000000 url(images/ui-bg_flat_10_000000_40x100.png) 50% 50% repeat-x; opacity: .20;filter:Alpha(Opacity=20); -moz-border-radius: 5px; -khtml-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; }/* 291 | * jQuery UI Resizable 1.8.16 292 | * 293 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) 294 | * Dual licensed under the MIT or GPL Version 2 licenses. 295 | * http://jquery.org/license 296 | * 297 | * http://docs.jquery.com/UI/Resizable#theming 298 | */ 299 | .ui-resizable { position: relative;} 300 | .ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block; } 301 | .ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; } 302 | .ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; } 303 | .ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; } 304 | .ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; } 305 | .ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; } 306 | .ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; } 307 | .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; } 308 | .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; } 309 | .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/* 310 | * jQuery UI Autocomplete 1.8.16 311 | * 312 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) 313 | * Dual licensed under the MIT or GPL Version 2 licenses. 314 | * http://jquery.org/license 315 | * 316 | * http://docs.jquery.com/UI/Autocomplete#theming 317 | */ 318 | .ui-autocomplete { position: absolute; cursor: default; } 319 | 320 | /* workarounds */ 321 | * html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */ 322 | 323 | /* 324 | * jQuery UI Menu 1.8.16 325 | * 326 | * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) 327 | * Dual licensed under the MIT or GPL Version 2 licenses. 328 | * http://jquery.org/license 329 | * 330 | * http://docs.jquery.com/UI/Menu#theming 331 | */ 332 | .ui-menu { 333 | list-style:none; 334 | padding: 2px; 335 | margin: 0; 336 | display:block; 337 | float: left; 338 | } 339 | .ui-menu .ui-menu { 340 | margin-top: -3px; 341 | } 342 | .ui-menu .ui-menu-item { 343 | margin:0; 344 | padding: 0; 345 | zoom: 1; 346 | float: left; 347 | clear: left; 348 | width: 100%; 349 | } 350 | .ui-menu .ui-menu-item a { 351 | text-decoration:none; 352 | display:block; 353 | padding:.2em .4em; 354 | line-height:1.5; 355 | zoom:1; 356 | } 357 | .ui-menu .ui-menu-item a.ui-state-hover, 358 | .ui-menu .ui-menu-item a.ui-state-active { 359 | font-weight: normal; 360 | margin: -1px; 361 | } 362 | /* 363 | * jQuery UI Dialog 1.8.16 364 | * 365 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) 366 | * Dual licensed under the MIT or GPL Version 2 licenses. 367 | * http://jquery.org/license 368 | * 369 | * http://docs.jquery.com/UI/Dialog#theming 370 | */ 371 | .ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; } 372 | .ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; } 373 | .ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; } 374 | .ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; } 375 | .ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; } 376 | .ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; } 377 | .ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; } 378 | .ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; } 379 | .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; } 380 | .ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; } 381 | .ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; } 382 | .ui-draggable .ui-dialog-titlebar { cursor: move; } 383 | -------------------------------------------------------------------------------- /js/interface_test.js: -------------------------------------------------------------------------------- 1 | var coverageNum = 1; 2 | 3 | function addRowToTable(type){ 4 | 5 | if(type == "title"){ 6 | $("#titleTable").addRow({ 7 | newRow: '' 8 | }); 9 | } 10 | else if(type == "subject"){ 11 | $("#subjectTable").addRow({ 12 | newRow: '' 13 | }); 14 | } 15 | else if(type == "description"){ 16 | $("#descriptionTable").addRow({ 17 | newRow: '' 18 | }); 19 | } 20 | else if(type == "date"){ 21 | $("#dateTable").addRow({ 22 | newRow: '' 23 | }); 24 | 25 | } 26 | else if(type == "type"){ 27 | $("#typeTable").addRow({ 28 | newRow: '' 29 | }); 30 | } 31 | else if(type == "format"){ 32 | $("#formatTable").addRow({ 33 | newRow: '' 34 | }); 35 | } 36 | else if(type == "identifier"){ 37 | $("#identifierTable").addRow({ 38 | newRow: '' 39 | }); 40 | } 41 | else if(type == "source"){ 42 | $("#sourceTable").addRow({ 43 | newRow: '' 44 | }); 45 | } 46 | else if(type == "language"){ 47 | $("#languageTable").addRow({ 48 | newRow: '' 49 | }); 50 | } 51 | else if(type == "relation"){ 52 | $("#relationTable").addRow({ 53 | newRow: '' 54 | }); 55 | } 56 | else if(type == "coverage"){ 57 | coverageNum++; 58 | $("#coverageTable").addRow({ 59 | newRow: '' 60 | }); 61 | } 62 | else if(type == "rights"){ 63 | $("#rightsTable").addRow({ 64 | newRow: '' 65 | }); 66 | } 67 | else if(type == "audience"){ 68 | $("#audienceTable").addRow({ 69 | newRow: '' 70 | }); 71 | } 72 | else{ 73 | $("#"+type+"Table").addRow({ 74 | newRow: '' 75 | }); 76 | } 77 | } 78 | 79 | function removeRowFromTable(tableID){ 80 | var rowCount = $("#"+tableID+" tr").length; 81 | if(rowCount > 2){ 82 | $("#"+tableID+"").removeRow({}); 83 | } 84 | } 85 | 86 | var IMTclicked = 0; 87 | var DCMIclicked = 0; 88 | var boxclicked = 0; 89 | var iso3166clicked = 0; 90 | var iso639clicked = 0; 91 | var perioddateclicked = 0; 92 | var periodcoverageclicked = 0; 93 | var pointclicked = 0; 94 | var subjectclicked = 0; 95 | var coverageclicked = 0; 96 | //Hokey workaround -- basically a check to see if the user has already added a row with the lookup tool (used below)// 97 | 98 | function addIMT(){ 99 | var IMTval = $('#IMTTypeFinder').val(); 100 | var countFormat = $('input[name*="formatRow"]').length; 101 | var formatExists = $('#formatRow1').val(); 102 | 103 | if((countFormat == 1) && (formatExists = "") && (IMTclicked == 0)){ 104 | $('#formatRow1').val(IMTval); 105 | $('#formatType1 option:eq(0)').prop('selected', true); 106 | $('#formatEncoding1 option:eq(1)').prop('selected', true); 107 | IMTclicked++; 108 | } 109 | else{ 110 | $("#formatTable").addRow({ 111 | newRow: '' 112 | }); 113 | } 114 | } 115 | 116 | function addDCMI(){ 117 | var DCMIval = $('#DCMITypeFinder').val(); 118 | var countType = $('input[name*="typeRow"]').length; 119 | var typeExists = $('#typeRow1').val(); 120 | 121 | if((countType == 1) && (typeExists = "") && (DCMIclicked == 0)){ 122 | $('#typeRow1').val(DCMIval); 123 | $('#typeType1 option:eq(1)').prop('selected', true); 124 | DCMIclicked++; 125 | } 126 | else{ 127 | $("#typeTable").addRow({ 128 | newRow: '' 129 | }); 130 | } 131 | } 132 | 133 | function addDCMIBox(){ 134 | var boxVal = $('#BoxString').val(); 135 | var countCoverage = $('input[name*="coverageRow"]').length; 136 | var coverageExists = $('#coverageRow1').val(); 137 | 138 | if((countCoverage == 1) && (coverageExists == "") && (boxclicked == 0)){ 139 | $('#coverageType1 option:eq(1)').prop('selected', true) 140 | $('#coverageRow1').val(boxVal); 141 | $('#coverageEncoding1 option:eq(1)').prop('selected', true) 142 | boxclicked++; 143 | } 144 | else{ 145 | $("#coverageTable").addRow({ 146 | newRow: '' 147 | }); 148 | } 149 | } 150 | 151 | function addISO3166(){ 152 | var boxVal = $('#ISO3166Finder').val(); 153 | var countCoverage = $('input[name*="coverageRow"]').length; 154 | var coverageExists = $('#coverageRow1').val(); 155 | 156 | if((countCoverage == 1) && (coverageExists = "") && (iso3166clicked == 0)){ 157 | $('#coverageType1 option:eq(1)').prop('selected', true) 158 | $('#coverageRow1').val(boxVal); 159 | $('#coverageEncoding1 option:eq(2)').prop('selected', true) 160 | iso3166clicked++; 161 | } 162 | else{ 163 | $("#coverageTable").addRow({ 164 | newRow: '' 165 | }); 166 | } 167 | } 168 | 169 | function addDCMIPeriodDate(){ 170 | var periodVal = $('#PeriodString').val(); 171 | var countDate = $('input[name*="dateRow"]').length; 172 | var dateExists = $('#dateRow1').val(); 173 | 174 | if((countDate == 1) && (dateExists == "") && (perioddateclicked == 0)){ 175 | $('#dateType1 option:eq(0)').prop('selected', true) 176 | $('#dateRow1').val(periodVal); 177 | $('#dateEncoding1 option:eq(1)').prop('selected', true) 178 | perioddateclicked++; 179 | } 180 | else{ 181 | $("#dateTable").addRow({ 182 | newRow: '' 183 | }); 184 | } 185 | } 186 | 187 | function addDCMIPeriodCoverage(){ 188 | var periodVal = $('#PeriodString').val(); 189 | var countCoverage = $('input[name*="coverageRow"]').length; 190 | var coverageExists = $('#coverageRow1').val(); 191 | 192 | if((countCoverage == 1) && (coverageExists == "") && (periodcoverageclicked == 0)){ 193 | $('#coverageType1 option:eq(2)').prop('selected', true) 194 | $('#coverageRow1').val(periodVal); 195 | $('#coverageEncoding1 option:eq(3)').prop('selected', true) 196 | periodcoverageclicked++; 197 | } 198 | else{ 199 | $("#coverageTable").addRow({ 200 | newRow: '' 201 | }); 202 | } 203 | } 204 | 205 | function addISO6392(){ 206 | var languageVal = $('#ISO6392Finder').val(); 207 | var countLanguage = $('input[name*="languageRow"]').length; 208 | var languageExists = $('#languageRow1').val(); 209 | 210 | if((countLanguage == 1) && (languageExists == "") && (iso639clicked == 0)){ 211 | $('#languageRow1').val(languageVal); 212 | $('#languageType1 option:eq(1)').prop('selected', true) 213 | iso639clicked++; 214 | } 215 | else{ 216 | $("#languageTable").addRow({ 217 | newRow: '' 218 | }); 219 | } 220 | } 221 | 222 | function addISO6393(){ 223 | var languageVal = $('#ISO6393Finder').val(); 224 | var countLanguage = $('input[name*="languageRow"]').length; 225 | var languageExists = $('#languageRow1').val(); 226 | 227 | if((countLanguage == 1) && (languageExists == "") && (iso639clicked == 0)){ 228 | $('#languageRow1').val(languageVal); 229 | $('#languageType1 option:eq(2)').prop('selected', true) 230 | iso639clicked++; 231 | } 232 | else{ 233 | $("#languageTable").addRow({ 234 | newRow: '' 235 | }); 236 | } 237 | } 238 | 239 | function addDCMIPoint(){ 240 | var pointVal = $('#PointString').val(); 241 | var countCoverage = $('input[name*="coverageRow"]').length; 242 | var coverageExists = $('#coverageRow1').val(); 243 | 244 | if((countCoverage == 1) && (coverageExists == "") && (pointclicked == 0)){ 245 | $('#coverageType1 option:eq(1)').prop('selected', true) 246 | $('#coverageRow1').val(pointVal); 247 | $('#coverageEncoding1 option:eq(4)').prop('selected', true) 248 | pointclicked++; 249 | } 250 | else{ 251 | $("#coverageTable").addRow({ 252 | newRow: '' 253 | }); 254 | } 255 | } 256 | 257 | function addAGROVOC(){ 258 | var agrovocVal = $('#AGROVOCfinder').val(); 259 | var countSubject = $('input[name*="subjectRow"]').length; 260 | var subjectExists = $('#subjectRow1').val(); 261 | 262 | if((countSubject == 1) && (subjectExists == "") && (subjectclicked == 0)){ 263 | $('#subjectRow1').val(agrovocVal); 264 | $('#subjectType1 option:eq(2)').prop('selected', true) 265 | subjectclicked++; 266 | } 267 | else{ 268 | $("#subjectTable").addRow({ 269 | newRow: '' 270 | }); 271 | } 272 | } 273 | 274 | function addITIS(){ 275 | var itisVal = $('#ITISfinder').val(); 276 | var countSubject = $('input[name*="subjectRow"]').length; 277 | var subjectExists = $('#subjectRow1').val(); 278 | 279 | if((countSubject == 1) && (subjectExists == "") && (subjectclicked == 0)){ 280 | $('#subjectRow1').val(itisVal); 281 | $('#subjectType1 option:eq(4)').prop('selected', true) 282 | subjectclicked++; 283 | } 284 | else{ 285 | $("#subjectTable").addRow({ 286 | newRow: '' 287 | }); 288 | } 289 | } 290 | 291 | function addLCSH(){ 292 | var lcshVal = $('#LCSHfinder').val(); 293 | var countSubject = $('input[name*="subjectRow"]').length; 294 | var subjectExists = $('#subjectRow1').val(); 295 | 296 | if((countSubject == 1) && (subjectExists == "") && (subjectclicked == 0)){ 297 | $('#subjectRow1').val(lcshVal); 298 | $('#subjectType1 option:eq(6)').prop('selected', true) 299 | subjectclicked++; 300 | } 301 | else{ 302 | $("#subjectTable").addRow({ 303 | newRow: '' 304 | }); 305 | } 306 | } 307 | 308 | function addMESH(){ 309 | var meshVal = $('#MESHfinder').val(); 310 | var countSubject = $('input[name*="subjectRow"]').length; 311 | var subjectExists = $('#subjectRow1').val(); 312 | 313 | if((countSubject == 1) && (subjectExists == "") && (subjectclicked == 0)){ 314 | $('#subjectRow1').val(meshVal); 315 | $('#subjectType1 option:eq(7)').prop('selected', true) 316 | subjectclicked++; 317 | } 318 | else{ 319 | $("#subjectTable").addRow({ 320 | newRow: '' 321 | }); 322 | } 323 | } 324 | 325 | function addTGNSubject(){ 326 | var tgnVal = $('#TGNfinder').val(); 327 | var countSubject = $('input[name*="subjectRow"]').length; 328 | var subjectExists = $('#subjectRow1').val(); 329 | 330 | if((countSubject == 1) && (subjectExists == "") && (subjectclicked == 0)){ 331 | $('#subjectRow1').val(tgnVal); 332 | $('#subjectType1 option:eq(10)').prop('selected', true) 333 | subjectclicked++; 334 | } 335 | else{ 336 | $("#subjectTable").addRow({ 337 | newRow: '' 338 | }); 339 | } 340 | } 341 | 342 | function addTGNCoverage(){ 343 | var tgnVal = $('#TGNfinder').val(); 344 | var countCoverage = $('input[name*="coverageRow"]').length; 345 | var coverageExists = $('#coverageRow1').val(); 346 | 347 | if((countCoverage == 1) && (coverageExists == "") && (coverageclicked == 0)){ 348 | $('#coverageType1 option:eq(1)').prop('selected', true) 349 | $('#coverageRow1').val(tgnVal); 350 | $('#coverageEncoding1 option:eq(5)').prop('selected', true) 351 | coverageclicked++; 352 | } 353 | else{ 354 | $("#coverageTable").addRow({ 355 | newRow: '' 356 | }); 357 | } 358 | } 359 | 360 | function buildDCMIPeriod(){ 361 | var periodName = $("#PeriodName").val(); 362 | var periodStart = $("#PeriodStart").val(); 363 | var periodEnd = $("#PeriodEnd").val(); 364 | var periodScheme = $("#PeriodScheme").val(); 365 | 366 | $("#PeriodString").val( function() { 367 | 368 | var string = ""; 369 | 370 | if(periodName != ""){ 371 | string += "name="+periodName+";"; 372 | } 373 | 374 | if(periodStart != ""){ 375 | string += "start="+periodStart+";"; 376 | } 377 | 378 | if(periodEnd != ""){ 379 | string += "end="+periodEnd+";"; 380 | } 381 | 382 | if(periodScheme != ""){ 383 | string += "scheme="+periodScheme+";"; 384 | } 385 | return string; 386 | }); 387 | } 388 | 389 | function buildDCMIPoint(){ 390 | var pointName = $("#PointName").val(); 391 | var pointEast = $("#PointEast").val(); 392 | var pointNorth = $("#PointNorth").val(); 393 | var pointElevation = $("#PointElev").val(); 394 | var point2D = $("#Point2DUnits").val(); 395 | var point3D = $("#Point3DUnits").val(); 396 | var pointMap = $("#PointMap").val(); 397 | 398 | $("#PointString").val( function() { 399 | 400 | var string = ""; 401 | 402 | if(pointName != ""){ 403 | string += "name="+pointName+";"; 404 | } 405 | 406 | if(pointEast != ""){ 407 | string += "eastlimit="+pointEast+";"; 408 | } 409 | 410 | if(pointNorth != ""){ 411 | string += "northlimit="+pointEast+";"; 412 | } 413 | 414 | if(pointElevation != ""){ 415 | string += "elevation="+pointElevation+";"; 416 | } 417 | 418 | if(point2D != ""){ 419 | string += "units="+point2D+";"; 420 | } 421 | 422 | if(point3D != ""){ 423 | string += "zunits="+point3D+";"; 424 | } 425 | 426 | if(pointMap != ""){ 427 | string += "projection="+pointMap+";"; 428 | } 429 | return string; 430 | }); 431 | } 432 | 433 | function buildDCMIPeriod(){ 434 | var periodName = $("#PeriodName").val(); 435 | var periodStart = $("#PeriodStart").val(); 436 | var periodEnd = $("#PeriodEnd").val(); 437 | var periodScheme = $("#PeriodScheme").val(); 438 | 439 | $("#PeriodString").val( function() { 440 | 441 | var string = ""; 442 | 443 | if(periodName != ""){ 444 | string += "name="+periodName+";"; 445 | } 446 | 447 | if(periodStart != ""){ 448 | string += "start="+periodStart+";"; 449 | } 450 | 451 | if(periodEnd != ""){ 452 | string += "end="+periodEnd+";"; 453 | } 454 | 455 | if(periodScheme != ""){ 456 | string += "scheme="+periodScheme+";"; 457 | } 458 | return string; 459 | }); 460 | } 461 | 462 | function buildDCMIBox(){ 463 | var boxName = $("#BoxName").val(); 464 | var boxNorth = $("#BoxNorth").val(); 465 | var boxEast = $("#BoxEast").val(); 466 | var boxSouth = $("#BoxSouth").val(); 467 | var boxWest = $("#BoxWest").val(); 468 | var boxUpper = $("#BoxUpper").val(); 469 | var boxLower = $("#BoxLower").val(); 470 | var box2D = $("#Box2DUnits").val(); 471 | var box3D = $("#Box3DUnits").val(); 472 | var boxMap = $("#BoxMap").val(); 473 | 474 | $("#BoxString").val( function() { 475 | 476 | var string = ""; 477 | 478 | if(boxName != ""){ 479 | string += "name="+boxName+";"; 480 | } 481 | 482 | if(boxNorth != ""){ 483 | string += "northlimit="+boxNorth+";"; 484 | } 485 | 486 | if(boxEast != ""){ 487 | string += "eastlimit="+boxEast+";"; 488 | } 489 | 490 | if(boxSouth != ""){ 491 | string += "southlimit="+boxSouth+";"; 492 | } 493 | 494 | if(boxWest != ""){ 495 | string += "westlimit="+boxWest+";"; 496 | } 497 | 498 | if(boxUpper != ""){ 499 | string += "uplimit="+boxUpper+";"; 500 | } 501 | 502 | if(boxLower != ""){ 503 | string += "downlimit="+boxLower+";"; 504 | } 505 | 506 | if(box2D != ""){ 507 | string += "units="+box2D+";"; 508 | } 509 | 510 | if(box3D != ""){ 511 | string += "zunits="+box3D+";"; 512 | } 513 | 514 | if(boxMap != ""){ 515 | string += "projection="+boxMap+";"; 516 | } 517 | return string; 518 | }); 519 | } -------------------------------------------------------------------------------- /js/interface.js: -------------------------------------------------------------------------------- 1 | var coverageNum = 1; 2 | 3 | function addRowToTable(type){ 4 | 5 | if(type == "title"){ 6 | $("#titleTable").addRow({ 7 | newRow: '' 8 | }); 9 | } 10 | else if(type == "subject"){ 11 | $("#subjectTable").addRow({ 12 | newRow: '' 13 | }); 14 | } 15 | else if(type == "description"){ 16 | $("#descriptionTable").addRow({ 17 | newRow: '' 18 | }); 19 | } 20 | else if(type == "date"){ 21 | $("#dateTable").addRow({ 22 | newRow: '' 23 | }); 24 | } 25 | else if(type == "type"){ 26 | $("#typeTable").addRow({ 27 | newRow: '' 28 | }); 29 | } 30 | else if(type == "format"){ 31 | $("#formatTable").addRow({ 32 | newRow: '' 33 | }); 34 | } 35 | else if(type == "identifier"){ 36 | $("#identifierTable").addRow({ 37 | newRow: '' 38 | }); 39 | } 40 | else if(type == "source"){ 41 | $("#sourceTable").addRow({ 42 | newRow: '' 43 | }); 44 | } 45 | else if(type == "language"){ 46 | $("#languageTable").addRow({ 47 | newRow: '' 48 | }); 49 | } 50 | else if(type == "relation"){ 51 | $("#relationTable").addRow({ 52 | newRow: '' 53 | }); 54 | } 55 | else if(type == "coverage"){ 56 | coverageNum++; 57 | $("#coverageTable").addRow({ 58 | newRow: '' 59 | }); 60 | } 61 | else if(type == "rights"){ 62 | $("#rightsTable").addRow({ 63 | newRow: '' 64 | }); 65 | } 66 | else if(type == "audience"){ 67 | $("#audienceTable").addRow({ 68 | newRow: '' 69 | }); 70 | } 71 | else{ 72 | $("#"+type+"Table").addRow({ 73 | newRow: '' 74 | }); 75 | } 76 | } 77 | 78 | function removeRowFromTable(tableID){ 79 | var rowCount = $("#"+tableID+" tr").length; 80 | if(rowCount > 2){ 81 | $("#"+tableID+"").removeRow({}); 82 | } 83 | } 84 | 85 | var IMTclicked = 0; 86 | var DCMIclicked = 0; 87 | var boxclicked = 0; 88 | var iso3166clicked = 0; 89 | var iso639clicked = 0; 90 | var perioddateclicked = 0; 91 | var periodcoverageclicked = 0; 92 | var pointclicked = 0; 93 | var subjectclicked = 0; 94 | var coverageclicked = 0; 95 | //Hokey workaround -- basically a check to see if the user has already added a row with the lookup tool (used below)// 96 | 97 | function addIMT(){ 98 | var IMTval = $('#IMTTypeFinder').val(); 99 | var countFormat = $('input[name*="formatRow"]').length; 100 | var formatExists = $('#formatRow1').val(); 101 | 102 | if((countFormat == 1) && (formatExists == "") && (IMTclicked == 0)){ 103 | $('#formatRow1').val(IMTval); 104 | $('#formatType1 option:eq(0)').prop('selected', true); 105 | $('#formatEncoding1 option:eq(1)').prop('selected', true); 106 | IMTclicked++; 107 | } 108 | else{ 109 | $("#formatTable").addRow({ 110 | newRow: '' 111 | }); 112 | } 113 | } 114 | 115 | function addDCMI(){ 116 | var DCMIval = $('#DCMITypeFinder').val(); 117 | var countType = $('input[name*="typeRow"]').length; 118 | var typeExists = $('#typeRow1').val(); 119 | 120 | if((countType == 1) && (typeExists == "") && (DCMIclicked == 0)){ 121 | $('#typeRow1').val(DCMIval); 122 | $('#typeType1 option:eq(1)').prop('selected', true); 123 | DCMIclicked++; 124 | } 125 | else{ 126 | alert('None exist, DCMI is '+DCMIclicked+' and count type is '+countType+' and type exists is '+typeExists+'.'); 127 | $("#typeTable").addRow({ 128 | newRow: '' 129 | }); 130 | } 131 | } 132 | 133 | function addDCMIBox(){ 134 | var boxVal = $('#BoxString').val(); 135 | var countCoverage = $('input[name*="coverageRow"]').length; 136 | var coverageExists = $('#coverageRow1').val(); 137 | 138 | if((countCoverage == 1) && (coverageExists == "") && (boxclicked == 0)){ 139 | $('#coverageType1 option:eq(1)').prop('selected', true) 140 | $('#coverageRow1').val(boxVal); 141 | $('#coverageEncoding1 option:eq(1)').prop('selected', true) 142 | boxclicked++; 143 | } 144 | else{ 145 | $("#coverageTable").addRow({ 146 | newRow: '' 147 | }); 148 | } 149 | } 150 | 151 | function addISO3166(){ 152 | var boxVal = $('#ISO3166Finder').val(); 153 | var countCoverage = $('input[name*="coverageRow"]').length; 154 | var coverageExists = $('#coverageRow1').val(); 155 | 156 | if((countCoverage == 1) && (coverageExists == "") && (iso3166clicked == 0)){ 157 | $('#coverageType1 option:eq(1)').prop('selected', true) 158 | $('#coverageRow1').val(boxVal); 159 | $('#coverageEncoding1 option:eq(2)').prop('selected', true) 160 | iso3166clicked++; 161 | } 162 | else{ 163 | $("#coverageTable").addRow({ 164 | newRow: '' 165 | }); 166 | } 167 | } 168 | 169 | function addDCMIPeriodDate(){ 170 | var periodVal = $('#PeriodString').val(); 171 | var countDate = $('input[name*="dateRow"]').length; 172 | var dateExists = $('#dateRow1').val(); 173 | 174 | if((countDate == 1) && (dateExists == "") && (perioddateclicked == 0)){ 175 | $('#dateType1 option:eq(0)').prop('selected', true) 176 | $('#dateRow1').val(periodVal); 177 | $('#dateEncoding1 option:eq(1)').prop('selected', true) 178 | perioddateclicked++; 179 | } 180 | else{ 181 | $("#dateTable").addRow({ 182 | newRow: '' 183 | }); 184 | } 185 | } 186 | 187 | function addDCMIPeriodCoverage(){ 188 | var periodVal = $('#PeriodString').val(); 189 | var countCoverage = $('input[name*="coverageRow"]').length; 190 | var coverageExists = $('#coverageRow1').val(); 191 | 192 | if((countCoverage == 1) && (coverageExists == "") && (periodcoverageclicked == 0)){ 193 | $('#coverageType1 option:eq(2)').prop('selected', true) 194 | $('#coverageRow1').val(periodVal); 195 | $('#coverageEncoding1 option:eq(3)').prop('selected', true) 196 | periodcoverageclicked++; 197 | } 198 | else{ 199 | $("#coverageTable").addRow({ 200 | newRow: '' 201 | }); 202 | } 203 | } 204 | 205 | function addISO6392(){ 206 | var languageVal = $('#ISO6392Finder').val(); 207 | var countLanguage = $('input[name*="languageRow"]').length; 208 | var languageExists = $('#languageRow1').val(); 209 | 210 | if((countLanguage == 1) && (languageExists == "") && (iso639clicked == 0)){ 211 | $('#languageRow1').val(languageVal); 212 | $('#languageType1 option:eq(1)').prop('selected', true) 213 | iso639clicked++; 214 | } 215 | else{ 216 | $("#languageTable").addRow({ 217 | newRow: '' 218 | }); 219 | } 220 | } 221 | 222 | function addISO6393(){ 223 | var languageVal = $('#ISO6393Finder').val(); 224 | var countLanguage = $('input[name*="languageRow"]').length; 225 | var languageExists = $('#languageRow1').val(); 226 | 227 | if((countLanguage == 1) && (languageExists == "") && (iso639clicked == 0)){ 228 | $('#languageRow1').val(languageVal); 229 | $('#languageType1 option:eq(2)').prop('selected', true) 230 | iso639clicked++; 231 | } 232 | else{ 233 | $("#languageTable").addRow({ 234 | newRow: '' 235 | }); 236 | } 237 | } 238 | 239 | function addDCMIPoint(){ 240 | var pointVal = $('#PointString').val(); 241 | var countCoverage = $('input[name*="coverageRow"]').length; 242 | var coverageExists = $('#coverageRow1').val(); 243 | 244 | if((countCoverage == 1) && (coverageExists == "") && (pointclicked == 0)){ 245 | $('#coverageType1 option:eq(1)').prop('selected', true) 246 | $('#coverageRow1').val(pointVal); 247 | $('#coverageEncoding1 option:eq(4)').prop('selected', true) 248 | pointclicked++; 249 | } 250 | else{ 251 | $("#coverageTable").addRow({ 252 | newRow: '' 253 | }); 254 | } 255 | } 256 | 257 | function addAGROVOC(){ 258 | var agrovocVal = $('#AGROVOCfinder').val(); 259 | var countSubject = $('input[name*="subjectRow"]').length; 260 | var subjectExists = $('#subjectRow1').val(); 261 | 262 | if((countSubject == 1) && (subjectExists == "") && (subjectclicked == 0)){ 263 | $('#subjectRow1').val(agrovocVal); 264 | $('#subjectType1 option:eq(2)').prop('selected', true) 265 | subjectclicked++; 266 | } 267 | else{ 268 | $("#subjectTable").addRow({ 269 | newRow: '' 270 | }); 271 | } 272 | } 273 | 274 | function addITIS(){ 275 | var itisVal = $('#ITISfinder').val(); 276 | var countSubject = $('input[name*="subjectRow"]').length; 277 | var subjectExists = $('#subjectRow1').val(); 278 | 279 | if((countSubject == 1) && (subjectExists == "") && (subjectclicked == 0)){ 280 | $('#subjectRow1').val(itisVal); 281 | $('#subjectType1 option:eq(4)').prop('selected', true) 282 | subjectclicked++; 283 | } 284 | else{ 285 | $("#subjectTable").addRow({ 286 | newRow: '' 287 | }); 288 | } 289 | } 290 | 291 | function addLCSH(){ 292 | var lcshVal = $('#LCSHfinder').val(); 293 | var countSubject = $('input[name*="subjectRow"]').length; 294 | var subjectExists = $('#subjectRow1').val(); 295 | 296 | if((countSubject == 1) && (subjectExists == "") && (subjectclicked == 0)){ 297 | $('#subjectRow1').val(lcshVal); 298 | $('#subjectType1 option:eq(6)').prop('selected', true) 299 | subjectclicked++; 300 | } 301 | else{ 302 | $("#subjectTable").addRow({ 303 | newRow: '' 304 | }); 305 | } 306 | } 307 | 308 | function addMESH(){ 309 | var meshVal = $('#MESHfinder').val(); 310 | var countSubject = $('input[name*="subjectRow"]').length; 311 | var subjectExists = $('#subjectRow1').val(); 312 | 313 | if((countSubject == 1) && (subjectExists == "") && (subjectclicked == 0)){ 314 | $('#subjectRow1').val(meshVal); 315 | $('#subjectType1 option:eq(7)').prop('selected', true) 316 | subjectclicked++; 317 | } 318 | else{ 319 | $("#subjectTable").addRow({ 320 | newRow: '' 321 | }); 322 | } 323 | } 324 | 325 | function addTGNSubject(){ 326 | var tgnVal = $('#TGNfinder').val(); 327 | var countSubject = $('input[name*="subjectRow"]').length; 328 | var subjectExists = $('#subjectRow1').val(); 329 | 330 | if((countSubject == 1) && (subjectExists == "") && (subjectclicked == 0)){ 331 | $('#subjectRow1').val(tgnVal); 332 | $('#subjectType1 option:eq(10)').prop('selected', true) 333 | subjectclicked++; 334 | } 335 | else{ 336 | $("#subjectTable").addRow({ 337 | newRow: '' 338 | }); 339 | } 340 | } 341 | 342 | function addTGNCoverage(){ 343 | var tgnVal = $('#TGNfinder').val(); 344 | var countCoverage = $('input[name*="coverageRow"]').length; 345 | var coverageExists = $('#coverageRow1').val(); 346 | 347 | if((countCoverage == 1) && (coverageExists == "") && (coverageclicked == 0)){ 348 | $('#coverageType1 option:eq(1)').prop('selected', true) 349 | $('#coverageRow1').val(tgnVal); 350 | $('#coverageEncoding1 option:eq(5)').prop('selected', true) 351 | coverageclicked++; 352 | } 353 | else{ 354 | $("#coverageTable").addRow({ 355 | newRow: '' 356 | }); 357 | } 358 | } 359 | 360 | function buildDCMIPeriod(){ 361 | var periodName = $("#PeriodName").val(); 362 | var periodStart = $("#PeriodStart").val(); 363 | var periodEnd = $("#PeriodEnd").val(); 364 | var periodScheme = $("#PeriodScheme").val(); 365 | 366 | $("#PeriodString").val( function() { 367 | 368 | var string = ""; 369 | 370 | if(periodName != ""){ 371 | string += "name="+periodName+";"; 372 | } 373 | 374 | if(periodStart != ""){ 375 | string += "start="+periodStart+";"; 376 | } 377 | 378 | if(periodEnd != ""){ 379 | string += "end="+periodEnd+";"; 380 | } 381 | 382 | if(periodScheme != ""){ 383 | string += "scheme="+periodScheme+";"; 384 | } 385 | return string; 386 | }); 387 | } 388 | 389 | function buildDCMIPoint(){ 390 | var pointName = $("#PointName").val(); 391 | var pointEast = $("#PointEast").val(); 392 | var pointNorth = $("#PointNorth").val(); 393 | var pointElevation = $("#PointElev").val(); 394 | var point2D = $("#Point2DUnits").val(); 395 | var point3D = $("#Point3DUnits").val(); 396 | var pointMap = $("#PointMap").val(); 397 | 398 | $("#PointString").val( function() { 399 | 400 | var string = ""; 401 | 402 | if(pointName != ""){ 403 | string += "name="+pointName+";"; 404 | } 405 | 406 | if(pointEast != ""){ 407 | string += "eastlimit="+pointEast+";"; 408 | } 409 | 410 | if(pointNorth != ""){ 411 | string += "northlimit="+pointNorth+";"; 412 | } 413 | 414 | if(pointElevation != ""){ 415 | string += "elevation="+pointElevation+";"; 416 | } 417 | 418 | if(point2D != ""){ 419 | string += "units="+point2D+";"; 420 | } 421 | 422 | if(point3D != ""){ 423 | string += "zunits="+point3D+";"; 424 | } 425 | 426 | if(pointMap != ""){ 427 | string += "projection="+pointMap+";"; 428 | } 429 | return string; 430 | }); 431 | } 432 | 433 | function buildDCMIPeriod(){ 434 | var periodName = $("#PeriodName").val(); 435 | var periodStart = $("#PeriodStart").val(); 436 | var periodEnd = $("#PeriodEnd").val(); 437 | var periodScheme = $("#PeriodScheme").val(); 438 | 439 | $("#PeriodString").val( function() { 440 | 441 | var string = ""; 442 | 443 | if(periodName != ""){ 444 | string += "name="+periodName+";"; 445 | } 446 | 447 | if(periodStart != ""){ 448 | string += "start="+periodStart+";"; 449 | } 450 | 451 | if(periodEnd != ""){ 452 | string += "end="+periodEnd+";"; 453 | } 454 | 455 | if(periodScheme != ""){ 456 | string += "scheme="+periodScheme+";"; 457 | } 458 | return string; 459 | }); 460 | } 461 | 462 | function buildDCMIBox(){ 463 | var boxName = $("#BoxName").val(); 464 | var boxNorth = $("#BoxNorth").val(); 465 | var boxEast = $("#BoxEast").val(); 466 | var boxSouth = $("#BoxSouth").val(); 467 | var boxWest = $("#BoxWest").val(); 468 | var boxUpper = $("#BoxUpper").val(); 469 | var boxLower = $("#BoxLower").val(); 470 | var box2D = $("#Box2DUnits").val(); 471 | var box3D = $("#Box3DUnits").val(); 472 | var boxMap = $("#BoxMap").val(); 473 | 474 | $("#BoxString").val( function() { 475 | 476 | var string = ""; 477 | 478 | if(boxName != ""){ 479 | string += "name="+boxName+";"; 480 | } 481 | 482 | if(boxNorth != ""){ 483 | string += "northlimit="+boxNorth+";"; 484 | } 485 | 486 | if(boxEast != ""){ 487 | string += "eastlimit="+boxEast+";"; 488 | } 489 | 490 | if(boxSouth != ""){ 491 | string += "southlimit="+boxSouth+";"; 492 | } 493 | 494 | if(boxWest != ""){ 495 | string += "westlimit="+boxWest+";"; 496 | } 497 | 498 | if(boxUpper != ""){ 499 | string += "uplimit="+boxUpper+";"; 500 | } 501 | 502 | if(boxLower != ""){ 503 | string += "downlimit="+boxLower+";"; 504 | } 505 | 506 | if(box2D != ""){ 507 | string += "units="+box2D+";"; 508 | } 509 | 510 | if(box3D != ""){ 511 | string += "zunits="+box3D+";"; 512 | } 513 | 514 | if(boxMap != ""){ 515 | string += "projection="+boxMap+";"; 516 | } 517 | return string; 518 | }); 519 | } 520 | 521 | function buildW3CDTF(){ 522 | var w3Hours = $("#BoxName").val(); 523 | var boxNorth = $("#BoxNorth").val(); 524 | var boxEast = $("#BoxEast").val(); 525 | var boxSouth = $("#BoxSouth").val(); 526 | var boxWest = $("#BoxWest").val(); 527 | var boxUpper = $("#BoxUpper").val(); 528 | var boxLower = $("#BoxLower").val(); 529 | var box2D = $("#Box2DUnits").val(); 530 | var box3D = $("#Box3DUnits").val(); 531 | var boxMap = $("#BoxMap").val(); 532 | 533 | $("#BoxString").val( function() { 534 | 535 | var string = ""; 536 | 537 | if(boxName != ""){ 538 | string += "name="+boxName+";"; 539 | } 540 | 541 | if(boxNorth != ""){ 542 | string += "northlimit="+boxNorth+";"; 543 | } 544 | 545 | if(boxEast != ""){ 546 | string += "eastlimit="+boxEast+";"; 547 | } 548 | 549 | if(boxSouth != ""){ 550 | string += "southlimit="+boxSouth+";"; 551 | } 552 | 553 | if(boxWest != ""){ 554 | string += "westlimit="+boxWest+";"; 555 | } 556 | 557 | if(boxUpper != ""){ 558 | string += "uplimit="+boxUpper+";"; 559 | } 560 | 561 | if(boxLower != ""){ 562 | string += "downlimit="+boxLower+";"; 563 | } 564 | 565 | if(box2D != ""){ 566 | string += "units="+box2D+";"; 567 | } 568 | 569 | if(box3D != ""){ 570 | string += "zunits="+box3D+";"; 571 | } 572 | 573 | if(boxMap != ""){ 574 | string += "projection="+boxMap+";"; 575 | } 576 | return string; 577 | }); 578 | } --------------------------------------------------------------------------------