@@ -1106,7 +1106,7 @@ class DataHarmonizer {
1106
1106
let row_html = '' ;
1107
1107
for ( const section of this . sections ) {
1108
1108
row_html += `<tr class="section">
1109
- <td colspan="${ this . columnHelpEntries . length } "><h3>${
1109
+ <td colspan="${ this . columnHelpEntries . length - 1 } "><h3>${
1110
1110
section . title || section . name
1111
1111
} </h3></td>
1112
1112
</tr>
@@ -1118,7 +1118,7 @@ class DataHarmonizer {
1118
1118
1119
1119
row_html += '<tr>' ;
1120
1120
if ( this . columnHelpEntries . includes ( 'column' ) ) {
1121
- row_html += `<td class="label">${ slot_dict . title } <br/ >${ slot_uri } </td>` ;
1121
+ row_html += `<td class="label">${ slot_dict . title } <br>${ slot_uri } </td>` ;
1122
1122
}
1123
1123
if ( this . columnHelpEntries . includes ( 'description' ) ) {
1124
1124
row_html += `<td>${ slot_dict . description } </td>` ;
@@ -1143,7 +1143,7 @@ class DataHarmonizer {
1143
1143
let title = enumeration . title != enumeration . name ? enumeration . title : '' ;
1144
1144
enum_html += `<tr class="section">
1145
1145
<td colspan="2" id="${ enumeration . name } ">${ enumeration . name } </td>
1146
- <td colspan="2">( ${ title } ) <br/ >${ this . renderSemanticID ( enumeration . enum_uri ) } </td>
1146
+ <td colspan="2" style="font-size:1.2rem;">" ${ title } " <br>${ this . renderSemanticID ( enumeration . enum_uri ) } </td>
1147
1147
</tr>` ;
1148
1148
1149
1149
for ( const item_key in enumeration . permissible_values ) {
@@ -1158,33 +1158,34 @@ class DataHarmonizer {
1158
1158
}
1159
1159
}
1160
1160
1161
-
1162
1161
var win = window . open (
1163
1162
'' ,
1164
1163
'Reference' ,
1165
- 'toolbar=no,location=no ,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=1000,height=600'
1164
+ 'toolbar=no,location=yes ,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=1000,height=600'
1166
1165
) ;
1167
1166
1168
- win . document . head . innerHTML = `
1169
- <meta charset="utf-8">
1170
- <title>${ i18next . t ( 'reference_guide_title' ) } "${
1167
+ win . document . open ( ) ; // For reloads
1168
+ win . document . write ( `<!DOCTYPE html>
1169
+ <html lang="en">
1170
+ <head>
1171
+ <meta charset="utf-8">
1172
+ <title>${ i18next . t ( 'reference_guide_title' ) } "${
1171
1173
schema_template . title || schema_template . name
1172
1174
} " template</title>
1173
- <meta name="description" content="${ schema_template . description || '' } ">
1174
- <style>${ style } </style>
1175
- ` ;
1176
-
1177
- win . document . body . innerHTML = `
1178
- <div>
1175
+ <meta name="description" content="${ schema_template . description || '' } ">
1176
+ <style>${ style } </style>
1177
+ </head>
1178
+ <body>
1179
+ <div>
1179
1180
<h2>${ i18next . t ( 'reference_guide_title' ) } "${
1180
1181
schema_template . title || schema_template . name
1181
1182
} " template</h2>
1182
- <hr size="2" />
1183
+ <hr/>
1183
1184
<p>${ schema_template . description || '' } </p>
1184
1185
1185
1186
<table>
1186
- <thead>
1187
- <tr>
1187
+ <thead>
1188
+ <tr>
1188
1189
${
1189
1190
this . columnHelpEntries . includes ( 'column' )
1190
1191
? `<th class="label">${ i18next . t ( 'help-sidebar__column' ) } </th>`
@@ -1212,28 +1213,25 @@ class DataHarmonizer {
1212
1213
? `<th class="data_status">${ i18next . t ( 'help-sidebar__menus' ) } </th>`
1213
1214
: ''
1214
1215
}
1215
- </tr>
1216
- </thead>
1217
- <tbody>
1218
- ${ row_html }
1219
- </tbody>
1220
- </table>
1216
+ </tr>
1217
+ </thead>
1218
+ <tbody>
1219
+ ${ row_html }
1220
+ </tbody>
1221
+ </table>
1221
1222
</div>
1222
-
1223
- <div>
1224
- <table>
1225
- <thead>
1226
- <tr class="section">
1227
- <td colspan="4"><h3>${ i18next . t ( 'help-picklists' ) } </h3>
1228
- </td>
1229
- </tr>
1230
- </thead>
1231
- <tbody>${ enum_html } </tbody>
1232
- </table>
1233
- </div>
1234
- </body>
1235
- </html>
1236
- ` ;
1223
+ <div>
1224
+ <table>
1225
+ <thead>
1226
+ <tr class="section">
1227
+ <th colspan="4">${ i18next . t ( 'help-picklists' ) } </th>
1228
+ </tr>
1229
+ </thead>
1230
+ <tbody>${ enum_html } </tbody>
1231
+ </table>
1232
+ </div>
1233
+ </body>
1234
+ </html>` ) ;
1237
1235
return false ;
1238
1236
}
1239
1237
@@ -1518,8 +1516,8 @@ class DataHarmonizer {
1518
1516
// Close current dialog and switch to error message
1519
1517
//$('specify-headers-modal').modal('hide');
1520
1518
//$('#unmapped-headers-modal').modal('hide');
1521
- const errMsg = `The template for the loaded file has a configuration error:<br/ >
1522
- <strong>${ parent . title } </strong><br/ >
1519
+ const errMsg = `The template for the loaded file has a configuration error:<br>
1520
+ <strong>${ parent . title } </strong><br>
1523
1521
This is a field that has no parent, or a section that has no fields.` ;
1524
1522
$ ( '#unmapped-headers-list' ) . html ( errMsg ) ;
1525
1523
$ ( '#unmapped-headers-modal' ) . modal ( 'show' ) ;
@@ -2030,7 +2028,7 @@ class DataHarmonizer {
2030
2028
if ( field . sources && field . sources . length ) {
2031
2029
let menus = [ ] ;
2032
2030
for ( const item of field . sources ) {
2033
- menus . push ( '<a href="#' + item + '" target="_self ">' + item + '</a>' ) ;
2031
+ menus . push ( '<a href="#' + item + '" target="Reference ">' + item + '</a>' ) ;
2034
2032
}
2035
2033
guide . menus = '<ul><li>' + menus . join ( '</li><li>' ) + '</li></ul>' ;
2036
2034
/*
0 commit comments