md_document.htt 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. <!-- {-md_document.htt-} --> <!-- for Dokeos metadata/index.php -->
  2. <!-- 2006/05/15 -->
  3. <!-- Copyright (C) 2005 rene.haentjens@UGent.be - see metadata/md_funcs.php -->
  4. <!-- {-METADATA-} -->
  5. {-D TRUE TRUE-}{-D XML application/xml;utf-8-}
  6. <div id="indexabletext" class="dvc">
  7. {-H {-E md_indexabletext C METADATA_INDEXABLETEXT-}-}
  8. </div>
  9. <noscript>
  10. {-P traceinfo-}
  11. <hr>
  12. <form method="post" action="{-P self-}">
  13. <textarea rows="30" class="wide" name="mdt" id="mdt">{-H {-P mdt-}-}</textarea>
  14. <input type="submit" value="{-L Store-}"></input>
  15. </form>
  16. {-L NoScript-}
  17. </noscript>
  18. <div onMouseUp="javascript: if ((kw = pU_clicked(event))) pU_select(kw); else pU_hide();">
  19. {-T dbrecord == empty <div class="lgr">-}
  20. {-E md_part1 C METADATA_PART1-}
  21. {-T dbrecord == empty </div>-}
  22. {-T isallowedtoedit == TRUE
  23. <div class="dvc">{-P traceinfo-}</div>
  24. <form method="post" action="{-P self-}">
  25. <textarea rows="4" class="mda" name="mda" id="mda" title="{-L ConfirmDelete-}"></textarea>
  26. <!--<input type="submit" value="{-L Store-}" onClick="javascript: return checkBeforeSubmit(event);"></input>-->
  27. <button class="save" type="submit" value="{-L Store-}" onClick="javascript: return checkBeforeSubmit(event);">{-L Store-}</button>
  28. {-T dbrecord != empty
  29. <!--<input type="submit" value="{-L DeleteAll-}" onClick="javascript: return setPendingOperation('~~', event);"></input>-->
  30. <button class="minus" type="submit" value="{-L DeleteAll-}" onClick="javascript:return setPendingOperation('~~', event);">{-L DeleteAll-}</button>
  31. -}
  32. <span onClick="javascript: document.getElementById('indexabletext').className ='dvo'">&#xa0;</span>
  33. {-D techfmt {-V metadata/lom/technical/format-}-}{-T techfmt == XML
  34. <input type="submit" value="{-L CourseKwds-}" onClick="javascript: return setPendingOperation('!!', event);"></input>
  35. -}
  36. </form>
  37. <textarea rows="10" class="mda" name="mdt" id="mdt">{-H {-P mdt-}-}</textarea>
  38. -}
  39. {-T keywordscache != empty
  40. <div noWrap="1" id="maindiv">
  41. <input type="button" class="btn" value="+" onClick="javascript: if (this.value == '+') deselectAll(event, this); openOrClose(this);"/>
  42. <input type="button" class="btm" id="btnOpenOrCloseAll" value="++" onClick="javascript: openOrCloseAll(this);"/>
  43. <input type="button" class="btn" value="?" onClick="javascript: openOrCloseHelp(this)"/>
  44. &#xa0;{-L ClickKw-}
  45. {-P keywordscache-}
  46. </div>
  47. <div id='moreHelp' class='dvc'>
  48. {-L KwHelp-}
  49. </div>
  50. -}
  51. {-T keywordscache == empty
  52. <!--
  53. <div noWrap="1" id="maindiv">
  54. {-L KwNote-}
  55. </div>
  56. -->
  57. -}
  58. <div id="popup" noWrap="1" class="pup">
  59. Working...
  60. </div>
  61. </div><!-- onMouseUp -->
  62. <!<!------------------------ End Of script Output ---------------------->
  63. <!-- {-METADATA_PART1-} -->
  64. <h3>{-L Tool-}: {-X metadata/lom/general/identifier/entry-}</h3>
  65. <table class="wide">
  66. <tr>
  67. <td colspan="2" class="bg1">&#xa0;</td><td class="bg2">&#xa0;</td>
  68. <td class="bg1">&#xa0;</td> <td class="bg2">&#xa0;</td>
  69. </tr>
  70. <tr>
  71. <td>{-D label Language-}{-C LABEL-}</td>
  72. <td>{-D xpath metadata/lom/general/language-}{-C LANGSELECT-}</td>
  73. <td>{-D xpath metadata/lom/general/identifier/catalog-}{-D iclass disabled class="wd2" -}{-C INPUT-}</td>
  74. <td>{-D label Identifier-}{-C LABEL-}</td>
  75. <td>{-D xpath metadata/lom/general/identifier/entry-}{-D iclass class="wd2" onKeyPress="javascript: return isValidChar(event, '[a-z0-9\x08\x25\x27\*\.\'\(\)_!-]', 'i');" -}{-C INPUT-}</td>
  76. </tr>
  77. <tr>
  78. <td>{-D label Title-}{-C LABEL-}</td>
  79. <td>{-D xpath metadata/lom/general/title/string/@language-}{-C LANGSELECT-}</td>
  80. <td colspan="3">{-D xpath metadata/lom/general/title/string-}{-C INPUTW-}</td>
  81. </tr>
  82. <tr>
  83. <td>{-D label Description-}{-C LABEL-}</td>
  84. <td>{-C MDLANGSELECT-}</td>
  85. <td colspan="3">{-D xpath metadata/lom/general/description/string-}{-C INPUTW-}</td>
  86. </tr>
  87. <tr>
  88. <td colspan="2">{-D label Coverage-}{-C LABEL-}</td>
  89. <td colspan="3">{-D xpath metadata/lom/general/coverage/string-}{-C INPUTW-}</td>
  90. </tr>
  91. <tr>
  92. <td colspan="2">{-D label Keyword-}{-C LABEL-}</td>
  93. <td colspan="3">{-C INPUT_ALLKWDS-}</td>
  94. </tr>
  95. <tr>
  96. <td colspan="2">{-D label Rights-}{-C LABEL-}</td>
  97. <td colspan="3">{-D xpath metadata/lom/rights/description/string-}{-C INPUTW-}</td>
  98. </tr>
  99. <tr>
  100. <td colspan="2">{-D label Version-}{-C LABEL-}</td>
  101. <td>{-D xpath metadata/lom/lifeCycle/version/string-}{-D iclass class="wd2" -}{-C INPUT-}</td>
  102. <td>{-D label Status-}{-C LABEL-}</td>
  103. <td nowrap>
  104. {-D xpath metadata/lom/lifeCycle/status/value-}{-D optionarray Statuses-}{-C SELECT-}
  105. {-D xpath metadata/lom/rights/cost/value-}{-D optionarray Costs-}{-C SELECT-}
  106. {-D xpath metadata/lom/rights/copyrightAndOtherRestrictions/value-}{-D optionarray Copyrights-}{-C SELECT-}
  107. </td>
  108. </tr>
  109. <tr>
  110. <td colspan="2">{-D label CreatedSize-}{-C LABEL-}</td>
  111. <td nowrap>
  112. {-D xpath metadata/lom/lifeCycle/contribute[1]/date/dateTime-}{-D iclass class="wd1" onKeyUp="javascript: checkValid(this,'^[0-9]{4}-[0-9]{2}-[0-9]{2}$','i');" -}{-C INPUT-}
  113. {-D xpath metadata/lom/technical/size-}{-D iclass class="wd1" onKeyPress="javascript: return isValidChar(event, '[0-9\x08\x25\x27]', 'i');" -}{-C INPUT-}
  114. </td>
  115. <td>{-D label Author-}{-C LABEL-}</td>
  116. <td>{-D xpath metadata/lom/lifeCycle/contribute[1]/entity-}{-C INPUTW-}</td>
  117. </tr>
  118. <tr>
  119. <td colspan="2">{-D label Format-}{-C LABEL-}</td>
  120. <td>{-D xpath metadata/lom/technical/format-}{-D optionarray Formats-}{-C SELECT-}</td>
  121. <td><a href="{-X metadata/lom/technical/location-}" target="_blank">{-D label Location-}{-C LABEL-}</a></td>
  122. <td>{-D xpath metadata/lom/technical/location-}{-C INPUTW-}</td>
  123. </tr>
  124. <tr>
  125. <td colspan="2" class="bg1">&#xa0;</td><td class="bg2">&#xa0;</td>
  126. <td class="bg1">&#xa0;</td> <td class="bg2">&#xa0;</td>
  127. </tr>
  128. </table>
  129. <!-- {-METADATA_INDEXABLETEXT-} -->
  130. {-V metadata/lom/general/title/string-} txt-sep
  131. {-R metadata/lom/general/keyword C KWTEXT-} txt-sep
  132. {-V metadata/lom/general/description[1]/string-} txt-end
  133. document-type
  134. {-V metadata/lom/lifeCycle/contribute[1]/entity-}
  135. {-V metadata/lom/lifeCycle/contribute[1]/date/dateTime-}
  136. {-V metadata/lom/technical/format-}
  137. <!-- {-KWTEXT-} -->
  138. {-V string-}-kw
  139. <!-- {-LABEL-} -->
  140. <span class="bg3" title="{-L {-P label-}Tip-}">{-L {-P label-}-}&#xa0;:</span>
  141. <!-- {-MDLANGSELECT-} -->
  142. <select onchange="javascript: spcSel('metadata/lom/general/description,metadata/lom/general/coverage,metadata/lom/general/keyword,metadata/lom/rights/description;string@language', this);">{-D selvalue {-V metadata/lom/general/description/string/@language-}-}{-R Langs C OPTION-}</select>
  143. <!-- {-LANGSELECT-} -->
  144. {-D optionarray Langs-}{-C SELECT-}
  145. <!-- {-SELECT-} -->
  146. <select onchange="javascript: spcSel('{-H {-P xpath-}-}', this);">{-D selvalue {-V P xpath-}-}{-R {-P optionarray-} C OPTION-}</select>
  147. <!-- {-OPTION-} -->
  148. <option value="{-P key-}" {-T key == selvalue selected-}>{-P value-}</option>
  149. <!-- {-INPUTW-} -->
  150. {-D iclass class="wide" -}{-C INPUT-}
  151. <!-- {-INPUT-} -->
  152. <input type="text" title="{-H {-P xpath-}-}" {-P iclass-}value="{-H {-V P xpath-}-}" onchange="javascript: spc(this.title, this.value);"/>
  153. <!-- {-INPUT_ALLKWDS-} -->
  154. <input type="text" title="{-X metadata/lom/general/description/string/@language-}"
  155. id="kwds_string" class="wide" value="{-X metadata/lom/general/keyword/string , -}"
  156. onKeyUp="javascript: takeTypeIn(this, 150, -100, '150px'); return true;"
  157. onKeyPress="javascript: return isValidChar(event, '[0-9a-z\xC0-\xFF\.\x08\x25\x27, -]', 'i');" />
  158. <!-- {-HEAD-} -->
  159. <link rel="stylesheet" type="text/css" href="md_styles.css">
  160. <script type="text/javascript" language="JavaScript" src="md_script.js"></script>
  161. <script type="text/javascript" language="JavaScript">var kwdswere = "{-X metadata/lom/general/keyword/string , -}";</script>
  162. <!-- {-HTTP-} -->
  163. Expires: Mon, 26 Jul 1997 05:00:00 GMT
  164. <!-- {-KEYWORD_VERYOLDVERSIONWITHLANGSELECTS-} -->
  165. <tr>
  166. <td>{-D label Keyword-}{-D tip {-L KeywordTip-}-}{-C LABEL-}</td>
  167. <td nowrap><select onchange="javascript: spc('metadata/lom/general/keyword[{-P number-}]/string/@language', this.options[this.selectedIndex].value);">{-D selvalue {-V string/@language-}-}{-R Langs C OPTION-}</select>
  168. <input type="checkbox" title="{-L DeleteKw-}" id="keyword{-P number-}"/></td>
  169. <td colspan="3">{-D value {-X string-}-}{-D title metadata/lom/general/keyword[{-P number-}]/string-}{-C INPUTKWD-}</td>
  170. </tr>
  171. <!-- {-KEYWORD_OLDVERSIONSEPARATELINES-} -->
  172. <tr>
  173. <td colspan="2" nowrap>{-D label Keyword-}{-D tip {-L KeywordTip-}-}{-C LABEL-}
  174. <input type="checkbox" title="{-L DeleteKw-}" id="keyword{-P number-}"/></td>
  175. <td colspan="3">{-D value {-X string-}-}{-D title metadata/lom/general/keyword[{-P number-}]/string-}{-C INPUTKWD-}</td>
  176. </tr>
  177. <!-- {-INPUTKWD-} -->
  178. <input type="text" title="{-P title-}" class="wide" value="{-H {-P value-}-}" onchange="javascript: spckwd(this.title, this.value, '{-P selvalue-}');"/>
  179. <!-- {-Remarks-} -->
  180. Small problems with NS 7 and Mozilla 1.7...
  181. 1. See 'End Of script Output' below: a double <!<! is required in that comment
  182. (and only there) otherwise it is not recognised as a comment.
  183. 2. Old script is cached and may pop up as error 'oCl is not defined'.
  184. <!-- {--} -->