Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
encyclopedia-gui
Commits
4242ab90
Commit
4242ab90
authored
Feb 05, 2018
by
Iker Hurtado
Browse files
Several minor improvements on 'New quantities issue' implementation
parent
03331eca
Pipeline
#24378
passed with stages
in 6 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
client/bundle.js
View file @
4242ab90
...
...
@@ -2481,14 +2481,6 @@
<b><span info-sys-data="structure-type">Structure type</span></b>:
<span class="structure-type-value" ></span>
</div>
<div class="structure-prototype-field" style="display: none">
<b><span info-sys-data="structure-prototype">Structure prototype</span></b>:
<span class="structure-prototype-value" ></span>
</div>
<div class="strukturbericht-field" style="display: none">
<b><span info-sys-data="strukturbericht">Strukturbericht designation</span></b>:
<span class="strukturbericht-value" ></span>
</div>
</div>
</div>
...
...
@@ -2624,11 +2616,6 @@
this
.
spaceGroupValue
=
this
.
element
.
querySelector
(
'
.space-group-value
'
);
this
.
structTypeField
=
this
.
element
.
querySelector
(
'
.structure-type-field
'
);
this
.
structTypeValue
=
this
.
element
.
querySelector
(
'
.structure-type-value
'
);
this
.
structPrototypeField
=
this
.
element
.
querySelector
(
'
.structure-prototype-field
'
);
this
.
structPrototypeValue
=
this
.
element
.
querySelector
(
'
.structure-prototype-value
'
);
this
.
strukturberichtField
=
this
.
element
.
querySelector
(
'
.strukturbericht-field
'
);
this
.
strukturberichtValue
=
this
.
element
.
querySelector
(
'
.strukturbericht-value
'
);
//this.band_gap = this.element.getElementsByClassName('e-struct-field')[0];
//fields= this.element.getElementsByClassName('method-field');
...
...
@@ -2729,17 +2716,12 @@
this
.
systemType
.
textContent
=
data
.
system_type
;
this
.
structTypeField
.
style
.
display
=
(
isBulk
&&
data
.
structure_type
!==
null
?
'
block
'
:
'
none
'
);
this
.
structPrototypeField
.
style
.
display
=
(
isBulk
&&
data
.
structure_prototype
!==
null
?
'
block
'
:
'
none
'
);
this
.
strukturberichtField
.
style
.
display
=
(
isBulk
&&
data
.
strukturbericht_designation
!==
null
?
'
block
'
:
'
none
'
);
this
.
spaceGroupField
.
style
.
display
=
(
isBulk
?
'
block
'
:
'
none
'
);
if
(
isBulk
){
this
.
structTypeValue
.
textContent
=
data
.
structure_type
;
this
.
structPrototypeValue
.
textContent
=
data
.
structure_prototype
;
this
.
strukturberichtValue
.
textContent
=
data
.
strukturbericht_designation
;
this
.
spaceGroupValue
.
textContent
=
data
.
space_group_number
;
this
.
spaceGroupValue
.
textContent
=
data
.
space_group_number
+
'
(
'
+
data
.
space_group_international_short_symbol
+
'
)
'
;
InfoSys
.
addElementToInfoSystem
(
this
.
spaceGroupValue
,
'
space-group.value:
'
+
data
.
space_group_number
);
}
...
...
@@ -4195,7 +4177,7 @@
<div class="footer-flex" style="display: none">
<div class="fields-container"
style="flex-basis:
6
0%; border-right: 1px solid #E4E4E4; ">
style="flex-basis:
7
0%; border-right: 1px solid #E4E4E4; ">
<div>
<b><span info-sys-data="crystal-system">Lattice</span></b>:
...
...
@@ -4211,7 +4193,7 @@
</div>
</div>
<div style="flex-basis:
4
0%; margin-left:
4
0px;">
<div style="flex-basis:
3
0%; margin-left:
3
0px;">
<div class="fields-container">
<div><b><span info-sys-data="wyckoff-position-population">Wyckoff sites</span></b></div>
<div class="wyckoff-sites-value"> </div>
...
...
client/src/material-mod/Overview.view.js
View file @
4242ab90
...
...
@@ -49,14 +49,6 @@ class Overview {
<b><span info-sys-data="structure-type">Structure type</span></b>:
<span class="structure-type-value" ></span>
</div>
<div class="structure-prototype-field" style="display: none">
<b><span info-sys-data="structure-prototype">Structure prototype</span></b>:
<span class="structure-prototype-value" ></span>
</div>
<div class="strukturbericht-field" style="display: none">
<b><span info-sys-data="strukturbericht">Strukturbericht designation</span></b>:
<span class="strukturbericht-value" ></span>
</div>
</div>
</div>
...
...
@@ -192,11 +184,6 @@ class Overview {
this
.
spaceGroupValue
=
this
.
element
.
querySelector
(
'
.space-group-value
'
);
this
.
structTypeField
=
this
.
element
.
querySelector
(
'
.structure-type-field
'
);
this
.
structTypeValue
=
this
.
element
.
querySelector
(
'
.structure-type-value
'
);
this
.
structPrototypeField
=
this
.
element
.
querySelector
(
'
.structure-prototype-field
'
);
this
.
structPrototypeValue
=
this
.
element
.
querySelector
(
'
.structure-prototype-value
'
);
this
.
strukturberichtField
=
this
.
element
.
querySelector
(
'
.strukturbericht-field
'
);
this
.
strukturberichtValue
=
this
.
element
.
querySelector
(
'
.strukturbericht-value
'
);
//this.band_gap = this.element.getElementsByClassName('e-struct-field')[0];
//fields= this.element.getElementsByClassName('method-field');
...
...
@@ -297,17 +284,12 @@ class Overview {
this
.
systemType
.
textContent
=
data
.
system_type
;
this
.
structTypeField
.
style
.
display
=
(
isBulk
&&
data
.
structure_type
!==
null
?
'
block
'
:
'
none
'
);
this
.
structPrototypeField
.
style
.
display
=
(
isBulk
&&
data
.
structure_prototype
!==
null
?
'
block
'
:
'
none
'
);
this
.
strukturberichtField
.
style
.
display
=
(
isBulk
&&
data
.
strukturbericht_designation
!==
null
?
'
block
'
:
'
none
'
);
this
.
spaceGroupField
.
style
.
display
=
(
isBulk
?
'
block
'
:
'
none
'
);
if
(
isBulk
){
this
.
structTypeValue
.
textContent
=
data
.
structure_type
;
this
.
structPrototypeValue
.
textContent
=
data
.
structure_prototype
;
this
.
strukturberichtValue
.
textContent
=
data
.
strukturbericht_designation
;
this
.
spaceGroupValue
.
textContent
=
data
.
space_group_number
;
this
.
spaceGroupValue
.
textContent
=
data
.
space_group_number
+
'
(
'
+
data
.
space_group_international_short_symbol
+
'
)
'
;
InfoSys
.
addElementToInfoSystem
(
this
.
spaceGroupValue
,
'
space-group.value:
'
+
data
.
space_group_number
);
}
...
...
client/src/material-mod/StructureDetails.view.js
View file @
4242ab90
...
...
@@ -51,7 +51,7 @@ class StructureDetails extends DetailsViewBase {
<div class="footer-flex" style="display: none">
<div class="fields-container"
style="flex-basis:
6
0%; border-right: 1px solid #E4E4E4; ">
style="flex-basis:
7
0%; border-right: 1px solid #E4E4E4; ">
<div>
<b><span info-sys-data="crystal-system">Lattice</span></b>:
...
...
@@ -67,7 +67,7 @@ class StructureDetails extends DetailsViewBase {
</div>
</div>
<div style="flex-basis:
4
0%; margin-left:
4
0px;">
<div style="flex-basis:
3
0%; margin-left:
3
0px;">
<div class="fields-container">
<div><b><span info-sys-data="wyckoff-position-population">Wyckoff sites</span></b></div>
<div class="wyckoff-sites-value"> </div>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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