Changeset 1842 for MDService2
- Timestamp:
- 04/03/12 12:59:57 (12 years ago)
- Location:
- MDService2/branches/MDService_simple3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
MDService2/branches/MDService_simple3/WorkspaceProfile.xml
r1800 r1842 17 17 18 18 <item> 19 <name>arz_eng_006</name>20 <label>VICAV dictionary Cairo-dialect</label>21 <id>1</id>22 <type>fcs</type>23 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/result2view_v1.xsl</style>24 <uri>http://corpus3.aac.ac.at/cs2/corpus_shell/fcs/wrapper/php/GlossaryOnSRU.php</uri>25 </item>26 <item>27 <name>apc_eng_002</name>28 <label>VICAV dictionary Damascus-dialect</label>29 <id>2</id>30 <type>fcs</type>31 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/result2view_v1.xsl</style>32 <uri>http://corpus3.aac.ac.at/cs2/corpus_shell/fcs/wrapper/php/GlossaryOnSRU.php</uri>33 </item>34 <item>35 <name>deu_wikt_002</name>36 <label>Wiktionary</label>37 <id>3</id>38 <type>fcs</type>39 <!-- <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/wiktionary.xsl</style> -->40 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/result2view_v1.xsl</style>41 <uri>http://corpus3.aac.ac.at/cs2/corpus_shell/fcs/wrapper/php/WiktionaryOnSRU.php</uri>42 </item>43 <item>44 <name>clarin.at:icltt:ddc</name>45 <label>DDC on Corpus3</label>46 <id>4</id>47 <type>fcs.resource</type>48 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/result2view_v1.xsl</style>49 <uri>http://corpus3.aac.ac.at/ddconsru</uri>50 </item>51 <!--52 <item>53 <name>sru-corpus-ddcon</name>54 <label></label>55 <id>4</id>56 <type>fcs</type>57 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/ddckwic.xsl</style>58 <uri>http://corpus3.aac.ac.at/ddconsru</uri>59 </item>60 -->61 <!--<item>62 <name>sru-cqlservlet</name>63 <label></label><id>5</id>64 <type>sru</type>65 <style>http://clarin.aac.ac.at/exist7/rest/db/content_repository/scripts/http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/mdset2view.xsl</style>66 <uri>http://cqlservlet.mpi.nl/</uri>67 </item> -->68 <item>69 <name>sru-gutenberg</name>70 <label>Gutenberg Metadata</label>71 <id>6</id>72 <type>sru</type>73 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/result2view_v1.xsl</style>74 <uri>http://opencontent.indexdata.com/gutenberg</uri>75 </item>76 <item>77 <name>vicav-profile</name>78 <label>VICAV Profile</label>79 <id>7</id>80 <type>fcs</type>81 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/profile.xsl</style>82 <uri>http://corpus3.aac.ac.at/cs2/corpus_shell/fcs/wrapper/php/ProfileOnSRU.php</uri>83 </item>84 <item>85 <name>vicav-bib</name>86 <label>VICAV Bibliography</label>87 <id>8</id>88 <type>fcs</type>89 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/bibliography.xsl</style>90 <uri>http://corpus3.aac.ac.at/cs2/corpus_shell/fcs/wrapper/php/BibliographyOnSRU.php</uri>91 </item>92 <item>93 <name>vicav-text</name>94 <label>VICAV Sampletexte</label>95 <id>9</id>96 <type>fcs</type>97 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/profilesampletext.xsl</style>98 <uri>http://corpus3.aac.ac.at/cs2/corpus_shell/fcs/wrapper/php/SampleTextOnSRU.php</uri>99 </item>100 <item>101 <name>ids-goethe</name>102 <label>IDS Goethe</label>103 <id>10</id>104 <type>fcs</type>105 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/result2view_v1.xsl</style>106 <uri>http://clarin.ids-mannheim.de/cosmassru</uri>107 </item>108 <item>109 <name>arz_eng_006_newStyle</name>110 <label>VICAV dictionary Cairo-dialect newStyle</label>111 <id>11</id>112 <type>fcs</type>113 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/result2view_v1.xsl</style>114 <uri>http://corpus3.aac.ac.at/cs2/corpus_shell/fcs/wrapper/php/GlossaryOnSRU.php</uri>115 </item>116 <item>117 <name>clarin.at:icltt:cr</name>118 <label>ICLTT Content Repository</label>119 <id>12</id>120 <type>fcs.resource</type>121 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/result2view_v1.xsl</style>122 <uri>http://clarin.aac.ac.at/exist8/rest/db/cr/cr.xql</uri>123 </item>124 125 <item>126 19 <name>clarin.at-mirror</name> 127 20 <id>52</id> … … 135 28 <uri>http://demo.spraakdata.gu.se/clarin/cmd/model/stats/</uri> 136 29 </item> 30 <item> 31 <name>arz_eng_006</name> 32 <label>VICAV dictionary Cairo-dialect</label> 33 <id>1</id> 34 <type>fcs</type> 35 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/result2view_v1.xsl</style> 36 <uri>http://corpus3.aac.ac.at/cs2/corpus_shell/fcs/wrapper/php/GlossaryOnSRU.php</uri> 37 </item> 38 <item> 39 <name>apc_eng_002</name> 40 <label>VICAV dictionary Damascus-dialect</label> 41 <id>2</id> 42 <type>fcs</type> 43 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/result2view_v1.xsl</style> 44 <uri>http://corpus3.aac.ac.at/cs2/corpus_shell/fcs/wrapper/php/GlossaryOnSRU.php</uri> 45 </item> 46 <item> 47 <name>deu_wikt_002</name> 48 <label>Wiktionary</label> 49 <id>3</id> 50 <type>fcs</type> 51 <!-- <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/wiktionary.xsl</style> --> 52 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/result2view_v1.xsl</style> 53 <uri>http://corpus3.aac.ac.at/cs2/corpus_shell/fcs/wrapper/php/WiktionaryOnSRU.php</uri> 54 </item> 55 <item> 56 <name>clarin.at:icltt:ddc</name> 57 <label>DDC on Corpus3</label> 58 <id>4</id> 59 <type>fcs.resource</type> 60 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/result2view_v1.xsl</style> 61 <uri>http://corpus3.aac.ac.at/ddconsru</uri> 62 </item> 63 <!-- 64 <item> 65 <name>sru-corpus-ddcon</name> 66 <label></label> 67 <id>4</id> 68 <type>fcs</type> 69 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/ddckwic.xsl</style> 70 <uri>http://corpus3.aac.ac.at/ddconsru</uri> 71 </item> 72 --> 73 <!--<item> 74 <name>sru-cqlservlet</name> 75 <label></label><id>5</id> 76 <type>sru</type> 77 <style>http://clarin.aac.ac.at/exist7/rest/db/content_repository/scripts/http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/mdset2view.xsl</style> 78 <uri>http://cqlservlet.mpi.nl/</uri> 79 </item> --> 80 <item> 81 <name>sru-gutenberg</name> 82 <label>Gutenberg Metadata</label> 83 <id>6</id> 84 <type>sru</type> 85 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/result2view_v1.xsl</style> 86 <uri>http://opencontent.indexdata.com/gutenberg</uri> 87 </item> 88 <item> 89 <name>vicav-profile</name> 90 <label>VICAV Profile</label> 91 <id>7</id> 92 <type>fcs</type> 93 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/profile.xsl</style> 94 <uri>http://corpus3.aac.ac.at/cs2/corpus_shell/fcs/wrapper/php/ProfileOnSRU.php</uri> 95 </item> 96 <item> 97 <name>vicav-bib</name> 98 <label>VICAV Bibliography</label> 99 <id>8</id> 100 <type>fcs</type> 101 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/bibliography.xsl</style> 102 <uri>http://corpus3.aac.ac.at/cs2/corpus_shell/fcs/wrapper/php/BibliographyOnSRU.php</uri> 103 </item> 104 <item> 105 <name>vicav-text</name> 106 <label>VICAV Sampletexte</label> 107 <id>9</id> 108 <type>fcs</type> 109 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/profilesampletext.xsl</style> 110 <uri>http://corpus3.aac.ac.at/cs2/corpus_shell/fcs/wrapper/php/SampleTextOnSRU.php</uri> 111 </item> 112 <item> 113 <name>ids-goethe</name> 114 <label>IDS Goethe</label> 115 <id>10</id> 116 <type>fcs</type> 117 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/result2view_v1.xsl</style> 118 <uri>http://clarin.ids-mannheim.de/cosmassru</uri> 119 </item> 120 <item> 121 <name>arz_eng_006_newStyle</name> 122 <label>VICAV dictionary Cairo-dialect newStyle</label> 123 <id>11</id> 124 <type>fcs</type> 125 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/result2view_v1.xsl</style> 126 <uri>http://corpus3.aac.ac.at/cs2/corpus_shell/fcs/wrapper/php/GlossaryOnSRU.php</uri> 127 </item> 128 <item> 129 <name>clarin.at:icltt:cr</name> 130 <label>ICLTT Content Repository</label> 131 <id>12</id> 132 <type>fcs.resource</type> 133 <style>http://corpus3.aac.ac.at/cs2/corpus_shell/xsl/result2view_v1.xsl</style> 134 <uri>http://clarin.aac.ac.at/exist8/rest/db/cr/cr.xql</uri> 135 </item> 136 137 137 138 138 139 <item> -
MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/Repositories.java
r1833 r1842 129 129 public String getRepositoryByIndex(int ind){ 130 130 String repository_name = null; 131 132 if (repositories_nodelist.getLength() > ind){ 133 repository_name = repositories_nodelist.item(ind).getChildNodes().item(1).getNodeValue();//("name"); 134 } 131 Integer icount = 0; 132 133 NodeList chlist = repositories_nodelist.item(0).getChildNodes(); 134 if (chlist.getLength() > ind){ 135 for(int i=0;i<chlist.getLength();i++){ 136 Node node = chlist.item(i); 137 if (node.getNodeName().equals("item") && icount == ind){ 138 NodeList list = node.getChildNodes(); 139 for(int j=0;j<list.getLength();j++){ 140 if (list.item(j).getNodeName().equals("name")){ 141 return list.item(j).getTextContent(); 142 143 } 144 } 145 icount++; 146 } 147 } 148 149 } 150 151 135 152 return repository_name; 136 153
Note: See TracChangeset
for help on using the changeset viewer.