Skip to content

Commit 8109c01

Browse files
committed
[academic_query] demo preparation
SQUASHED: AUTO-COMMIT-src-components-widgets-academic-query.js,AUTO-COMMIT-src-components-widgets-academic-subquery.js,
1 parent 8c1c31c commit 8109c01

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/components/widgets/academic-query.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default class AcademicQuery extends Morph {
1818
// irgendwo unter ihm Text ändert
1919
var observer = new MutationObserver((mutations) => {
2020
mutations.forEach(async mutation => {
21-
lively.notify("SUPER observation", mutation.type)
21+
//lively.notify("SUPER observation", mutation.type)
2222
clearTimeout(timeout);
2323
timeout = setTimeout(async () => {
2424
if (mutation.type == "childList") {
@@ -72,9 +72,10 @@ export default class AcademicQuery extends Morph {
7272

7373
pane.innerHTML = ""
7474
pane.appendChild(<div>
75-
{input} {updateButton} {searchButton}
76-
{queryView}
77-
</div>);
75+
<h1>Academic Query:</h1>
76+
{input} {updateButton} {searchButton}
77+
{queryView}
78+
</div>);
7879
}
7980

8081
viewToQuery() {

src/components/widgets/academic-subquery.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,10 @@ export default class AcademicSubquery extends Morph {
297297
val = val.slice(0, val.length - 1); // remove last whitespace
298298

299299
// TODO check if attribute has string value
300-
var stringAttributes = {A: "Author"}
300+
var stringAttributes = {
301+
"A": "Author",
302+
"AA.AuN": "Author Name",
303+
}
301304
if (attr.slice(0, attr.length - 1) in stringAttributes) {
302305
val = "'" + val + "'"
303306
}

0 commit comments

Comments
 (0)