Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MetaGer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
MetaGer
Commits
c340e31d
Commit
c340e31d
authored
7 years ago
by
Dominik Hebeler
Browse files
Options
Downloads
Plain Diff
Merge branch '594-opensearch-relevance-extension-in-quicktips-einfugen' into 'development'
Resolve "Opensearch relevance Extension in Quicktips einfügen" Closes
#594
See merge request
!1056
parents
7540ca77
1cc03fdf
No related branches found
Branches containing commit
No related tags found
1 merge request
!1365
Resolve "Filter Options for MetaGer"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
resources/assets/js/scriptResultPage.js
+10
-7
10 additions, 7 deletions
resources/assets/js/scriptResultPage.js
with
10 additions
and
7 deletions
resources/assets/js/scriptResultPage.js
+
10
−
7
View file @
c340e31d
...
@@ -570,6 +570,7 @@ function loadQuicktips (search, locale, sprueche) {
...
@@ -570,6 +570,7 @@ function loadQuicktips (search, locale, sprueche) {
}
}
const
QUICKTIP_SERVER
=
'
https://quicktips.metager3.de
'
;
const
QUICKTIP_SERVER
=
'
https://quicktips.metager3.de
'
;
//const QUICKTIP_SERVER = 'http://localhost:63825';
/**
/**
* Requests quicktips from the quicktip server and passes them to the loadedHandler
* Requests quicktips from the quicktip server and passes them to the loadedHandler
...
@@ -586,15 +587,16 @@ function getQuicktips (search, locale, blacklist, loadedHandler) {
...
@@ -586,15 +587,16 @@ function getQuicktips (search, locale, blacklist, loadedHandler) {
});
});
$
.
get
(
getString
,
function
(
data
,
status
)
{
$
.
get
(
getString
,
function
(
data
,
status
)
{
if
(
status
===
'
success
'
)
{
if
(
status
===
'
success
'
)
{
var
quicktips
=
$
(
data
).
find
(
'
entry
'
).
map
(
function
()
{
var
quicktips
=
$
(
data
).
children
(
'
feed
'
).
children
(
'
entry
'
).
map
(
function
()
{
console
.
log
(
this
);
return
quicktip
=
{
return
quicktip
=
{
type
:
$
(
this
).
children
(
'
type
'
).
text
(),
type
:
$
(
this
).
children
(
'
mg
\\
:
type
'
).
text
(),
title
:
$
(
this
).
children
(
'
title
'
).
text
(),
title
:
$
(
this
).
children
(
'
title
'
).
text
(),
summary
:
$
(
this
).
children
(
'
summary
'
).
text
(),
summary
:
$
(
this
).
children
(
'
content
'
).
text
(),
url
:
$
(
this
).
children
(
'
url
'
).
text
(),
url
:
$
(
this
).
children
(
'
link
'
).
text
(),
gefVon
:
$
(
this
).
children
(
'
gefVon
'
).
text
(),
gefVon
:
$
(
this
).
children
(
'
gefVon
'
).
text
(),
priority
:
$
(
this
).
children
(
'
priority
'
).
text
(),
score
:
$
(
this
).
children
(
'
relevance
\\
:score
'
).
text
(),
details
:
$
(
this
).
children
(
'
details
'
).
map
(
function
()
{
details
:
$
(
this
).
children
(
'
mg
\\
:
details
'
).
children
(
'
entry
'
).
map
(
function
()
{
return
{
return
{
title
:
$
(
this
).
children
(
'
title
'
).
text
(),
title
:
$
(
this
).
children
(
'
title
'
).
text
(),
text
:
$
(
this
).
children
(
'
text
'
).
text
(),
text
:
$
(
this
).
children
(
'
text
'
).
text
(),
...
@@ -603,6 +605,7 @@ function getQuicktips (search, locale, blacklist, loadedHandler) {
...
@@ -603,6 +605,7 @@ function getQuicktips (search, locale, blacklist, loadedHandler) {
}).
toArray
()
}).
toArray
()
};
};
}).
toArray
();
}).
toArray
();
console
.
log
(
quicktips
);
loadedHandler
(
quicktips
);
loadedHandler
(
quicktips
);
}
else
{
}
else
{
console
.
error
(
'
Loading quicktips failed with status
'
+
status
);
console
.
error
(
'
Loading quicktips failed with status
'
+
status
);
...
@@ -636,7 +639,7 @@ function getQuicktips (search, locale, blacklist, loadedHandler) {
...
@@ -636,7 +639,7 @@ function getQuicktips (search, locale, blacklist, loadedHandler) {
function
createQuicktips
(
quicktips
,
sprueche
)
{
function
createQuicktips
(
quicktips
,
sprueche
)
{
var
quicktipsDiv
=
$
(
'
#quicktips
'
);
var
quicktipsDiv
=
$
(
'
#quicktips
'
);
quicktips
.
sort
(
function
(
a
,
b
)
{
quicktips
.
sort
(
function
(
a
,
b
)
{
return
b
.
priority
-
a
.
priority
;
return
b
.
score
-
a
.
score
;
}).
forEach
(
function
(
quicktip
)
{
}).
forEach
(
function
(
quicktip
)
{
var
mainElem
;
var
mainElem
;
if
(
quicktip
.
details
.
length
>
0
)
{
if
(
quicktip
.
details
.
length
>
0
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment