Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
UGL
website
Commits
a6a4bbc9
Commit
a6a4bbc9
authored
3 years ago
by
Joe TS Dell
Browse files
Options
Download
Email Patches
Plain Diff
update
parent
f4fc8a0d
master
revert-205bb8ef
rosanny-202111
No related merge requests found
Pipeline
#3351
passed with stage
in 18 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
public/index.html
+1
-1
public/index.html
public/js/add_paper.js
+0
-2
public/js/add_paper.js
public/js/citationSheetParse.js
+5
-4
public/js/citationSheetParse.js
public/js/search.js
+0
-1
public/js/search.js
with
6 additions
and
8 deletions
+6
-8
public/index.html
+
1
-
1
View file @
a6a4bbc9
...
@@ -413,7 +413,6 @@
...
@@ -413,7 +413,6 @@
<script
src=
"js/bootstrap.min.js"
></script>
<script
src=
"js/bootstrap.min.js"
></script>
<link
rel=
"stylesheet"
href=
"https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/0.8.2/css/flag-icon.min.css"
>
<link
rel=
"stylesheet"
href=
"https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/0.8.2/css/flag-icon.min.css"
>
<script
src=
"js/config.js"
></script>
<script
src=
"js/config.js"
></script>
<script
src=
"js/citationSheetParse.js"
></script>
<script
src=
"js/language.js"
></script>
<script
src=
"js/language.js"
></script>
<script
src=
"js/add_content.js"
></script>
<script
src=
"js/add_content.js"
></script>
<script
src=
"js/add_paper.js"
></script>
<script
src=
"js/add_paper.js"
></script>
...
@@ -423,6 +422,7 @@
...
@@ -423,6 +422,7 @@
<link
rel=
"stylesheet"
href=
"./css/search.css"
>
<link
rel=
"stylesheet"
href=
"./css/search.css"
>
<link
rel=
"stylesheet"
href=
"./css/language.css"
>
<link
rel=
"stylesheet"
href=
"./css/language.css"
>
<script
src=
"js/search.js"
></script>
<script
src=
"js/search.js"
></script>
<script
src=
"js/citationSheetParse.js"
></script>
</body>
</body>
...
...
This diff is collapsed.
Click to expand it.
public/js/add_paper.js
+
0
-
2
View file @
a6a4bbc9
...
@@ -7,7 +7,6 @@ function addpaper(item) {
...
@@ -7,7 +7,6 @@ function addpaper(item) {
var
authors
=
""
;
var
authors
=
""
;
for
(
var
i
=
0
;
i
<
item
.
item
.
authors
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
item
.
item
.
authors
.
length
;
i
++
)
{
console
.
log
(
i
);
authors
+=
item
.
item
.
authors
[
i
].
lastName
+
"
,
"
+
item
.
item
.
authors
[
i
].
firstName
.
substring
(
0
,
1
)
+
"
.,
"
authors
+=
item
.
item
.
authors
[
i
].
lastName
+
"
,
"
+
item
.
item
.
authors
[
i
].
firstName
.
substring
(
0
,
1
)
+
"
.,
"
//Do something
//Do something
}
}
...
@@ -15,7 +14,6 @@ function addpaper(item) {
...
@@ -15,7 +14,6 @@ function addpaper(item) {
// check if there is keywords in item
// check if there is keywords in item
if
(
item
.
item
.
keywords
!==
undefined
)
{
if
(
item
.
item
.
keywords
!==
undefined
)
{
for
(
var
i
=
0
;
i
<
item
.
item
.
keywords
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
item
.
item
.
keywords
.
length
;
i
++
)
{
console
.
log
(
i
);
keywords
+=
'
<span class="badge badge-pill badge-light">
'
+
item
.
item
.
keywords
[
i
]
+
'
</span>
'
keywords
+=
'
<span class="badge badge-pill badge-light">
'
+
item
.
item
.
keywords
[
i
]
+
'
</span>
'
//Do something
//Do something
}
}
...
...
This diff is collapsed.
Click to expand it.
public/js/citationSheetParse.js
+
5
-
4
View file @
a6a4bbc9
...
@@ -158,13 +158,15 @@ var load_excel_citation = function (cb) {
...
@@ -158,13 +158,15 @@ var load_excel_citation = function (cb) {
"
}}
"
"
}}
"
jsonContent
.
push
(
item
);
jsonContent
.
push
(
item
);
if
(
i
==
jsonOutput
.
length
-
1
)
{
cb
()
// callback
}
}
}
// console.log(jsonContent);
// console.log(jsonContent);
}
}
xmlHttpRequest
.
send
();
xmlHttpRequest
.
send
();
cb
()
// callback
}
}
// get paper from the Sabo result
// get paper from the Sabo result
...
@@ -176,7 +178,6 @@ load_excel_citation(function () {
...
@@ -176,7 +178,6 @@ load_excel_citation(function () {
for
(
var
i
=
0
;
i
<
arrayLength
;
i
++
)
{
for
(
var
i
=
0
;
i
<
arrayLength
;
i
++
)
{
if
(
Math
.
abs
(
arrayLength
-
i
)
<=
max_paper_list
)
{
if
(
Math
.
abs
(
arrayLength
-
i
)
<=
max_paper_list
)
{
console
.
log
(
"
close to
"
+
i
)
addpaper
(
stuff_paper
[
i
]);
addpaper
(
stuff_paper
[
i
]);
}
}
//Do something
//Do something
...
...
This diff is collapsed.
Click to expand it.
public/js/search.js
+
0
-
1
View file @
a6a4bbc9
...
@@ -159,7 +159,6 @@ function searchToggle_paper(obj, evt) {
...
@@ -159,7 +159,6 @@ function searchToggle_paper(obj, evt) {
var
arrayLength
=
stuff_paper
.
length
;
var
arrayLength
=
stuff_paper
.
length
;
for
(
var
i
=
0
;
i
<
arrayLength
;
i
++
)
{
for
(
var
i
=
0
;
i
<
arrayLength
;
i
++
)
{
if
(
Math
.
abs
(
arrayLength
-
i
)
<=
2
)
{
if
(
Math
.
abs
(
arrayLength
-
i
)
<=
2
)
{
console
.
log
(
"
close to
"
+
i
)
addpaper
(
stuff_paper
[
i
]);
addpaper
(
stuff_paper
[
i
]);
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets