Merge branch 'V2-branch' into master

This commit is contained in:
sosguns2002 2017-06-04 16:10:35 +03:00 committed by GitHub
commit 1802dae7fb
21 changed files with 1464 additions and 48 deletions

View File

@ -70,6 +70,10 @@ class Application(tornado.web.Application):
(r"/", madAppQueryGenerator),
(r"/importing-controller", importingControllerHandler),
(r"/importing-text-controller", importingTextsControllerHandler),
(r"/save-config-controller", profileCreationHandler),
(r"/download-config-controller", profileServeHandler),
(r"/upload-profile-controller", profileUploadHandler),
(r"/create-upload-profile", createUploadProfileHandler),
(r"/?$", madAppBarHandler),
(r"/[^/]+/?$", madAppHandler),
(r"/[^/]+/.+$", madAppDataHandler)
@ -316,6 +320,8 @@ class madAppQueryGenerator(BaseHandler):
# Get the unique user id from the coookie set
user_id = self.get_secure_cookie('madgikmining')
if user_id is None:
return
# data to be sent
data = {}
try:
@ -441,19 +447,152 @@ class madAppQueryGenerator(BaseHandler):
pass
self.write(json.dumps(data))
self.flush()
self.finish()
class saveProfileHandler(BaseHandler):
class profileCreationHandler(BaseHandler):
def post(self):
"""Controls the importing job as follows:
*** load-raw-data (reading and saving them in the DB)"""
try:
user_id = self.get_secure_cookie('madgikmining')
if 'saveprofile' in self.request.arguments:
print "asda"
if user_id is None:
return
import sys
sys.path.append(msettings.MADIS_PATH)
import madis
# get the database cursor
# profile file name
profile_file_name = "/tmp/OAMiningProfile_{0}.oamp".format(user_id)
cursor=madis.functions.Connection(profile_file_name).cursor()
# Create poswords table
cursor.execute("drop table if exists poswords", parse=False)
cursor.execute("create table poswords(c1,c2)", parse=False)
# Create negwords table
cursor.execute("drop table if exists negwords", parse=False)
cursor.execute("create table negwords(c1,c2)", parse=False)
# Create filters table
cursor.execute("drop table if exists filters", parse=False)
cursor.execute("create table filters(c1,c2)", parse=False)
# Create grants table
cursor.execute("drop table if exists grants", parse=False)
cursor.execute("create table grants(c1)", parse=False)
if 'poswords' in self.request.arguments and self.request.arguments['poswords'][0] != '{}':
# construct math string for positive words matching calculation with weights
pos_words = json.loads(self.request.arguments['poswords'][0])
cursor.executemany("insert into poswords(c1,c2) values(?,?)",
(
(key, value,) for key, value in pos_words.iteritems()
)
)
if 'negwords' in self.request.arguments and self.request.arguments['negwords'][0] != '{}':
# construct math string for negative words matching calculation with weights
neg_words = json.loads(self.request.arguments['negwords'][0])
cursor.executemany("insert into negwords(c1,c2) values(?,?)",
(
(key, value,) for key, value in neg_words.iteritems()
)
)
if 'filters' in self.request.arguments and self.request.arguments['filters'][0] != '{}':
# construct math string for negative words matching calculation with weights
filters = json.loads(self.request.arguments['filters'][0])
cursor.executemany("insert into filters(c1,c2) values(?,?)",
(
(key, value,) for key, value in filters.iteritems()
)
)
if numberOfGrantsUploaded(user_id, self.get_secure_cookie('madgikmining_grantsuploaded')) != 0:
cursor.execute("insert into grants select stripchars(c1) as c1 from (file '/tmp/p{0}.csv')".format(user_id))
cursor.close()
self.write(json.dumps({'respond': "File ploaded.<br><b>1 Code</b> loaded! <i>Please make sure that you separate each code with newline!</i>"}))
except Exception as ints:
self.write(json.dumps({'respond': "<b style=\"color: red\">SOomething went very wrong!</b>"}))
self.write(json.dumps({'respond': "<b style=\"color: red\">Mining profile couldn't be saved!</b>"}))
print ints
return
self.finish()
class profileServeHandler(BaseHandler):
passwordless=True
def get(self):
try:
user_id = self.get_secure_cookie('madgikmining')
if user_id is None:
return
if 'saveprofile' in self.request.arguments:
print "asda"
profile_file_name = "/tmp/OAMiningProfile_{0}.oamp".format(user_id)
buf_size = 4096
self.set_header('Content-Type', 'application/octet-stream')
self.set_header('Content-Disposition', 'attachment; filename=' + "OAMiningProfile_{0}.oamp".format(user_id))
self.flush()
with open(profile_file_name, 'r') as f:
while True:
data = f.read(buf_size)
if not data:
break
self.write(data)
self.finish()
# TODO delete file after sending if needed
except Exception as ints:
self.write(json.dumps({'respond': "<b style=\"color: red\">Something went very wrong!</b>"}))
print ints
return
class profileUploadHandler(BaseHandler):
def post(self):
try:
user_id = self.get_secure_cookie('madgikmining')
if user_id is None:
return
# get file info and body from post data
fileinfo = self.request.files['upload'][0]
fname = fileinfo['filename']
extn = os.path.splitext(fname)[1]
# must be .pdf or .json
if extn != ".oamp":
self.write(json.dumps({'respond': "<b style=\"color: red\">File must be .oamp compatible profile</b>"}))
return
# write data to physical file
cname = "/tmp/profile{0}.oamp".format(user_id)
fh = open(cname, 'w')
fh.write(fileinfo['body'])
fh.close()
# extract data from profile file
import sys
sys.path.append(msettings.MADIS_PATH)
import madis
# get the profile database cursor
cursor=madis.functions.Connection(cname).cursor()
# data to be sent
data = {}
# Write to csv file the grants ids
if len([r for r in cursor.execute("SELECT name FROM sqlite_master WHERE type='table' AND name='grants'")]):
cursor.execute("output '/tmp/p{0}.csv' select * from grants".format(user_id))
numberOfGrants = numberOfGrantsUploaded(user_id, "puppet_value")
self.set_secure_cookie('madgikmining_grantsuploaded', str(numberOfGrants))
data['grants'] = numberOfGrants
# write to json the poswords
if len([r for r in cursor.execute("SELECT name FROM sqlite_master WHERE type='table' AND name='poswords'")]):
results = [r for r in cursor.execute("select c1, c2 from poswords")]
data['poswords'] = {value:key for value, key in results}
# write to json the negwords
if len([r for r in cursor.execute("SELECT name FROM sqlite_master WHERE type='table' AND name='negwords'")]):
results = [r for r in cursor.execute("select c1, c2 from negwords")]
data['negwords'] = {value:key for value, key in results}
# write to json the filters
if len([r for r in cursor.execute("SELECT name FROM sqlite_master WHERE type='table' AND name='filters'")]):
results = [r for r in cursor.execute("select c1, c2 from filters")]
data['filters'] = {value:key for value, key in results}
cursor.close()
self.write(json.dumps(data))
self.finish()
except Exception as ints:
self.write(json.dumps({'respond': "<b style=\"color: red\">Something went very wrong!</b>"}))
print ints
return
@ -466,7 +605,8 @@ class importingControllerHandler(BaseHandler):
try:
user_id = self.get_secure_cookie('madgikmining')
if user_id is None:
return
csv_file_name = "/tmp/p{0}.tsv".format(user_id)
csv_file = open(csv_file_name, 'w')
@ -592,6 +732,23 @@ class importingTextsControllerHandler(BaseHandler):
return
class createUploadProfileHandler(BaseHandler):
passwordless=True
# When loading the page first time and evry refresh
def get(self):
if 'data' in self.request.arguments:
return
else:
# check if we already gave client a user_id
user_id = self.get_secure_cookie('madgikmining')
if not user_id:
# give him a unique user_id
user_id = 'user{0}'.format(datetime.datetime.now().microsecond + (random.randrange(1, 100+1) * 100000))
self.set_secure_cookie('madgikmining', user_id)
# check if he already uploaded his grants ids and inform him via a message
self.render('create_upload_profile.html', settings=msettings)
class madAppHandler(BaseHandler):
def get(self):

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

