Changeset 36295 for documented-examples
- Timestamp:
- 2022-07-21T19:43:19+12:00 (21 months ago)
- Location:
- documented-examples/trunk/lomdemo-e
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
documented-examples/trunk/lomdemo-e/etc/collectionConfig.xml
r36292 r36295 189 189 <xsl:call-template name="wrappedSectionImage"/> 190 190 <div id="gs-document-text"> 191 <gsf:metadata name="MetadataTable"/> 191 <p> 192 <center> 193 <table class="lom"> 194 <tr> 195 <td class="mdtabdip">Â </td> 196 <td class="mdhreftab mdtabtabbg"> 197 <a class="mdtablink" href="javascript:doShowHide('metatablediv', 'xmlrecordarea');">Metadata</a> 198 </td> 199 <td class="mdtabdip">Â </td> 200 <td class="mdtexttab mdtabtabbg"> 201 <a class="mdtablink" href="javascript:doShowHide('xmlrecordarea', 'metatablediv');">XML record</a> 202 </td> 203 <gsf:switch> 204 <gsf:metadata name="Plugin"/> 205 <gsf:when test="notEquals" test-value="LOMPlugin"> 206 <td class="mdtabdip">Â </td> 207 <td class="mdhreftab"> 208 <a class="mdtablink" href="javascript:;">Document</a> 209 </td> 210 </gsf:when> 211 <gsf:otherwise> 212 <td class="mdtabdip">Â </td> 213 <td class="mdtabblank">Â </td> 214 <td class="mdtabdip">Â </td> 215 </gsf:otherwise> 216 </gsf:switch> 217 <td class="mdtabfill">Â </td> 218 </tr> 219 </table> 220 <textarea cols="80" id="xmlrecordarea" rows="25" style="display:none"><gsf:switch><gsf:metadata name="Plugin"/><gsf:when test="equals" test-value="LOMPlugin"><xsl:value-of disable-output-escaping="yes" select="nodeContent"/></gsf:when><gsf:otherwise><gsf:metadata name="rawtext"/></gsf:otherwise></gsf:switch>Â </textarea> 221 <div id="metatablediv"> 222 <gsf:metadata name="MetadataTable"/> 223 </div> 224 </center> 225 </p> 192 226 <!-- 193 227 <xsl:call-template name="documentNodeText"/> -
documented-examples/trunk/lomdemo-e/script/lomscript.js
r36292 r36295 1 /*2 function openWindow(url) {3 4 window.open(url,"berry","width=400,height=300,toolbar=no");5 6 }7 */8 1 9 2 var parenttbody = new Array(); … … 11 4 var aftertbody = new Array(); 12 5 6 /* 7 function makeToggleItems() { 8 9 console.log("In makeToggleItems"); 10 11 var metatablelink=document.getElementById("metatablelink"); 12 var xmlrecordlink=document.getElementById("xmlrecordlink"); 13 14 var metatablediv=document.getElementById("metatablediv"); 15 var xmlrecordarea=document.getElementById("xmlrecordarea"); 16 17 metatablelink.onclick = function() { 18 metatablediv.style.display = "block"; 19 xmlrecordarea.style.display = "none"; 20 }; 21 22 xmlrecordlink.onclick = function() { 23 xmlrecordarea.style.display = "block"; 24 metatablediv.style.display = "none"; 25 }; 26 }*/ 27 28 function doShowHide(showItemID, hideItemID) { 29 30 //console.log("In makeToggleItems"); 31 32 var showItem=document.getElementById(showItemID); 33 var hideItem=document.getElementById(hideItemID); 34 35 showItem.style.display = "block"; 36 hideItem.style.display = "none"; 37 38 } 13 39 14 40 function showTBodyArea(category) { 15 console.log("In showTBodyArea");41 //console.log("In showTBodyArea"); 16 42 17 43 parenttbody[category].insertBefore(tbody[category],aftertbody[category]); … … 33 59 34 60 function hideTBodyArea(category) { 35 console.log("In hideTBodyArea");61 //console.log("In hideTBodyArea"); 36 62 tbody[category] = document.getElementById(category); 37 63 parenttbody[category] = tbody[category].parentNode; -
documented-examples/trunk/lomdemo-e/style/lom-style.css
r36292 r36295 1 :root { 2 --mdtabtabbg : #f0fff0; 1 :root { --pagewidth : 537px; } 2 .mdtabtabbg { background-color: #f0fff0; } 3 4 table.lom { 5 border-bottom: 4px solid #f0fff0; 6 /*border-bottom: 1px solid black;*/ 7 border-spacing: 0px; /*cellspacing: 0;*/ 8 width: var(--pagewidth); 3 9 } 4 10 5 6 .mdtexttab {width: 100px;11 .mdtexttab { 12 width: 100px; 7 13 text-align: center; 8 14 border-left: 1px solid black; … … 12 18 13 19 .mdtabdip {width: 10px; 14 border-bottom: 1px solid black; 15 background-color: white; 20 border-bottom: 1px solid black; 16 21 } 17 22 18 23 .mdtabblank {width: 100px; 19 border-bottom: 1px solid black; 20 background-color: white; 24 border-bottom: 1px solid black; 21 25 } 22 26 23 27 .mdtabfill { 24 border-bottom: 1px solid black; 25 background-color: white; 28 border-bottom: 1px solid black; 26 29 } 27 30 … … 33 36 } 34 37 38 textarea { 39 cols: 80; 40 rows: 25; 41 width: var(--pagewidth); 42 } 35 43 36 44 table.metadata 37 45 { 46 width: var(--pagewidth); 38 47 border-spacing: 0px 39 48 }
Note:
See TracChangeset
for help on using the changeset viewer.