Commit 526060e1 authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Small updates to the search options.

parent bdffb455
Pipeline #84690 skipped with stage
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -67,8 +67,8 @@ class Overview {
</div>
<div class="footer">
<div ><b><span>System type</span></b>:
<span class="system-type-field" ></span>
<div ><b><span>Material type</span></b>:
<span class="material-type-field" ></span>
</div>
<div class="space-group-field" style="display: none">
<b><span info-sys-data="space-group">Space group</span></b>:
......@@ -214,7 +214,7 @@ class Overview {
this.materialTitle= this.element.getElementsByClassName('material-title')[0];
this.systemType= this.element.querySelector('.system-type-field');
this.systemType= this.element.querySelector('.material-type-field');
this.spaceGroupField = this.element.querySelector('.space-group-field');
this.spaceGroupValue = this.element.querySelector('.space-group-value');
this.structTypeField= this.element.querySelector('.structure-type-field');
......@@ -311,8 +311,8 @@ class Overview {
this.materialTitle.innerHTML= util.getMaterialTitle(data);
this.materialId = data.material_id;
let isBulk = (data.system_type === 'bulk');
this.systemType.textContent= data.system_type;
let isBulk = (data.material_type === 'bulk');
this.systemType.textContent= data.material_type;
this.structTypeField.style.display =
(isBulk && data.structure_type !== null ? 'block' : 'none');
this.spaceGroupField.style.display = (isBulk ? 'block' : 'none');
......
......@@ -194,9 +194,9 @@ class StructureDetails extends DetailsViewBase {
this.updateMarkedLeaf(leafId);
});
this.isBulk = (data.system_type === 'bulk');
this.isBulk = (data.material_type === 'bulk');
this.systemTypeField.textContent= data.system_type;
this.systemTypeField.textContent= data.material_type;
this.structTypeField.style.display =
(this.isBulk && data.structure_type !== null ? 'block' : 'none');
this.structPrototypeField.style.display =
......@@ -472,8 +472,8 @@ class TreeLeafViewer {
// and calculation data.
let materialData = DataStore.getMaterialData();
let materialId = materialData.material_id;
let is2Dsystem = (materialData.system_type === '2D');
let isBulk = (materialData.system_type === 'bulk');
let is2Dsystem = (materialData.material_type === '2D');
let isBulk = (materialData.material_type === 'bulk');
let calc = DataStore.getCalc(calcId);
let thereIsWyckoffData = DataStore.getMaterialData().has_free_wyckoff_parameters;
......@@ -725,8 +725,8 @@ class SummaryByFunctionalsComponent {
* Called when a functional is selected.
*/
_setData() {
let is2Dsystem = (DataStore.getMaterialData().system_type === '2D');
let isBulk = (DataStore.getMaterialData().system_type === 'bulk');
let is2Dsystem = (DataStore.getMaterialData().material_type === '2D');
let isBulk = (DataStore.getMaterialData().material_type === 'bulk');
let functional = this.functional;
let calcs = Array.from(this.calcMapByFunctional.get(this.functional));
let matId = DataStore.getMaterialData().material_id;
......
......@@ -233,7 +233,7 @@ class MaterialList {
<thead> <tr>
<th style="width: 24%;"></th>
<th style="width: 20%;">
<span info-sys-data="system-type">System type</span>
<span info-sys-data="material-type">Material type</span>
</th>
<th style="width: 16%;">
<span info-sys-data="space-group">Space group</span>
......@@ -260,7 +260,7 @@ class MaterialList {
`<tr class="mat-row" data-mat-id="${mat.material_id}">
<td > ${label} </td>
<td style="text-align:center" >
<!--<span info-sys-data="system-type">-->${mat.system_type} <!--</span>-->
<!--<span info-sys-data="material-type">-->${mat.material_type} <!--</span>-->
</td>
<td style="text-align:center" >
${mat.space_group_number === undefined ? '' : mat.space_group_number}
......
......@@ -64,10 +64,10 @@ class PropertiesBox {
</div>
<div class="field">
<div class="field-title">System type</div>
<input type="checkbox" class="system-type-field" value="bulk"> Bulk<br>
<input type="checkbox" class="system-type-field" value="2D"> 2D<br>
<input type="checkbox" class="system-type-field" value="1D"> 1D<br>
<div class="field-title">Material type</div>
<input type="checkbox" class="material-type-field" value="bulk"> Bulk<br>
<input type="checkbox" class="material-type-field" value="2D"> 2D<br>
<input type="checkbox" class="material-type-field" value="1D"> 1D<br>
</div>
<!--
......@@ -184,12 +184,6 @@ class PropertiesBox {
<select class="code-name-field" >
<option></option>
</select>
<!--
<input type="checkbox" class="code-name-field" value="VASP">VASP<br>
<input type="checkbox" class="code-name-field" value="quantum-espresso">Quantum Espresso<br>
<input type="checkbox" class="code-name-field" value="FHI-aims">FHI-aims<br>
<input type="checkbox" class="code-name-field" value="exciting">exciting<br>
-->
</div>
</div>
......@@ -198,21 +192,21 @@ class PropertiesBox {
<div style="float: right; width: 47%;">
<div class="field">
<div class="field-title"><span info-sys-data="basis-set-type">Basis set</span></div>
<input type="checkbox" class="basis-set-type-field" value="(L)APW+lo">
<span info-sys-data="basis-set-type.value:(L)APW+lo">(L)APW+lo</span><br>
<input type="checkbox" class="basis-set-type-field" value="FLAPW">
<span info-sys-data="basis-set-type.value:FLAPW">FLAPW</span><br>
<input type="checkbox" class="basis-set-type-field" value="gaussians">
<span info-sys-data="basis-set-type.value:gaussians">gaussians</span><br>
<input type="checkbox" class="basis-set-type-field" value="numeric AOs">
<span info-sys-data="basis-set-type.value:numeric AOs">numeric AOs</span><br>
<input type="checkbox" class="basis-set-type-field" value="plane waves">
<span info-sys-data="basis-set-type.value:plane waves">plane waves</span><br>
<input type="checkbox" class="basis-set-type-field" value="psinc functions">
<span info-sys-data="basis-set-type.value:psinc functions">psinc functions</span><br>
<input type="checkbox" class="basis-set-type-field" value="real-space grid">
<span info-sys-data="basis-set-type.value:real-space grid">real-space grid</span><br>
<div class="field-title"><span info-sys-data="basis-set">Basis set</span></div>
<input type="checkbox" class="basis-set-field" value="(L)APW+lo">
<span info-sys-data="basis-set.value:(L)APW+lo">(L)APW+lo</span><br>
<input type="checkbox" class="basis-set-field" value="LCAO">
<span info-sys-data="basis-set.value:LCAO">LCAO</span><br>
<input type="checkbox" class="basis-set-field" value="gaussians">
<span info-sys-data="basis-set.value:gaussians">gaussians</span><br>
<input type="checkbox" class="basis-set-field" value="numeric AOs">
<span info-sys-data="basis-set.value:numeric AOs">numeric AOs</span><br>
<input type="checkbox" class="basis-set-field" value="plane waves">
<span info-sys-data="basis-set.value:plane waves">plane waves</span><br>
<input type="checkbox" class="basis-set-field" value="psinc functions">
<span info-sys-data="basis-set.value:psinc functions">psinc functions</span><br>
<input type="checkbox" class="basis-set-field" value="real-space grid">
<span info-sys-data="basis-set.value:real-space grid">real-space grid</span><br>
</div>
</div>
......@@ -309,7 +303,7 @@ class PropertiesBox {
if (tabString === 'structure'){
this.addPropsFromTextFields(propsMap,['space-group-number'], reset);
this.addPropsFromDropdownList(propsMap,['structure-type'], reset);
this.addPropsFromCheckboxes(propsMap,['system-type','crystal-system'], reset);
this.addPropsFromCheckboxes(propsMap,['material-type', 'crystal-system'], reset);
// this.addMassDensityProps(propsMap, reset);
}else if (tabString === 'results'){
// this.addBandgapProps(propsMap, reset);
......@@ -317,7 +311,7 @@ class PropertiesBox {
'has-fermi-surface', 'has-thermal-properties'], reset);
}else if (tabString === 'method'){
this.addPropsFromCheckboxes(propsMap,['functional-type','basis-set-type'], reset);
this.addPropsFromCheckboxes(propsMap,['functional-type','basis-set'], reset);
this.addPropsFromDropdownList(propsMap,['code-name'], reset);
}//else if (this.tabSelected.className === 'contributors-tab'){
//this.addPropsFromTextFields(propsMap,['contributors']);}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment