forked from ormestad/publications
-
Notifications
You must be signed in to change notification settings - Fork 4
/
admin.php
96 lines (86 loc) · 3 KB
/
admin.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
<?php
require 'lib/global.php';
if($USER->auth<2) {
// Not authorized
header('Location:not_authorized.php');
}
// Render Page
//=================================================================================================
?>
<!doctype html>
<html class="no-js" lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo $CONFIG['site']['name']; ?></title>
<link rel="stylesheet" href="css/foundation.css">
<link rel="stylesheet" href="css/app.css">
<link rel="stylesheet" href="css/icons/foundation-icons.css" />
</head>
<body>
<?php require '_menu.php'; ?>
<div class="row">
<br>
<div class="large-12 columns">
<div class="card">
<div class="card-divider">
PubTrawl
</div>
<div class="card-section">
<p>This is a huge and slow process of fetching publications from pubmed. Before you start it's best to
run a the self-test to make sure this script works as intended</p>
<div class="button-group">
<button class="small button right" id="selftest_button">Run self-test</button>
<a href="/pubtrawl.php" class="small button right disabled" id="pubtrawl_button">Start pubtrawl</a>
</div>
<div class="" id="test_results">
</div>
</div>
</div>
</div>
</div>
<div class="row">
<br>
<div class="large-12 columns">
<div class="card">
<div class="card-divider">
Clarity LIMS sync status
</div>
<div class="card-section large-12 columns">
<p>Update database with LIMS information of labs and researchers that will be used when trawling for publications. <br>Please check for and correct <a href="researchers.php?lab_status=error">errors</a> before starting trawl!</p>
<hr>
<div class="large-6 columns" id="clarity_status"></div>
<div class="large-6 columns" id="clarity_status_message"></div>
</div>
<div class="card-section large-12 columns">
<div class="button-group">
<button class="small button right" id="load_clarity">Update</button>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<br>
<div class="large-12 columns">
<div class="card">
<div class="card-divider">
SciLifeLab Publication database sync status
</div>
<div class="card-section">
<p>This will fetch all NGI Stockholm publications stored at <a href="https://publications.scilifelab.se/">publications.scilifelab.se</a> and mark each of them accordingly in this database. You can also get a list of 'verified' publications currently not in the scilifelab DB</p>
<span class="start_sync button">Begin syncing from publications.scilifelab.se</span>
<span class="get_verified button">Get verified publications</span>
<div id="verified_list"></div>
<div id="sync_status_message"></div>
</div>
</div>
</div>
</div>
<script src="js/vendor/jquery.js"></script>
<script src="js/vendor/what-input.js"></script>
<script src="js/vendor/foundation.js"></script>
<script src="js/app.js"></script>
</body>
</html>