Revision 72553a2d
Added by koszko over 1 year ago
| html/item_preview.js | ||
|---|---|---|
| 73 | 73 |
if (preview_object === undefined) |
| 74 | 74 |
preview_object = clone_template("resource_preview");
|
| 75 | 75 |
|
| 76 |
preview_object.conforms_to.innerHTML = ""; |
|
| 77 |
const schema_link = document.createElement("a");
|
|
| 78 |
schema_link.href = resource.$schema; |
|
| 79 |
schema_link.innerText = resource.$schema; |
|
| 80 |
preview_object.conforms_to.append(schema_link); |
|
| 81 |
|
|
| 76 | 82 |
preview_object.identifier.innerText = resource.identifier; |
| 77 | 83 |
preview_object.long_name.innerText = resource.long_name; |
| 78 | 84 |
preview_object.uuid.innerText = resource.uuid; |
| ... | ... | |
| 104 | 110 |
if (preview_object === undefined) |
| 105 | 111 |
preview_object = clone_template("mapping_preview");
|
| 106 | 112 |
|
| 113 |
preview_object.conforms_to.innerHTML = ""; |
|
| 114 |
const schema_link = document.createElement("a");
|
|
| 115 |
schema_link.href = mapping.$schema; |
|
| 116 |
schema_link.innerText = mapping.$schema; |
|
| 117 |
preview_object.conforms_to.append(schema_link); |
|
| 118 |
|
|
| 107 | 119 |
preview_object.identifier.innerText = mapping.identifier; |
| 108 | 120 |
preview_object.long_name.innerText = mapping.long_name; |
| 109 | 121 |
preview_object.uuid.innerText = mapping.uuid; |
Also available in: Unified diff
assume and use "$schema" properties in item definitions