forked from HeuristNetwork/heurist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
508 lines (404 loc) · 25.8 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
<?php
/**
* Main script initializing Heurist layout and performing initial search of parameter q is defined
*
* @package Heurist academic knowledge management system
* @link http://HeuristNetwork.org
* @copyright (C) 2005-2020 University of Sydney
* @author Artem Osmakov <artem.osmakov@sydney.edu.au>
* @license http://www.gnu.org/licenses/gpl-3.0.txt GNU License 3.0
* @version 4.0
*/
/*
* Licensed under the GNU License, Version 3.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at http://www.gnu.org/licenses/gpl-3.0.txt
* Unless required by applicable law or agreed to in writing, software distributed under the License is
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied
* See the License for the specific language governing permissions and limitations under the License.
*/
if( @$_REQUEST['recID'] || @$_REQUEST['recid'] || array_key_exists('website', $_REQUEST) || array_key_exists('embed', $_REQUEST)){
$recid = 0;
if(@$_REQUEST['recID']){
$recid = $_REQUEST['recID'];
}elseif(@$_REQUEST['recid']){
$recid = $_REQUEST['recid'];
}elseif(@$_REQUEST['id']){
$recid = $_REQUEST['id'];
}
if(@$_REQUEST['fmt']){
$format = $_REQUEST['fmt'];
}elseif(@$_REQUEST['format']){
$format = $_REQUEST['format'];
}else if (array_key_exists('website', $_REQUEST) || array_key_exists('embed', $_REQUEST)
|| (array_key_exists('field', $_REQUEST) && $_REQUEST['field']>0) )
{
$format = 'website';
//embed - when heurist is run on page on non-heurist server
if(array_key_exists('embed', $_REQUEST)){
define('PDIR','https://heuristplus.sydney.edu.au/h5-ao/');
}else{
define('PDIR','');
}
include dirname(__FILE__).'/hclient/widgets/cms/websiteRecord.php';
exit();
if(@$_REQUEST['field']>0){
$redirect = $redirect.'&field='.$_REQUEST['field'];
}
}else if (array_key_exists('field', $_REQUEST) && $_REQUEST['field']>0) {
$format = 'web&field='.$_REQUEST['field'];
}else{
$format = 'xml';
}
header('Location: redirects/resolver.php?db='.@$_REQUEST['db'].'&recID='.$recid.'&fmt='.$format);
return;
}else
if (@$_REQUEST['rty'] || @$_REQUEST['dty'] || @$_REQUEST['trm']){
if(@$_REQUEST['rty']) $s = 'rty='.$_REQUEST['rty'];
else if(@$_REQUEST['dty']) $s = 'dty='.$_REQUEST['dty'];
else if(@$_REQUEST['trm']) $s = 'trm='.$_REQUEST['trm'];
header('Location: redirects/resolver.php?db='.@$_REQUEST['db'].'&'.$s);
return;
}else if (@$_REQUEST['file'] || @$_REQUEST['thumb'] || @$_REQUEST['rurl']){
header( 'Location: hsapi/controller/file_download.php?'.$_SERVER['QUERY_STRING'] );
return;
}else if (@$_REQUEST['logo']){
$host_logo = realpath(dirname(__FILE__)."/../organisation_logo.jpg");
if(file_exists($host_logo)){
header("Content-type: image/jpg");
readfile($host_logo);
return;
}
}
define('IS_INDEX_PAGE',true);
define('PDIR','');
require_once(dirname(__FILE__)."/hclient/framecontent/initPage.php");
if($_SERVER["SERVER_NAME"]=='localhost'||$_SERVER["SERVER_NAME"]=='127.0.0.1'){
print '<script type="text/javascript" src="external/jquery.fancytree/jquery.fancytree-all.min.js"></script>';
}else{
print '<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.fancytree/2.16.1/jquery.fancytree-all.min.js"></script>';
}
?>
<!-- it is needed in preference dialog -->
<link rel="stylesheet" type="text/css" href="external/jquery.fancytree/skin-themeroller/ui.fancytree.css" />
<script type="text/javascript" src="external/jquery.layout/jquery.layout-latest.js"></script>
<!-- Gridster layout is an alternative similar to Windows tiles, not useful except with small
number of widgets. Currently it is commented out of the code in layout_default.js -->
<script type="text/javascript" src="external/js/jquery.ui-contextmenu.js"></script>
<!-- script type="text/javascript" src="ext/js/moment.min.js"></script
<script type="text/javascript" src="ext/js/date.format.js"></script>
-->
<!-- init layout and loads all apps.widgets -->
<script type="text/javascript" src="hclient/core/layout.js"></script>
<!-- array of possible layouts -->
<script type="text/javascript" src="layout_default.js"></script>
<script type="text/javascript" src="hclient/widgets/dropdownmenus/help_tips.js"></script>
<script type="text/javascript" src="hclient/core/temporalObjectLibrary.js"></script>
<script type="text/javascript" src="hclient/widgets/record/recordAction.js"></script>
<script type="text/javascript" src="hclient/widgets/record/recordAccess.js"></script>
<script type="text/javascript" src="hclient/widgets/record/recordAdd.js"></script>
<script type="text/javascript" src="hclient/widgets/record/recordAddLink.js"></script>
<script type="text/javascript" src="hclient/widgets/record/recordExportCSV.js"></script>
<script type="text/javascript" src="hclient/widgets/record/recordTemplate.js"></script>
<!-- DOCUMENTATION TODO: explain this -->
<!-- these scripts are loaded explicitely - for debug purposes -->
<script type="text/javascript" src="hclient/widgets/viewers/recordListExt.js"></script>
<script type="text/javascript" src="hclient/widgets/search/search_faceted.js"></script>
<script type="text/javascript" src="hclient/widgets/search/search_faceted_wiz.js"></script>
<script type="text/javascript" src="hclient/widgets/viewers/app_timemap.js"></script>
<script type="text/javascript" src="hclient/widgets/search/search.js"></script>
<script type="text/javascript" src="hclient/widgets/search/search_entity.js"></script>
<script type="text/javascript" src="hclient/widgets/search/search_quick.js"></script>
<script type="text/javascript" src="hclient/widgets/dropdownmenus/mainMenu.js"></script>
<script type="text/javascript" src="hclient/widgets/dropdownmenus/mainMenu6.js"></script>
<script type="text/javascript" src="hclient/widgets/search/svs_edit.js"></script>
<script type="text/javascript" src="hclient/widgets/search/svs_list.js"></script>
<script type="text/javascript" src="hclient/widgets/viewers/resultList.js"></script>
<script type="text/javascript" src="hclient/widgets/viewers/resultListMenu.js"></script>
<script type="text/javascript" src="hclient/widgets/viewers/resultListCollection.js"></script>
<script type="text/javascript" src="hclient/widgets/viewers/resultListDataTable.js"></script>
<script type="text/javascript" src="hclient/widgets/viewers/staticPage.js"></script>
<script type="text/javascript" src="hclient/widgets/dropdownmenus/navigation.js"></script>
<script type="text/javascript" src="hclient/widgets/digital_harlem/dh_search.js"></script>
<script type="text/javascript" src="hclient/widgets/digital_harlem/dh_maps.js"></script>
<script type="text/javascript" src="hclient/widgets/expertnation/expertnation_place.js"></script>
<script type="text/javascript" src="hclient/widgets/expertnation/expertnation_nav.js"></script>
<script type="text/javascript" src="hclient/widgets/viewers/connections.js"></script>
<!-- DEBUG -->
<script type="text/javascript" src="hclient/widgets/profile/profile_login.js"></script>
<!-- todo: load dynamically
<script type="text/javascript" src="hclient/widgets/editing/rec_search.js"></script>
<script type="text/javascript" src="hclient/widgets/editing/rec_relation.js"></script>
-->
<!-- move to profile.js dynamic load
<script type="text/javascript" src="external/jquery-ui-themeswitcher/jquery.ui.themeswitcher.js"></script>
-->
<!-- edit entity (load dynamically?) -->
<script type="text/javascript" src="<?php echo PDIR;?>hclient/widgets/editing/select_imagelib.js"></script>
<script type="text/javascript" src="<?php echo PDIR;?>hclient/widgets/editing/select_folders.js"></script>
<script type="text/javascript" src="<?php echo PDIR;?>hclient/widgets/editing/editing_input.js"></script>
<script type="text/javascript" src="<?php echo PDIR;?>hclient/widgets/editing/editing2.js"></script>
<script type="text/javascript" src="<?php echo PDIR;?>hclient/widgets/editing/editing_exts.js"></script>
<script type="text/javascript" src="<?php echo PDIR;?>hclient/widgets/editing/editTheme.js"></script>
<script type="text/javascript" src="<?php echo PDIR;?>hclient/widgets/cms/editCMS.js"></script>
<script type="text/javascript" src="<?php echo PDIR;?>external/js/ui.tabs.paging.js"></script>
<script type="text/javascript" src="<?php echo PDIR;?>external/js/evol.colorpicker.js" charset="utf-8"></script>
<link href="<?php echo PDIR;?>external/js/evol.colorpicker.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<?php echo PDIR;?>hclient/widgets/entity/configEntity.js"></script>
<script type="text/javascript" src="<?php echo PDIR;?>hclient/widgets/entity/manageEntity.js"></script>
<script type="text/javascript" src="<?php echo PDIR;?>hclient/widgets/entity/searchEntity.js"></script>
<script type="text/javascript" src="<?php echo PDIR;?>hclient/widgets/entity/manageRecords.js"></script>
<script type="text/javascript" src="<?php echo PDIR;?>hclient/widgets/entity/searchRecords.js"></script>
<script type="text/javascript" src="<?php echo PDIR;?>hclient/widgets/entity/manageRecUploadedFiles.js"></script>
<script type="text/javascript" src="<?php echo PDIR;?>hclient/widgets/entity/searchRecUploadedFiles.js"></script>
<script type="text/javascript" src="<?php echo PDIR;?>hclient/widgets/viewers/media_viewer.js"></script>
<script type="text/javascript" src="<?php echo PDIR;?>hclient/widgets/entity/manageDefRecStructure.js"></script>
<script type="text/javascript" src="<?php echo PDIR;?>hclient/widgets/entity/manageDefDetailTypes.js"></script>
<script type="text/javascript" src="<?php echo PDIR;?>hclient/widgets/entity/searchDefDetailTypes.js"></script>
<script type="text/javascript" src="<?php echo PDIR;?>admin/structure/import/importStructure.js"></script>
<script type="text/javascript" src="<?php echo PDIR;?>viewers/map/mapPublish.js"></script>
<script type="text/javascript" src="<?php echo PDIR;?>hclient/framecontent/publishDialog.js"></script>
<link rel="stylesheet" type="text/css" href="external/jquery.fancybox/jquery.fancybox.css" />
<script type="text/javascript" src="external/jquery.fancybox/jquery.fancybox.js"></script>
<script src="external/tinymce/tinymce.min.js"></script>
<script src="external/tinymce/jquery.tinymce.min.js"></script>
<!-- os, browser detector -->
<script type="text/javascript" src="external/js/platform.js"></script>
<!--
<script type="text/javascript" src="https://cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css"></script>
-->
<!-- -->
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/jszip-2.5.0/dt-1.10.21/b-1.6.2/b-html5-1.6.2/datatables.min.css"/>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/pdfmake.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/vfs_fonts.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/v/dt/jszip-2.5.0/dt-1.10.21/b-1.6.2/b-html5-1.6.2/datatables.min.js"></script>
<script type="text/javascript">
function onPageInit(success){
if(!success) return;
$(document).on('focusin', function(e) {
if ($(e.target).closest(".mce-window, .moxman-window").length) {
e.stopImmediatePropagation();
}
});
//
// cfg_widgets and cfg_layouts are defined in layout_default.js
//
window.hWin.HAPI4.LayoutMgr.init(cfg_widgets, cfg_layouts);
if($( "#heurist-about" ).dialog('instance')){
$( "#heurist-about" ).dialog("close");
}
//
// init layout
//
window.hWin.HAPI4.LayoutMgr.appInitAll( window.hWin.HAPI4.sysinfo['layout'], "#layout_panes");
//console.log('ipage layout '+(new Date().getTime() / 1000 - _time_debug));
_time_debug = new Date().getTime() / 1000;
onInitCompleted_PerformSearch();
}
//
// init about dialog
//
function onAboutInit(){
//definition of ABOUT dialog, called from Help > About, see content below
$( "#heurist-about" ).dialog(
{
autoOpen: true,
height: 180,
width: 450,
modal: true,
resizable: false,
draggable: false,
create:function(){
$(this).parent().find('.ui-dialog-titlebar').addClass('fullmode').hide();
}
/*hide: {
effect: "puff",
duration: 500
}*/
}
);
}
//
// Performs inital search: parameters from request or from user preferences
//
function onInitCompleted_PerformSearch(){
<?php
//returns total records in db and counts of active entries in dashboard
list($db_total_records, $db_has_active_dashboard, $db_workset_count) = $system->getTotalRecordsAndDashboard();
echo 'window.hWin.HAPI4.sysinfo.db_total_records = '.$db_total_records.';';
echo 'window.hWin.HAPI4.sysinfo.db_has_active_dashboard = '.$db_has_active_dashboard.';';
echo 'window.hWin.HAPI4.sysinfo.db_workset_count = '.$db_workset_count.';';
?>
if(window.hWin.HAPI4.sysinfo['layout']=='H4Default'){
//switch to FAP tab if q parameter is defined
if(window.hWin.HAPI4.sysinfo.db_total_records<1){
showTipOfTheDay(false);
}else{
window.hWin.HAPI4.LayoutMgr.putAppOnTopById('FAP');
var active_tab = '<?php echo str_replace("'","\'",@$_REQUEST['tab']);?>';
if(active_tab){
window.hWin.HAPI4.LayoutMgr.putAppOnTop(active_tab);
}
}
}else if(window.hWin.HAPI4.sysinfo.db_total_records<1){
//IJ request 2018-12-11 showTipOfTheDay(false);
}
var lt = window.hWin.HAPI4.sysinfo['layout'];
if(! (lt=='Beyond1914' || lt=='UAdelaide' ||
lt=='DigitalHarlem' || lt=='DigitalHarlem1935' || lt=='WebSearch' )){
if( window.hWin.HAPI4.SystemMgr.versionCheck() ) {
//version is old
return;
}
var editRecID = window.hWin.HEURIST4.util.getUrlParameter('edit_id', window.location.search);
if(editRecID>0){
//edit record
window.hWin.HEURIST4.ui.openRecordEdit(editRecID, null);
}else
if(window.hWin.HEURIST4.util.getUrlParameter('rec_rectype', window.location.search) ||
(window.hWin.HEURIST4.util.getUrlParameter('t', window.location.search) &&
window.hWin.HEURIST4.util.getUrlParameter('u', window.location.search)))
{
//add new record from bookmarklet - see recordEdit.php as alternative, it opens record editor in separate window
var url = window.hWin.HEURIST4.util.getUrlParameter('u', window.location.search);
var new_record_params = {
RecTypeID: window.hWin.HEURIST4.util.getUrlParameter('rec_rectype', window.location.search)
|| window.hWin.HEURIST4.util.getUrlParameter('rt', window.location.search),
OwnerUGrpID: window.hWin.HEURIST4.util.getUrlParameter('rec_owner', window.location.search),
NonOwnerVisibility: window.hWin.HEURIST4.util.getUrlParameter('rec_visibility', window.location.search),
tag: window.hWin.HEURIST4.util.getUrlParameter('tag', window.location.search)
||window.hWin.HEURIST4.util.getUrlParameter('k', window.location.search),
Title: window.hWin.HEURIST4.util.getUrlParameter('t', window.location.search),
URL: url,
ScratchPad: window.hWin.HEURIST4.util.getUrlParameter('d', window.location.search)
};
//default rectype for bookmarklet addition
if(url && !(new_record_params['RecTypeID']>0)){
if(window.hWin.HAPI4.sysinfo['dbconst']['RT_INTERNET_BOOKMARK']>0) {
new_record_params['RecTypeID'] = window.hWin.HAPI4.sysinfo['dbconst']['RT_INTERNET_BOOKMARK'];
}else if(window.hWin.HAPI4.sysinfo['dbconst']['RT_NOTE']>0) {
new_record_params['RecTypeID'] = window.hWin.HAPI4.sysinfo['dbconst']['RT_NOTE'];
}
}
//add new record
window.hWin.HEURIST4.ui.openRecordEdit(-1, null, {new_record_params:new_record_params});
}else if(window.hWin.HAPI4.sysinfo.db_has_active_dashboard>0) {
var _supress_dashboard = (window.hWin.HEURIST4.util.getUrlParameter('cms', window.hWin.location.search)>0);
//show dashboard (another place - after login in profle_login.js)
var prefs = window.hWin.HAPI4.get_prefs_def('prefs_sysDashboard', {showonstartup:1});
if(_supress_dashboard!==true && prefs.showonstartup==1){
var _keep = window.hWin.HAPI4.sysinfo.db_has_active_dashboard;
window.hWin.HAPI4.sysinfo.db_has_active_dashboard=0;
$(window.hWin.document).trigger(window.hWin.HAPI4.Event.ON_PREFERENCES_CHANGE); //hide button
window.hWin.HEURIST4.ui.showEntityDialog('sysDashboard',
{onClose:function(){
$(window.hWin.document).trigger(window.hWin.HAPI4.Event.ON_PREFERENCES_CHANGE);
}});
setTimeout(function(){window.hWin.HAPI4.sysinfo.db_has_active_dashboard = _keep;},1000);
}
}
}
//perform search in the case that parameter "q" is defined
var qsearch = '<?php echo trim(str_replace("'","\'",@$_REQUEST['q'])); ?>';
if(window.hWin.HAPI4.sysinfo.db_total_records>0 && !window.hWin.HEURIST4.util.isempty(qsearch)){
var qdomain = '<?=@$_REQUEST['w']?>';
var rules = '<?=@$_REQUEST['rules']?>';
if(window.hWin.HEURIST4.util.isempty(qdomain)) qdomain = 'a';
var request = {q: qsearch, w: qdomain, f: 'map', rules: rules, source:'init' };
//window.hWin.HEURIST4.query_request = request;
setTimeout(function(){
window.hWin.HAPI4.SearchMgr.doSearch(document, request);
}, 3000);
}
else if(!(lt=='DigitalHarlem' || lt=='DigitalHarlem1935' || lt=='WebSearch')){
if (!window.hWin.HEURIST4.util.getUrlParameter('cms')){
var init_search = window.hWin.HAPI4.get_prefs('defaultSearch');
if(window.hWin.HAPI4.sysinfo.db_total_records>100 &&
!window.hWin.HEURIST4.util.isempty(init_search))
{
var request = {q: init_search, w: 'a', f: 'map', source:'init' };
setTimeout(function(){
window.hWin.HAPI4.SearchMgr.doSearch(document, request);
}, 3000);
}else{
//trigger search finish to init some widgets
$(document).trigger(window.hWin.HAPI4.Event.ON_REC_SEARCH_FINISH, {recordset:null} );
}
}
}
//if database is empty show welcome screen
//if(!(window.hWin.HAPI4.sysinfo.db_total_records>0)){
// showTipOfTheDay(false);
//}
if(lt=='WebSearch'){
var active_tab = '<?php echo str_replace("'","\'",@$_REQUEST['views']);?>';
if(active_tab){
active_tab = active_tab.split(',')
if (!(active_tab.indexOf('map')<0 && active_tab.indexOf('list')<0)){
if(active_tab.indexOf('map')<0)
window.hWin.HAPI4.LayoutMgr.visibilityAppById('map', false);
if(active_tab.indexOf('list')<0)
window.hWin.HAPI4.LayoutMgr.visibilityAppById('list', false);
window.hWin.HAPI4.LayoutMgr.putAppOnTopById(active_tab[0]); //by layout_id
}
}
}
var fin_time = new Date().getTime() / 1000;
//console.log('ipage finished '+( fin_time - _time_debug)+ ' total: '+(fin_time-_time_start));
$(document).trigger(window.hWin.HAPI4.Event.ON_SYSTEM_INITED, []);
var os = platform?platform.os.family.toLowerCase():'';
if(os.indexOf('android')>=0 || os.indexOf('ios')>=0){ //test || os.indexOf('win')>=0
window.hWin.HEURIST4.msg.showElementAsDialog(
{element:document.getElementById('heurist-platform-warning'),
width:480, height:220,
title: 'Welcome',
buttons:{'Close':function(){ $(this).dialog( 'close' )} } });
}else if (window.hWin.HEURIST4.util.isIE() ) {
window.hWin.HEURIST4.msg.showMsgDlg('Heurist is not fully supported in Internet Explorer. Please use Chrome, Firefox, Safari or Edge.');
}
} //onInitCompleted_PerformSearch
</script>
<?php
if(strpos('heuristplus', $_SERVER["SERVER_NAME"])===false){
?>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-132203312-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-132203312-1');
</script>
<?php
}else{
?>
<!-- Global Site Tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-131444459-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-131444459-1');
</script>
<?php
}
?>
</head>
<body style="background-color:#c9c9c9">
<div id="layout_panes" style="height:100%">
</div>
<div id="heurist-about" style="width:300px;display:none;">
<div class='logo'></div>
<h4>Heurist Academic Knowledge Management System</h4>
<p style="margin-top:1em;">version <?=HEURIST_VERSION?></p>
<p style="margin-top: 1em;">Copyright (C) 2005-2020 <a href="http://sydney.edu.au/arts/" style="outline:0;" target="_blank">University of Sydney</a></p>
</div>
<div id="heurist-platform-warning" style="display:none;">
<p style="padding:10px">Heurist is designed primarily for use with a keyboard and mouse. Tablets are not fully supported at this time, except for data collection on Android (see FAIMS in the Help system).</p>
<p style="padding:10px">Please <?php echo CONTACT_HEURIST_TEAM;?> for further information or to express an interest in a tablet version</p>
</div>
<div id="heurist-dialog">
</div>
</body>
</html>