@ -0,0 +1,144 @@
.tm-toolbar .uk-subnav-line .custom-discover-li {
color:#05007A !important;
background:#fff;
display: block;
}
.tm-toolbar .uk-subnav-line .custom-discover-li a{
color:#05007A !important;
}
.custom-discover-toolbar ul.uk-subnav.uk-subnav-line{
background-color: #f25f30 !important;
}
.custom-discover-toolbar .inner {
background-color: #f25f30 !important;
}
.custom-discover-toolbar{
border-top-color:#f25f30 !important;
}
.custom-footer{
position:relative;
bottom:0;
left:0;
}
.custom-external {
background: rgba(0, 0, 0, 0) url("/assets/icon_external.png") no-repeat scroll left center;
padding: 0 0 0 16px;
}
.custom-navbar-toggle-icon, .custom-user-mini-panel{
color:#444 !important
}
.custom-user-mini-panel a{
color:rgb(36, 91, 204);
}
.custom-main-content{
min-height: 550px;
}
.custom-autocomplete .uk-nav-autocomplete > li > a:hover {
background: #00a8e6 none repeat scroll 0 0;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.05) inset;
color: #FFF;
outline: medium none;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1);
}
.custom-autocomplete .uk-nav-navbar > li > a {
color: #444;
}
.custom-description-list-horizontal{ line-height:200%}
.uk-alert-default {
background: #fff none repeat scroll 0 0;
border: 1px solid #ddd;
border-radius: 4px;
color: #444;
height: 30px;
max-width: 100%;
padding: 4px 6px;
}
.custom-hidden-dropdown-menu {position:static !important;}
.searchFilterBoxValues {overflow:auto; max-height:200px; }
.selected-filters-box {margin:5px; background-color:#F8F8F8; }
.search-form {margin:5px; }
.clickable { cursor:pointer; }
.search-filters .uk-accordion-title{
font-size: 14px;
line-height: 18px;
}
.OPEN {
background: rgba(0, 0, 0, 0) url("/static/openAccess.png") no-repeat scroll right center;
padding-right: 18px;
min-height: 18px;
}
.EMBARGO, .CLOSED, .RESTRICTED {
background: rgba(0, 0, 0, 0) url("/static/closedAccess.png") no-repeat scroll right center;
padding-right: 18px;
}
.sc39 {
background: rgba(0, 0, 0, 0) url("/static/sc39.png") no-repeat scroll right center;
padding-right: 24px;
}
.projectIcon {
display: inline-table;
}
.dateFilter .mydp{
margin-top:5px;
}
.tooltip {
max-width: none;
background: rgba(100, 100, 100, 1);
}
.custom-select-mini{
max-width:170px !important;
}
.custom-icon {
line-height: unset;
}
/*.custom-tab-content-large{
min-height: 800px;
}
*/
.custom-tab-content {
min-height: 250px;
}
.custom-dataTable-content {
min-height: 600px;
}
.filterItem span {
display: inline-flex;
}
.filterItem .filterName {
max-width: 71%;
}
.browseFilters .filterItem .filterName {
max-width: 68%;
}
.filterItem .filterNumber {
width: 20%;
}
.filterItem span {
white-space: nowrap;
}
.filterItem span div {
overflow: hidden;
text-overflow: ellipsis;
}
.browseFilters{
overflow-y: auto;
overflow-x: hidden;
max-height:265px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@ -0,0 +1,602 @@
@import url('https://fonts.googleapis.com/css?family=Josefin+Sans|Raleway|Roboto|Roboto:900|Roboto+Condensed|Roboto+Mono|Roboto+Slab');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400');
.hero_to_top {
}
.image-front-topbar {
margin-top:-40px;
}
.tm-header {
/*padding-top:40px;*/
}
.tm-toolbar {
border-top: 5px solid #05007A;
position:relative;
color: #fff;
padding-top: 0px;
padding-bottom:0px;
background:rgba(255,255,255, 0.0);
/*background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0)), url(/images/toolbar_bg.png);*/
}
.tm-toolbar .forimage {
background:rgba(255,255,255, 0.4);
}
.uk-section-overlap {
/*margin-top:-40px!important;*/
}
.uk-sticky{
}
.tm-header .uk-navbar-left {position:relative;z-index:9999!important;}
.tm-header .uk-logo {padding: 5px 10px 10px 10px; position:relative;z-index:1000!important;}
.tm-header .uk-navbar-transparent{
/* background:rgba(255,255,255, 0.7);*/
padding-top:4px;
}
.inner {
left:0px;
background-color: #05007A;
}
.tm-toolbar .uk-container {
padding-right:0px;
}
.tm-toolbar ul.uk-subnav.uk-subnav-line{
background-color: #05007A;
padding-top:0px;
transform: skew(25deg);
padding-right:10px;
margin-right:10px;
padding-left:0px;
}
.tm-toolbar .uk-subnav-line li {
padding:5px 25px 5px 25px;
/*transition: background 0.2s;*/
/* display:inline-block;*/
font-family:Roboto!important;
font-weight:900!important;
text-transform:uppercase!important;
font-size:12px!important;
opacity:1!important;
display:inline-block;
}
.tm-toolbar .uk-subnav-line > :before {
content: none;
display: block;
/* display: inline-block*/
height: 10px;
vertical-align: middle
}
.uk-subnav-line > :nth-child(n + 2):before {
margin-right: 10px;
border-left: 0px ;
}
.tm-toolbar .uk-subnav-line li a{
display: block;
text-decoration:none;
transform: skew(-25deg);
font-family:Roboto:900!important;
text-transform:uppercase!important;
font-size:13px!important;
opacity:1!important;
color:#fff!important;
}
.tm-toolbar .uk-subnav-line li:hover {
color:#05007A!important;
background:#fff;
display: block;
}
.tm-toolbar .uk-subnav-line li a:hover,
.tm-toolbar .uk-subnav-line li:hover a{
display: block;
color:#05007A!important;
}
.tm-toolbar .uk-dotnav, .tm-toolbar .uk-subnav {
margin-bottom:0px!important;
}
.movetotop .uk-slidenav-position{
/*top:-130px;
z-index:5;*/
}
.uk-navbar-container:not(.uk-navbar-transparent) {
background: #fff;
box-shadow: 2px 15px 50px rgba(41, 44, 61, .1);
}
.uk-navbar-sticky {
box-shadow: 2px 15px 50px rgba(41, 44, 61, .1);
}
.navbar .nav>li>.dropdown-menu, .uk-navbar-dropdown
{display: none;
position: absolute;
z-index: 1020;
box-sizing: border-box;
width: 200px;
padding: 25px;
background: #fff;
color: #4F5260;
border-radius: 2px;
box-shadow: 2px 15px 50px rgba(41, 44, 61, .1)
}
.uk-navbar-container:not(.uk-navbar-transparent) a, .uk-navbar-container:not(.uk-navbar-transparent) .uk-link,
.uk-offcanvas-bar a, .uk-offcanvas-bar .uk-link, .tm-toolbar a, .tm-toolbar .uk-link {
color:#292C3D;
color: #245BCC;
font-size: 14px;
line-height: 18px;
}
a:hover, .uk-link:hover{
color: #D53B23;
}
.uk-light .uk-navbar-nav>li>a, .uk-section-primary:not(.uk-preserve-color) .uk-navbar-nav>li>a, .uk-section-secondary:not(.uk-preserve-color) .uk-navbar-nav>li>a, .uk-card-primary.uk-card-body .uk-navbar-nav>li>a, .uk-card-primary>:not([class*='uk-card-media']) .uk-navbar-nav>li>a, .uk-card-secondary.uk-card-body .uk-navbar-nav>li>a, .uk-card-secondary>:not([class*='uk-card-media']) .uk-navbar-nav>li>a, .uk-overlay-primary .uk-navbar-nav>li>a, .uk-navbar-container:not(.uk-navbar-transparent) .uk-navbar-nav>li>a, .uk-offcanvas-bar .uk-navbar-nav>li>a, .tm-toolbar .uk-navbar-nav>li>a {
color:#292C3D;}
.uk-light .uk-navbar-nav>li.uk-active>a, .uk-section-primary:not(.uk-preserve-color) .uk-navbar-nav>li.uk-active>a, .uk-section-secondary:not(.uk-preserve-color) .uk-navbar-nav>li.uk-active>a, .uk-card-primary.uk-card-body .uk-navbar-nav>li.uk-active>a, .uk-card-primary>:not([class*='uk-card-media']) .uk-navbar-nav>li.uk-active>a, .uk-card-secondary.uk-card-body .uk-navbar-nav>li.uk-active>a, .uk-card-secondary>:not([class*='uk-card-media']) .uk-navbar-nav>li.uk-active>a, .uk-overlay-primary .uk-navbar-nav>li.uk-active>a, .uk-navbar-container:not(.uk-navbar-transparent) .uk-navbar-nav>li.uk-active>a, .uk-offcanvas-bar .uk-navbar-nav>li.uk-active>a, .tm-toolbar .uk-navbar-nav>li.uk-active>a
color:#292C3D;}
.uk-light .uk-navbar-nav>li>a::before, .uk-section-primary:not(.uk-preserve-color) .uk-navbar-nav>li>a::before,
.uk-section-secondary:not(.uk-preserve-color) .uk-navbar-nav>li>a::before,
.uk-card-primary.uk-card-body .uk-navbar-nav>li>a::before,
.uk-card-primary>:not([class*='uk-card-media']) .uk-navbar-nav>li>a::before, .
uk-card-secondary.uk-card-body .uk-navbar-nav>li>a::before,
.uk-card-secondary>:not([class*='uk-card-media']) .uk-navbar-nav>li>a::before,
.uk-overlay-primary .uk-navbar-nav>li>a::before, .uk-navbar-container:not(.uk-navbar-transparent) .uk-navbar-nav>li>a::before,
.uk-offcanvas-bar .uk-navbar-nav>li>a::before, .tm-toolbar .uk-navbar-nav>li>a::before {
background-color: #128DD5;
}
.uk-navbar-nav>li>a::before {
/*height:2px;*/
background-color: #128DD5!important;
}
.uk-light .uk-navbar-nav>li:hover>a, .uk-light .uk-navbar-nav>li>a:focus, .uk-light .uk-navbar-nav>li>a.uk-open,
.uk-section-primary:not(.uk-preserve-color) .uk-navbar-nav>li:hover>a,
.uk-section-primary:not(.uk-preserve-color) .uk-navbar-nav>li>a:focus,
.uk-section-primary:not(.uk-preserve-color) .uk-navbar-nav>li>a.uk-open,
.uk-section-secondary:not(.uk-preserve-color) .uk-navbar-nav>li:hover>a,
.uk-section-secondary:not(.uk-preserve-color) .uk-navbar-nav>li>a:focus,
.uk-section-secondary:not(.uk-preserve-color) .uk-navbar-nav>li>a.uk-open,
.uk-card-primary.uk-card-body .uk-navbar-nav>li:hover>a, .uk-card-primary.uk-card-body .uk-navbar-nav>li>a:focus,
.uk-card-primary.uk-card-body .uk-navbar-nav>li>a.uk-open,
.uk-card-primary>:not([class*='uk-card-media']) .uk-navbar-nav>li:hover>a,
.uk-card-primary>:not([class*='uk-card-media']) .uk-navbar-nav>li>a:focus,
.uk-card-primary>:not([class*='uk-card-media']) .uk-navbar-nav>li>a.uk-open,
.uk-card-secondary.uk-card-body .uk-navbar-nav>li:hover>a,
.uk-card-secondary.uk-card-body .uk-navbar-nav>li>a:focus,
.uk-card-secondary.uk-card-body .uk-navbar-nav>li>a.uk-open,
.uk-card-secondary>:not([class*='uk-card-media']) .uk-navbar-nav>li:hover>a,
.uk-card-secondary>:not([class*='uk-card-media']) .uk-navbar-nav>li>a:focus,
.uk-card-secondary>:not([class*='uk-card-media']) .uk-navbar-nav>li>a.uk-open,
.uk-overlay-primary .uk-navbar-nav>li:hover>a, .uk-overlay-primary .uk-navbar-nav>li>a:focus,
.uk-overlay-primary .uk-navbar-nav>li>a.uk-open, .uk-navbar-container:not(.uk-navbar-transparent) .uk-navbar-nav>li:hover>a,
.uk-navbar-container:not(.uk-navbar-transparent) .uk-navbar-nav>li>a:focus,
.uk-navbar-container:not(.uk-navbar-transparent) .uk-navbar-nav>li>a.uk-open,
.uk-offcanvas-bar .uk-navbar-nav>li:hover>a, .uk-offcanvas-bar .uk-navbar-nav>li>a:focus,
.uk-offcanvas-bar .uk-navbar-nav>li>a.uk-open, .tm-toolbar .uk-navbar-nav>li:hover>a,
.tm-toolbar .uk-navbar-nav>li>a:focus, .tm-toolbar .uk-navbar-nav>li>a.uk-open {
color: #128DD5;
}
.uk-light .uk-navbar-nav > li:hover > a, .uk-light .uk-navbar-nav > li > a:focus,
.uk-light .uk-navbar-nav > li > a.uk-open, .uk-section-primary:not(.uk-preserve-color) .uk-navbar-nav > li:hover > a,
.uk-section-primary:not(.uk-preserve-color) .uk-navbar-nav > li > a:focus,
.uk-section-primary:not(.uk-preserve-color) .uk-navbar-nav > li > a.uk-open,
.uk-section-secondary:not(.uk-preserve-color) .uk-navbar-nav > li:hover > a,
.uk-section-secondary:not(.uk-preserve-color) .uk-navbar-nav > li > a:focus,
.uk-section-secondary:not(.uk-preserve-color) .uk-navbar-nav > li > a.uk-open,
.uk-card-primary.uk-card-body .uk-navbar-nav > li:hover > a, .uk-card-primary.uk-card-body .uk-navbar-nav > li > a:focus,
.uk-card-primary.uk-card-body .uk-navbar-nav > li > a.uk-open, .uk-card-primary > :not([class * ='uk-card-media']) .uk-navbar-nav > li:hover > a,
.uk-card-primary > :not([class * ='uk-card-media']) .uk-navbar-nav > li > a:focus,
.uk-card-primary > :not([class * ='uk-card-media']) .uk-navbar-nav > li > a.uk-open,
.uk-card-secondary.uk-card-body .uk-navbar-nav > li:hover > a, .uk-card-secondary.uk-card-body .uk-navbar-nav > li > a:focus,
.uk-card-secondary.uk-card-body .uk-navbar-nav > li > a.uk-open, .uk-card-secondary > :not([class * ='uk-card-media']) .uk-navbar-nav > li:hover > a,
.uk-card-secondary > :not([class * ='uk-card-media']) .uk-navbar-nav > li > a:focus,
.uk-card-secondary > :not([class * ='uk-card-media']) .uk-navbar-nav > li > a.uk-open,
.uk-overlay-primary .uk-navbar-nav > li:hover > a, .uk-overlay-primary .uk-navbar-nav > li > a:focus,
.uk-overlay-primary .uk-navbar-nav > li > a.uk-open, .uk-navbar-container:not(.uk-navbar-transparent) .uk-navbar-nav > li:hover > a,
.uk-navbar-container:not(.uk-navbar-transparent) .uk-navbar-nav > li > a:focus,
.uk-navbar-container:not(.uk-navbar-transparent) .uk-navbar-nav > li > a.uk-open,
.uk-offcanvas-bar .uk-navbar-nav > li:hover > a, .uk-offcanvas-bar .uk-navbar-nav > li > a:focus,
.uk-offcanvas-bar .uk-navbar-nav > li > a.uk-open, .tm-toolbar .uk-navbar-nav > li:hover > a,
.tm-toolbar .uk-navbar-nav > li > a:focus, .tm-toolbar .uk-navbar-nav > li > a.uk-open {
color: #128DD5!important;
}
.uk-light .uk-navbar-nav>li.uk-active>a, .uk-section-primary:not(.uk-preserve-color) .uk-navbar-nav>li.uk-active>a, .uk-section-secondary:not(.uk-preserve-color) .uk-navbar-nav>li.uk-active>a, .uk-card-primary.uk-card-body .uk-navbar-nav>li.uk-active>a, .uk-card-primary>:not([class*='uk-card-media']) .uk-navbar-nav>li.uk-active>a, .uk-card-secondary.uk-card-body .uk-navbar-nav>li.uk-active>a, .uk-card-secondary>:not([class*='uk-card-media']) .uk-navbar-nav>li.uk-active>a, .uk-overlay-primary .uk-navbar-nav>li.uk-active>a, .uk-navbar-container:not(.uk-navbar-transparent) .uk-navbar-nav>li.uk-active>a, .uk-offcanvas-bar .uk-navbar-nav>li.uk-active>a, .tm-toolbar .uk-navbar-nav>li.uk-active>a {
color: #128DD5!important;
}
.uk-light a:hover, .uk-light .uk-link:hover, .uk-section-primary:not(.uk-preserve-color) a:hover, .uk-section-primary:not(.uk-preserve-color) .uk-link:hover, .uk-section-secondary:not(.uk-preserve-color) a:hover, .uk-section-secondary:not(.uk-preserve-color) .uk-link:hover, .uk-card-primary.uk-card-body a:hover, .uk-card-primary.uk-card-body .uk-link:hover, .uk-card-primary>:not([class*='uk-card-media']) a:hover, .uk-card-primary>:not([class*='uk-card-media']) .uk-link:hover, .uk-card-secondary.uk-card-body a:hover, .uk-card-secondary.uk-card-body .uk-link:hover, .uk-card-secondary>:not([class*='uk-card-media']) a:hover, .uk-card-secondary>:not([class*='uk-card-media']) .uk-link:hover, .uk-overlay-primary a:hover, .uk-overlay-primary .uk-link:hover, .uk-navbar-container:not(.uk-navbar-transparent) a:hover, .uk-navbar-container:not(.uk-navbar-transparent) .uk-link:hover, .uk-offcanvas-bar a:hover, .uk-offcanvas-bar .uk-link:hover, .tm-toolbar a:hover, .tm-toolbar .uk-link:hover {
color: #128DD5!important;
}
.uk-light .uk-navbar-nav > li > a:active, .uk-section-primary:not(.uk-preserve-color) .uk-navbar-nav > li > a:active,
.uk-section-secondary:not(.uk-preserve-color) .uk-navbar-nav > li > a:active,
.uk-card-primary.uk-card-body .uk-navbar-nav > li > a:active, .uk-card-primary > :not([class * ='uk-card-media']) .uk-navbar-nav > li > a:active,
.uk-card-secondary.uk-card-body .uk-navbar-nav > li > a:active, .uk-card-secondary > :not([class * ='uk-card-media']) .uk-navbar-nav > li > a:active,
.uk-overlay-primary .uk-navbar-nav > li > a:active, .uk-navbar-container:not(.uk-navbar-transparent) .uk-navbar-nav > li > a:active,
.uk-offcanvas-bar .uk-navbar-nav > li > a:active, .tm-toolbar .uk-navbar-nav > li > a:active {
color: #292C3D!important;
}
.uk-light .uk-navbar-nav > li.uk-active > a, .uk-section-primary:not(.uk-preserve-color) .uk-navbar-nav > li.uk-active > a,
.uk-section-secondary:not(.uk-preserve-color) .uk-navbar-nav > li.uk-active > a,
.uk-card-primary.uk-card-body .uk-navbar-nav > li.uk-active > a, .uk-card-primary > :not([class * ='uk-card-media']) .uk-navbar-nav > li.uk-active > a,
.uk-card-secondary.uk-card-body .uk-navbar-nav > li.uk-active > a,
.uk-card-secondary > :not([class * ='uk-card-media']) .uk-navbar-nav > li.uk-active > a,
.uk-overlay-primary .uk-navbar-nav > li.uk-active > a, .uk-navbar-container:not(.uk-navbar-transparent) .uk-navbar-nav > li.uk-active > a,
.uk-offcanvas-bar .uk-navbar-nav > li.uk-active > a, .tm-toolbar .uk-navbar-nav > li.uk-active > a {
color: #292C3D!important;
}
.uk-light .uk-navbar-nav>li>a:active, .uk-section-primary:not(.uk-preserve-color) .uk-navbar-nav>li>a:active, .uk-section-secondary:not(.uk-preserve-color) .uk-navbar-nav>li>a:active, .uk-card-primary.uk-card-body .uk-navbar-nav>li>a:active, .uk-card-primary>:not([class*='uk-card-media']) .uk-navbar-nav>li>a:active, .uk-card-secondary.uk-card-body .uk-navbar-nav>li>a:active, .uk-card-secondary>:not([class*='uk-card-media']) .uk-navbar-nav>li>a:active, .uk-overlay-primary .uk-navbar-nav>li>a:active, .uk-navbar-container:not(.uk-navbar-transparent) .uk-navbar-nav>li>a:active, .uk-offcanvas-bar .uk-navbar-nav>li>a:active, .tm-toolbar .uk-navbar-nav>li>a:active {
color:#128DD5;
}
.uk-navbar-nav>li>a, .uk-navbar-item, .uk-navbar-toggle, .navbar .brand, .navbar-search, .navbar .nav>li>a {
font-size: 14px;
font-family: Roboto;
font-weight: 300 !important
}
.uk-navbar-dropdown, .navbar .nav>li>.dropdown-menu {
background:#fff;
}
.uk-navbar-dropdown-nav>li>a,
.uk-navbar-dropdown-nav .uk-nav-sub a {
color:#292C3D;
font-weight:300;
}
.uk-section-secondary:not(.uk-preserve-color) h3,
.uk-section-secondary:not(.uk-preserve-color) h3 a,
.uk-section-secondary:not(.uk-preserve-color) a:hover { color:#444!important;}
.uk-article-title {
font-size: 38px;
line-height: 1.1;
}
.uk-text-meta {
font-size: 14px;
line-height: 1.4;
color: #90929D;
font-family: PT Serif;
font-weight: 400;
text-transform: none;
letter-spacing: 0;
font-style: italic;
}
.uk-card-default .uk-card-title {
color: #292C3D !important;
}
.uk-light .uk-text-meta, .uk-section-primary:not(.uk-preserve-color) .uk-text-meta, .uk-section-secondary:not(.uk-preserve-color) .uk-text-meta, .uk-card-primary.uk-card-body .uk-text-meta, .uk-card-primary>:not([class*='uk-card-media']) .uk-text-meta, .uk-card-secondary.uk-card-body .uk-text-meta, .uk-card-secondary>:not([class*='uk-card-media']) .uk-text-meta, .uk-overlay-primary .uk-text-meta, .uk-navbar-container:not(.uk-navbar-transparent) .uk-text-meta, .uk-offcanvas-bar .uk-text-meta, .tm-toolbar .uk-text-meta{
color: #90929D;
}
.uk-text-primary {color: #040067!important;}
.uk-text-secondary {color: #00a0de!important;}
.uk-section-primary {
background: #040067;
}
.uk-section-secondary {
background: #00a0de;
}
.first_page_section {
/*position: relative;*/
}
.first_page_section .uk-container {
/*max-width:100%!important;*/
/*width:100%!important;
padding:0px!important;*/
/*position: absolute;
bottom: 0;*/
}
.first_page_section .first_page_banner_headline {
/*position: relative;*/
font-family: 'Open Sans', sans-serif;
font-weight: 300;
color:#fff;
}
.first_page_panel h3.uk-h1 {
color:#fff;
}
.first_page_panel {
background-color:#05007A!important;
border: 0px solid #e5e5e7!important;
padding:20px 20px!important;
/*width:100%!important;*/
font-size:24pt!important;
padding:20px!important;
color:#fff;
}
.first_page_panel .banner_text_bottom {
font-size:20pt;
padding:20px;
}
body {
font-family: 'Open Sans', sans-serif!important;
}
h1, .uk-h1, h2, .uk-h2, h3, .uk-h3, h4, .uk-h4, h5, .uk-h5, h6, .uk-h6 {
font-family: 'Open Sans', sans-serif !important;
}
h2, .uk-h2 {
font-size:36px;
}
.nspArt h4.nspHeader {
font-family: 'Open Sans', sans-serif !important;
font-weight: 400;
font-size: 16px;
margin: 0;
padding: 5px 0 5px 0;
}
.nspArt p, .nspArt ul, .nspArt ol, .nspArt dl, .nspArt pre, .nspArt address, .nspArt fieldset, .nspArt figure {
margin-top: 0px;
margin-bottom: 8px;
}
.nspArt p.nspText {margin-bottom:15px;}
.readon , .readon:link{
margin: 0;
border: 1px solid #eaeaea;
overflow: visible;
font: inherit;
color: inherit;
text-transform: none;
display: inline-block;
box-sizing: border-box;
padding: 0 25px;
vertical-align: middle;
font-size: 13px;
line-height: 40px;
text-align: center;
text-decoration: none;
-webkit-transition: .1s ease-in-out;
transition: .1s ease-in-out;
-webkit-transition-property: color, background-color, border-color, box-shadow;
transition-property: color, background-color, border-color, box-shadow;
font-family: Roboto;
font-weight: normal;
text-transform: uppercase;
border-radius: 2px;
background-color: #fff;
color: #5b5b5b;
box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.07);
}
.readon:hover{
background-color: #fff;
color: #00a0de;
box-shadow: 0 6px 50px rgba(0, 0, 0, 0.05);
}
.banner_text_white {font-weight: 300; font-size: 28px; color:white;}
/*footer*/
.footer-license {
font-size:11px!important;
line-height:16px!important;
}
.footer-license .uk-section-primary:not(.uk-preserve-color) a{
color: #128DD5!important;
font-size:11px!important;
line-height:16px!important;
}
.footer-license a:hover {
color: #D33A24;
}
/*custom classes */
.partner_slider .wk-link-reset, .partner_slider .wk-link-reset a, .partner_slider .wk-link-reset a:focus,
.partner_slider .wk-link-reset a:hover, .partner_slider .wk-link-reset:focus, .partner_slider .wk-link-reset:hover {
color: black;
}
.dark-divider hr, .dark-divider .uk-hr {
border-top: 1px solid #6c6c6c;
}
/*events*/
.calendar h3{text-transform:none; font-weight:300;}
.mod_events_latest_table td {
padding-top:5px;
padding-bottom:5px;
}
.mod_events_latest_table td p{
margin-bottom:10px;
margin-top:0px;
}
/*.mod_events_latest_table tr {
background: url(../../../images/header_line.png) bottom left repeat-x;
}*/
.mod_events_latest_date {
width: 18%;
float: left;
position: relative;
color:#757575;
color:#fff;
font-size:12px!important;
background: #9c9c9c;
font-weight:400;
/*
border-radius: 1px;
-moz-border-radius: 1px;
-webkit-border-radius: 1px;
border: 1px solid #757575;
-moz-box-shadow: 0px 0px 3px #757575;
-webkit-box-shadow: 0px 0px 3px #757575;
box-shadow: 0px 0px 3px #757575;
*/
margin-right:8px;
margin-top:5px;
text-align:center;
padding:10px 0px;
line-height:20px;
}
.mod_events_latest_date .larger_font {
font-size:28px!important;
font-weight:700!important;}
.mod_events_latest_time {
//float: left;
position: relative;
width: 75%;
overflow:visible;
line-height:14px;
font-weight:400;
font-size:12px;
padding: 5px 0px;
margin-bottom: 8px;
text-transform:none;
}
.mod_events_latest_time {
font-size:12px;
}
.mod_events_latest_table td .content{
font-size:12px!important;
font-weight:300;
text-transform:none;
}
.mod_events_latest_table td .hdr{
font-size:14px!important;
line-height: 16px;
font-weight:400!important;
text-transform:none;
}
.mod_events_latest_rsslink a {
color: #767779;
}
.mod_events_latest_rsslink{
padding: 30;
line-height: 1.625;
background: 0;
color: #767779;
position: relative;
padding-right: 27px;
margin: 0;
border: 0;
overflow: visible;
font: inherit;
display: block;
box-sizing: border-box;
vertical-align: middle;
font-size: 13px;
display:inline-block;
/*
text-align: center;
*/
text-decoration: none;
-webkit-transition: .1s ease-in-out;
transition: .1s ease-in-out;
-webkit-transition-property: color, background-color, border-color, box-shadow;
transition-property: color, background-color, border-color, box-shadow;
font-family: Roboto;
font-weight: normal;
text-transform: uppercase;
border-radius: 2px;
background-origin: border-box;
}
.mod_events_latest_rsslink a:hover {
color: #00a0de
}
.mod_events_latest_rsslink:hover::before {
background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2223%22%20height%3D%2211%22%20viewBox%3D%220%200%2023%2011%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Cpolyline%20fill%3D%22none%22%20stroke%3D%22%2300a0de%22%20points%3D%2217%201%2022%205.5%2017%2010%20%22%3E%3C%2Fpolyline%3E%0A%20%20%20%20%3Cline%20fill%3D%22none%22%20stroke%3D%22%2300a0de%22%20x1%3D%220%22%20y1%3D%225.5%22%20x2%3D%2222.4%22%20y2%3D%225.5%22%3E%3C%2Fline%3E%0A%3C%2Fsvg%3E");
background-position: 100% 50%;
}
.mod_events_latest_rsslink::before{
content: "";
position: absolute;
top: 0;
bottom: 0;
right: 0;
width: 22px;
background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2223%22%20height%3D%2211%22%20viewBox%3D%220%200%2023%2011%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Cpolyline%20fill%3D%22none%22%20stroke%3D%22%23767779%22%20points%3D%2217%201%2022%205.5%2017%2010%20%22%3E%3C%2Fpolyline%3E%0A%20%20%20%20%3Cline%20fill%3D%22none%22%20stroke%3D%22%23767779%22%20x1%3D%220%22%20y1%3D%225.5%22%20x2%3D%2222.4%22%20y2%3D%225.5%22%3E%3C%2Fline%3E%0A%3C%2Fsvg%3E");
background-repeat: no-repeat;
background-position: calc(100% - 5px) 50%;
-webkit-transition: background-position .2s ease-out;
transition: background-position .2s ease-out;
}
.mod_events_latest_callink a, .mod_events_latest_callink a:hover{
color: #fff!important;
}
.mod_events_latest_callink {
padding:0px;
margin:10px 0px;
background-color: #00a0de;
color: #fff!important;
display: inline-block;
box-sizing: border-box;
padding: 0 25px;
vertical-align: middle;
font-size: 13px;
line-height: 40px;
text-align: center;
text-decoration: none;
-webkit-transition: .1s ease-in-out;
transition: .1s ease-in-out;
-webkit-transition-property: color, background-color, border-color, box-shadow;
transition-property: color, background-color, border-color, box-shadow;
font-family: Roboto;
font-weight: normal;
text-transform: uppercase;
border-radius: 2px;
background-origin: border-box;
}
.mod_events_latest_callink:hover {
background-color: #008ec5;
color: #fff!important;
}
/* news pro */
.nspLinks ul li h4 {
font-weight: 400;
font-size: 16px;
line-height: 18px;
}
.nspLinks ul li p {
text-transform:none;
font-size: 14px;
font-weight:300;
}
.readon-button{
text-transform: none;
font-size: 14px;
line-height: 20px;
font-weight: 300;
font-family: 'Open Sans', sans-serif !important;
}
.readon-button:hover {
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 32 KiB

View File

@ -1,3 +1,34 @@
function handleConfigDownload() {
var formData = new FormData();
formData.append("poswords", $('#pos-words-text').val());
formData.append("negwords", $('#neg-words-text').val());
filters_list = {};
filters_list["stopwords"] = $('#stop-words-filter').prop('checked')===true?1:0;
filters_list["lowercase"] = $('#lowercase-filter').prop('checked')===true?1:0;
filters_list["keywords"] = $('#keywords-filter').prop('checked')===true?1:0;
formData.append("filters", JSON.stringify(filters_list));
$.ajax({
url: "save-config-controller",
type: 'POST',
data: formData,
async: false,
success: function (data) {
$('#file-upload-response').html(JSON.parse(data).respond)
// if (data.indexOf('successfully!') != -1) {
// $('#file-uploaded')[0].checked = true;
// }
window.location="download-config-controller?saveprofile=1"
},
error: function (xhr, ajaxOptions, thrownError) {
$('#file-upload-response').html('<b style=\"color: red\">File Failed to Upload!</b>'+xhr.status)
// $('#file-uploaded')[0].checked = false;
},
cache: false,
contentType: false,
processData: false
});
}
function handleLoadExampleFile() {
$("#file-input-operation").val('example');
$("#file-title-text").html('');
@ -65,6 +96,58 @@ $( window ).resize(function() {
.on( 'blur', function(){ $input.removeClass( 'has-focus' ); });
});
function handleProfileUploadButton() {
$("form#profile-input-form").submit(function(){
if ($('#profile-input')[0].value === "") {
window.alert("You must specify a profile to import.");
return false;
}
// $('#user-id').val(getCookie("madgikmining"));
$("#profile-input-operation").val('normal');
var formData = new FormData($(this)[0]);
$.ajax({
url: "upload-profile-controller",
type: 'POST',
data: formData,
async: false,
success: function (data) {
$('#profile-upload-response').html(JSON.parse(data).respond);
obj = JSON && JSON.parse(data) || $.parseJSON(data);
console.log(obj);
for (var key1 in obj) {
if (obj.hasOwnProperty(key1)) {
if (key1==="poswords") {
// delete all poswords from the lists
deleteAllPosWords(0);
for (var key2 in obj[key1]) {
createWord(1, generateId(1), key2, obj[key1][key2]);
}
} else if (key1 === "negwords") {
deleteAllNegWords(0);
for (var key2 in obj[key1]) {
createWord(0, generateId(0), key2, obj[key1][key2]);
}
} else if (key1 === "filters") {
for (var key2 in obj[key1]) {
console.log(key2, obj[key1][key2]);
}
}
}
}
},
error: function (xhr, ajaxOptions, thrownError) {
$('#profile-upload-response').html('<b style=\"color: red\">File Failed to Upload!</b>'+xhr.status)
// $('#profile-uploaded')[0].checked = false;
},
cache: false,
contentType: false,
processData: false
});
return false;
});
}
function handleFileUploadButton() {
$("form#file-input-form").submit(function(){
if ($('#file-input')[0].value === "") {
@ -154,6 +237,7 @@ $( window ).resize(function() {
}
/////////// LIST FUNCTIONS
var count_pos = 0, count_neg = 0;
@ -445,46 +529,50 @@ $( window ).resize(function() {
// }
// }
// };
var deleteAllPosWords = function(warnUser = 1) {
if(!warnUser || confirm('Are you sure you want to delete all the items in the list? There is no turning back after that.')){ //remove items from DOM
var items = $('li[id ^= positive]');
items.addClass('removed-item').one('webkitAnimationEnd oanimationend msAnimationEnd animationend', function(e) {
$(this).remove();
});
//look for items in localStorage that start with word- and remove them
var keys = [];
for(var key in localStorage){
if(key.indexOf('positive') === 0){
localStorage.removeItem(key);
}
}
count_pos = 0;
updateCounter(1);
}
updatetextereas();
};
var deleteAllNegWords = function(warnUser = 1) {
if(!warnUser || confirm('Are you sure you want to delete all the items in the list? There is no turning back after that.')){ //remove items from DOM
var items = $('li[id ^= negative]');
items.addClass('removed-item').one('webkitAnimationEnd oanimationend msAnimationEnd animationend', function(e) {
$(this).remove();
});
//look for items in localStorage that start with word- and remove them
var keys = [];
for(var key in localStorage){
if(key.indexOf('negative') === 0){
localStorage.removeItem(key);
}
}
count_neg = 0;
updateCounter(0);
}
updatetextereas();
};
//handler for the "delete all" button
var handleDeleteButton = function(){
$('#clear-all-pos').on('click', function(){
if(confirm('Are you sure you want to delete all the items in the list? There is no turning back after that.')){ //remove items from DOM
var items = $('li[id ^= positive]');
items.addClass('removed-item').one('webkitAnimationEnd oanimationend msAnimationEnd animationend', function(e) {
$(this).remove();
});
//look for items in localStorage that start with word- and remove them
var keys = [];
for(var key in localStorage){
if(key.indexOf('positive') === 0){
localStorage.removeItem(key);
}
}
count_pos = 0;
updateCounter(1);
}
updatetextereas();
});
$('#clear-all-neg').on('click', function(){
if(confirm('Are you sure you want to delete all the items in the list? There is no turning back after that.')){ //remove items from DOM
var items = $('li[id ^= negative]');
items.addClass('removed-item').one('webkitAnimationEnd oanimationend msAnimationEnd animationend', function(e) {
$(this).remove();
});
//look for items in localStorage that start with word- and remove them
var keys = [];
for(var key in localStorage){
if(key.indexOf('negative') === 0){
localStorage.removeItem(key);
}
}
count_neg = 0;
updateCounter(0);
}
updatetextereas();
});
$('#clear-all-pos').on('click', deleteAllPosWords);
$('#clear-all-neg').on('click', deleteAllNegWords);
};
var init = function(){
@ -499,6 +587,7 @@ $( window ).resize(function() {
handleFileUploadButton();
handleZipFileUploadButton();
handleDocsUploadSelect();
handleProfileUploadButton();
};
//start all
init();

View File

@ -1,6 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link rel="stylesheet" type="text/css" href="{{ static_url("styles.css") }}" />

View File

@ -0,0 +1,376 @@
<!DOCTYPE html>
<html lang="en-gb" dir="ltr" vocab="http://schema.org/">
<head>
<!--link href="http://demo.openaire.eu" rel="canonical" /-->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<base href="/">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="description" content="open access, interactive mining">
<link href="{{ static_url("favicon.ico") }}" rel="shortcut icon" type="image/vnd.microsoft.icon">
<link rel="stylesheet" href="{{ static_url("dl119_files/theme.css") }}">
<link rel="stylesheet" href="{{ static_url("dl119_files/custom.css") }}">
<link rel="stylesheet" href="{{ static_url("custom.css") }}">
<script src="https://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script src="{{ static_url("dl119_files/uikit.js") }}"></script>
<script src="{{ static_url("dl119_files/uikit-icons-max.js") }}"></script>
<!-- Google sitename markup-->
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "WebSite",
"name" : "OpenAIRE",
"url" : "http://demo.openaire.eu"
}
</script>
<!-- End of Google sitename markup-->
<!-- Google sitelinks search markup-->
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url" : "http://demo.openaire.eu",
"potentialAction": {
"@type": "SearchAction",
"target": "http://demo.openaire.eu/search/find/?keyword={search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
<script src="//cdn.jsdelivr.net/clipboard.js/1.5.16/clipboard.min.js"></script>
<!--script type='text/javascript' src="node_modules/clipboard/dist/clipboard.min.js"></script-->
<!--script src="https://cdn.jsdelivr.net/clipboard.js/1.5.12/clipboard.min.js"></script-->
<!--script type='text/javascript' src='https://d1bxh8uas1mnw7.cloudfront.net//static/embed.js'></script-->
<!-- End of Google sitelinks search markup-->
{% block jsimports %}{% end %}
{% block loadfun %}
<script type="text/javascript">
function httpGet(theUrl){
var xmlHttp = null;
xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", theUrl, false );
xmlHttp.send( null );
return xmlHttp.responseText;
}
function load(){
}
</script>
{% end %}
</head>
<body onload="load()" class="" cz-shortcut-listen="true" style="">
<div class="uk-offcanvas-content uk-height-viewport">
<app _nghost-dc20-1="">
<navbar _ngcontent-dc20-1="">
<div class="tm-header-mobile uk-hidden@m">
<nav class="uk-navbar-container uk-navbar" uk-navbar="">
<div class="uk-navbar-left">
<a class="uk-navbar-toggle" href="#tm-mobile" uk-toggle="">
<div class="uk-navbar-toggle-icon uk-icon custom-navbar-toggle-icon" uk-navbar-toggle-icon=""> <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="navbar-toggle-icon" ratio="1"><rect y="9" width="20" height="2"></rect><rect y="3" width="20" height="2"></rect><rect y="15" width="20" height="2"></rect></svg></div>
</a>
</div>
<div class="uk-navbar-center">
<a class="uk-logo uk-navbar-item" routerlink="/search/find" routerlinkactive="router-link-active" href="/search/find">
<img alt="OpenAIRE" class="uk-responsive-height" src="/static/OA DISCOVER_B.png">
</a>
</div>
<div class="uk-navbar-right">
<user-mini>
<!--template bindings={}--><div class=" custom-user-mini-panel uk-margin-top uk-margin-right uk-float-right">
<!--template bindings={}-->
<!--template bindings={}--><a class="loginLink">Sign in</a>
</div>
</user-mini>
</div>
</nav>
<div class="uk-offcanvas" id="tm-mobile" mode="slide" overlay="" uk-offcanvas="">
<div class="uk-offcanvas-bar">
<button class="uk-offcanvas-close uk-close uk-icon" type="button" uk-close=""><svg width="14" height="14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" icon="close-icon" ratio="1"><line fill="none" stroke="#000" stroke-width="1.1" x1="1" y1="1" x2="13" y2="13"></line><line fill="none" stroke="#000" stroke-width="1.1" x1="13" y1="1" x2="1" y2="13"></line></svg></button>
<div class="uk-child-width-1-1 uk-grid" uk-grid="">
<div>
<div class="uk-panel" id="module-0">
<ul class="uk-nav uk-nav-default">
<li class="uk-nav-header uk-parent">
Search
<ul class="uk-nav-sub">
<li><a routerlink="/search/find/publications" routerlinkactive="router-link-active" href="/search/find/publications" class="router-link-active">Publications</a></li>
<li><a routerlink="/search/find/datasets" routerlinkactive="router-link-active" href="/search/find/datasets">Datasets</a></li>
<li><a routerlink="/search/find/projects" routerlinkactive="router-link-active" href="/search/find/projects">Projects</a></li>
<li><a routerlink="/search/find/dataproviders" routerlinkactive="router-link-active" href="/search/find/dataproviders">Data Providers</a></li>
<li><a routerlink="/search/find/organizations" routerlinkactive="router-link-active" href="/search/find/organizations">Organizations</a></li>
<li><a routerlink="/search/find/people" routerlinkactive="router-link-active" href="/search/find/people">People</a></li>
</ul>
</li>
<li class="uk-nav-header uk-parent">
Data Providers
<ul class="uk-nav-sub">
<li><a routerlink="/search/data-providers" routerlinkactive="router-link-active" href="/search/data-providers">Compatible Data Providers</a></li>
<li><a routerlink="/search/entity-registries" routerlinkactive="router-link-active" href="/search/entity-registries">Entity Registries</a></li>
</ul>
</li>
<li class="uk-nav-header uk-parent">
Deposit
<ul class="uk-nav-sub">
<li><a routerlink="/participate/deposit-publications" routerlinkactive="router-link-active" href="/participate/deposit-publications">Deposit Publications</a></li>
<li><a routerlink="/participate/deposit-datasets" routerlinkactive="router-link-active" href="/participate/deposit-datasets">Deposit Research Data</a></li>
</ul>
</li>
<li class="uk-nav-header uk-parent">
Linking
<ul class="uk-nav-sub">
<li><a routerlink="/participate/claim" routerlinkactive="router-link-active" href="/participate/claim">Linking</a></li>
<li><a routerlink="/myclaims" routerlinkactive="router-link-active" href="/myclaims">My Claims</a></li>
<!--template bindings={}-->
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tm-toolbar custom-discover-toolbar uk-visible@m">
<div class="uk-container uk-flex uk-flex-middle uk-container-expand">
<div class="uk-margin-auto-left">
<div class="uk-grid-medium uk-child-width-auto uk-flex-middle uk-grid uk-grid-stack" uk-grid="margin: uk-margin-small-top">
<div class="uk-first-column">
<div class="uk-panel inner" id="module-119">
<ul class="uk-subnav uk-subnav-line">
<li class="uk-active"><a href="http://dl119.madgik.di.uoa.gr/"><img alt="home" class="uk-responsive-height" src="/static/dl119_files/Home-icon.png"></a></li>
<li class="custom-discover-li"><a routerlink="/search/find" routerlinkactive="router-link-active" href="/search/find" class="router-link-active">Discover/Share</a></li>
<li><a href="#">Join</a></li>
<li><a href="#">Connect</a></li>
<li><a href="#">Monitor_</a></li>
<li><a href="#">Develop</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tm-header uk-visible@m tm-header-transparent" uk-header="">
<div animation="uk-animation-slide-top" class="uk-navbar-container uk-navbar-transparent uk-light" cls-active="uk-active uk-navbar-sticky" cls-inactive="uk-navbar-transparent uk-light" media="768" style="" top=".tm-header + [class*=&quot;uk-section&quot;]" >
<div class="uk-container uk-container-expand">
<nav class="uk-navbar" uk-navbar="{&quot;align&quot;:&quot;left&quot;}">
<div class="uk-navbar-left uk-visible@l ">
<a class="uk-logo uk-navbar-item router-link-active" routerlink="/search/find" routerlinkactive="router-link-active" href="/search/find">
<img alt="OpenAIRE" class="uk-responsive-height" src="/static/OA DISCOVER_B.png"></a>
</div>
<div class="uk-navbar-left uk-visible@m uk-hidden@l">
<a class="uk-logo uk-navbar-item router-link-active" routerlink="/search/find" routerlinkactive="router-link-active" href="/search/find">
<img alt="OpenAIRE" class="uk-responsive-height" src="/static/OA DISCOVER_A.png"></a>
</div>
<div class="uk-navbar-center">
<ul class="uk-navbar-nav">
<li class="uk-parent">
<a aria-expanded="false" class="router-link-active" routerlink="/search/find" routerlinkactive="router-link-active" href="/search/find">Search</a>
<div class="uk-navbar-dropdown uk-navbar-dropdown-bottom-left" style="top: 80px; left: 0px;">
<div class="uk-navbar-dropdown-grid uk-child-width-1-1 uk-grid uk-grid-stack" uk-grid="">
<div class="uk-first-column">
<ul class="uk-nav uk-navbar-dropdown-nav">
<li><a routerlink="/search/find/publications" routerlinkactive="router-link-active" href="/search/find/publications" class="router-link-active">Publications</a></li>
<li><a routerlink="/search/find/datasets" routerlinkactive="router-link-active" href="/search/find/datasets">Datasets</a></li>
<li><a routerlink="/search/find/projects" routerlinkactive="router-link-active" href="/search/find/projects">Projects</a></li>
<li><a routerlink="/search/find/dataproviders" routerlinkactive="router-link-active" href="/search/find/dataproviders">Data Providers</a></li>
<li><a routerlink="/search/find/organizations" routerlinkactive="router-link-active" href="/search/find/organizations">Organizations</a></li>
<li><a routerlink="/search/find/people" routerlinkactive="router-link-active" href="/search/find/people">People</a></li>
</ul>
</div>
</div>
</div>
</li>
<li class="uk-parent">
<a aria-expanded="false" class="" routerlink="/search/data-providers" routerlinkactive="router-link-active" href="/search/data-providers">Data Providers</a>
<div class="uk-navbar-dropdown uk-navbar-dropdown-bottom-left" style="top: 80px; left: 103px;">
<div class="uk-navbar-dropdown-grid uk-child-width-1-1 uk-grid uk-grid-stack" uk-grid="">
<div class="uk-first-column">
<ul class="uk-nav uk-navbar-dropdown-nav">
<li><a routerlink="/search/data-providers" routerlinkactive="router-link-active" href="/search/data-providers">Compatible Data Providers</a></li>
<li><a routerlink="/search/entity-registries" routerlinkactive="router-link-active" href="/search/entity-registries">Entity Registries</a></li>
</ul>
</div>
</div>
</div>
</li>
<li class="uk-parent">
<a aria-expanded="false" class="" routerlink="/participate/deposit-publications" routerlinkactive="router-link-active" href="/participate/deposit-publications">Deposit</a>
<div class="uk-navbar-dropdown uk-navbar-dropdown-bottom-left" style="top: 80px; left: 263px;">
<div class="uk-navbar-dropdown-grid uk-child-width-1-1 uk-grid uk-grid-stack" uk-grid="">
<div class="uk-first-column">
<ul class="uk-nav uk-navbar-dropdown-nav">
<li><a routerlink="/participate/deposit-publications" routerlinkactive="router-link-active" href="/participate/deposit-publications">Deposit Publications</a></li>
<li><a routerlink="/participate/deposit-datasets" routerlinkactive="router-link-active" href="/participate/deposit-datasets">Deposit Research Data</a></li>
</ul>
</div>
</div>
</div>
</li>
<li class="uk-parent">
<a aria-expanded="false" class="" routerlink="/participate/claim" routerlinkactive="router-link-active" href="/participate/claim">Linking</a>
<div class="uk-navbar-dropdown uk-navbar-dropdown-bottom-left" style="top: 80px; left: 368px;">
<div class="uk-navbar-dropdown-grid uk-child-width-1-1 uk-grid uk-grid-stack" uk-grid="">
<div class="uk-first-column">
<ul class="uk-nav uk-navbar-dropdown-nav">
<li><a routerlink="/participate/claim" routerlinkactive="router-link-active" href="/participate/claim">Linking</a></li>
<li><a routerlink="/myclaims" routerlinkactive="router-link-active" href="/myclaims">My Claims</a></li>
<!--template bindings={}-->
</ul>
</div>
</div>
</div>
</li>
</ul>
</div>
<div class="uk-navbar-right">
<user-mini>
<!--template bindings={}--><div class=" custom-user-mini-panel uk-margin-top uk-margin-right uk-float-right">
<!--template bindings={}-->
<!--template bindings={}--><a class="loginLink">Sign in</a>
</div>
</user-mini>
</div>
</nav>
</div>
</div><div class="uk-sticky-placeholder" style="height: 84px; margin: 0px;" hidden="hidden"></div>
<div class="uk-sticky-placeholder" style="height: 80px; margin: 0px;" hidden="hidden"></div>
<div class="uk-sticky-placeholder" style="height: 84px; margin: 0px;" hidden="hidden"></div>
</div>
<div class="first_page_section uk-section-default uk-section uk-padding-remove-vertical">
<div class="first_page_banner_headline uk-grid-collapse uk-flex-middle uk-margin-remove-vertical uk-grid uk-grid-stack" uk-grid="">
</div>
</div>
<div></div>
</navbar>
<div _ngcontent-dc20-1="" class=" uk-section uk-margin-large-top tm-middle custom-main-content" id="tm-main">
<div _ngcontent-dc20-1="" class="uk-container ">
<div _ngcontent-dc20-1="" uk-grid="">
<div _ngcontent-dc20-1="" class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first ">
<main _ngcontent-dc20-1="">
{% block content %}{% end %}
</main>
</div>
</div>
</div>
</div>
<cookie-law _ngcontent-dc20-1="" position="bottom" _nghost-dc20-4="" seen="true">
<!--template bindings={}--><div _ngcontent-9e3d-4="" class="cookie-law-wrapper" style="transform: translateY(100%);">
<div _ngcontent-9e3d-4="" class="copy">
<span _ngcontent-9e3d-4="">
OpenAIRE uses cookies in order to function properly.<br _ngcontent-9e3d-1="">
Cookies are small pieces of data that websites store in your browser to allow us to give you the best browsing experience possible.
By using the OpenAIRE portal you accept our use of cookies. <a _ngcontent-9e3d-1="" href="//ec.europa.eu/ipg/basics/legal/cookies/index_en.htm" target="_blank"> Read more <span _ngcontent-9e3d-1="" uk-icon="icon: chevron-right" class="uk-icon"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="chevron-right" ratio="1"><polyline fill="none" stroke="#000" stroke-width="1.03" points="7 4 13 10 7 16"></polyline></svg></span></a>
</span>
<!--template bindings={}-->
<a _ngcontent-9e3d-4="" class="dismiss" href="#" role="button"><span _ngcontent-9e3d-4="" class="uk-icon" uk-icon="icon: close"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="close" ratio="1"><path fill="none" stroke="#000" stroke-width="1.06" d="M16,16 L4,4"></path><path fill="none" stroke="#000" stroke-width="1.06" d="M16,4 L4,16"></path></svg></span></a>
</div>
</div>
</cookie-law>
<bottom _ngcontent-dc20-1="">
<div class="custom-footer">
<div class="uk-section-primary uk-section uk-section-small uk-padding-remove-bottom">
<div class="uk-container">
<div class="uk-grid-margin uk-grid" uk-grid="">
<div class="uk-width-expand@m uk-light uk-first-column">
<div class="uk-margin">
<div uk-grid="" class="uk-child-width-auto uk-grid-small uk-grid">
<div class="uk-first-column">
<a class="el-link uk-icon-link uk-icon" href="http://www.facebook.com/groups/openaire/" target="_blank" uk-icon="icon: facebook"></a>
</div><div>
<a class="el-link uk-icon-link uk-icon" href="http://www.twitter.com/OpenAIRE_eu" target="_blank" uk-icon="icon: twitter"></a>
</div>
<div>
<a class="el-link uk-icon-link uk-icon" href="http://www.linkedin.com/groups/OpenAIRE-3893548" target="_blank" uk-icon="icon: linkedin"></a>
</div>
<div>
<a class="el-link uk-icon-link uk-icon" href="http://www.slideshare.net/OpenAIRE_eu" target="_blank" uk-icon="icon: social"></a>
</div>
<div>
<a class="el-link uk-icon-link uk-icon" href="http://vimeo.com/openaire" target="_blank" uk-icon="icon: vimeo"></a>
</div>
</div>
</div>
<div class="uk-margin uk-margin-remove-top uk-margin-remove-bottom uk-text-left">
<img alt="European Commission" class="el-image" src="/static/dl119_files/ec_logo_inv_small.png">
</div>
</div>
<div class="uk-width-expand@m uk-light">
<div>
<ul class="uk-subnav uk-margin-remove-bottom uk-subnav-divider" uk-margin="">
<li class="el-item uk-first-column">
<a class="el-link" href="http://dl119.madgik.di.uoa.gr/www.cnn.com">About</a>
</li>
<li class="el-item">
<a class="el-content uk-disabled">Services</a>
</li>
<li class="el-item">
<a class="el-content uk-disabled">News</a>
</li>
<li class="el-item">
<a class="el-content uk-disabled">Events</a>
</li>
<li class="el-item">
<a class="el-content uk-disabled">Blog</a>
</li>
<li class="el-item">
<a class="el-content uk-disabled">Contact us</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="uk-section-primary uk-section uk-section-small">
<div class="uk-container">
<div class="uk-grid-margin uk-grid uk-grid-stack" uk-grid="">
<div class="uk-width-1-1@m uk-first-column">
<div class="uk-margin uk-margin-remove-top uk-margin-remove-bottom uk-text-center">
<img alt="OpenAIRE" class="el-image" src="/static/dl119_files/Logo_Horizontal_white_small.png">
</div>
<div class="footer-license uk-margin uk-margin-remove-bottom uk-text-center uk-text-lead">
<div><a href="http://creativecommons.org/licenses/by/4.0/" rel="license"><img alt="Creative" src="/static/dl119_files/80x15.png" style="height: auto; max-width: 100%; vertical-align: middle;"></a>&nbsp;UNLESS OTHERWISE INDICATED, ALL MATERIALS CREATED BY THE OPENAIRE CONSORTIUM ARE LICENSED UNDER A&nbsp;<a href="http://creativecommons.org/licenses/by/4.0/" rel="license">CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE</a>.</div>
<div>OPENAIRE IS POWERED BY&nbsp;<a href="http://www.d-net.research-infrastructures.eu/">D-NET</a>.</div>
</div>
<div class="uk-margin uk-margin-remove-top uk-margin-remove-bottom uk-text-right">
<a class="uk-totop uk-icon" href="#" uk-scroll="" uk-totop=""><svg width="15" height="20" viewBox="0 0 15 20" xmlns="http://www.w3.org/2000/svg" icon="totop" ratio="1"><polyline fill="none" stroke="#0000" stroke-width="1.1" points="1,8 7.5,1.5 14,8 "></polyline><rect fill="000" x="7" y="2" width="1" height="20"></rect></svg></a>
</div>
</div>
</div>
</div>
</div>
</div>
</bottom>
</app>
</div>
<script type="text/javascript">
function loadAltmetrics(e,t,n){
var d="createElement",c="getElementsByTagName",m="setAttribute",n=document.getElementById(e);
return n&&n.parentNode&&n.parentNode.removeChild(n),n=document[d+"NS"]&&document.documentElement.namespaceURI,n=n?document[d+"NS"](n,"script"):document[d]("script"),n[m]("id",e),n[m]("src",t),(document[c]("head")[0]||document[c]("body")[0]).appendChild(n),n=new Image,void n[m]("src","https://d1uo4w7k31k5mn.cloudfront.net/donut/0.png")
};
</script>
</body>
</html>

View File

@ -0,0 +1,8 @@
{% extends "base_v2.html" %}
{% block create_upload %} class="current" {% end %}
{% block content %}
<title>Profile create</title>
<div class="uk-heading-line uk-text-center"><span>or</span></div>
{% end %}

View File

@ -33,7 +33,20 @@
</blockquote> -->
</div>
<div id="page" style="margin:0">
<div class="file-upload-wrapper js" style="margin-bottom: 389px;">
<input id="downloadConfigBtn" class="btn" onclick="handleConfigDownload()" value="Download this profile" type="button">
<div class="file-upload-wrapper js">
<form id="profile-input-form" method="post" enctype="multipart/form-data" accept-charset="UTF-8">
<header>
<input type="file" name="upload" id="profile-input" class="inputfile" />
<label for="profile-input" id="profile-input-label" ><strong><svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" viewBox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"/></svg> Choose a file&hellip;</strong> <span id="profile-title-text"></span></label>
<button id="profile-upload-button" class="btn" style="float: right; margin-right: 5px;" >Upload profile</button>
</header>
<footer>
<span class="response" id="profile-upload-response"></span>
</footer>
</form>
</div>
<div class="file-upload-wrapper js">
<h2>Add your <b>Text File</b> of codes</h2>
<form id="file-input-form" method="post" enctype="multipart/form-data" accept-charset="UTF-8">
<header>
@ -149,7 +162,7 @@
<label for="keywords-filter">Keywords</label>
</div>
<div class="acknowledgement-wrapper" style="position: absolute;top: 356px;">
<div class="acknowledgement-wrapper">
<h2>Select the <b>configuration</b> for the suggested statements.</h2>
<h4>Choose in how many word-pairs each suggested statement will be splitted. (Use 0 to not split the suggested statements).</h4>

View File

@ -0,0 +1,10 @@
{% extends "base_v2.html" %}
{% block upload_codes %} class="current" {% end %}
{% block content %}
<title>Upload project codes</title>
https://getuikit.com/docs/upload
<span class="uk-label">TXT</span>
{% end %}