Skip to content
Snippets Groups Projects
Commit 0a3d4a3b authored by François Agneray's avatar François Agneray
Browse files

Fixed bug reload search_type svom_json_kw

parent 8019e244
No related branches found
No related tags found
1 merge request!29Develop
Pipeline #6806 passed
Pipeline: anis-next

#6807

    ...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
    <small>Currently based on anis-client v{{ anisClientVersion }}. Code licensed CeCILL.</small> <small>Currently based on anis-client v{{ anisClientVersion }}. Code licensed CeCILL.</small>
    </div> </div>
    <div class="row justify-content-around"> <div class="row justify-content-around">
    <div class="col text-center"> <div class="col mb-3 text-center">
    <a href="http://cesam.lam.fr" title="Centre de données Astrophysique de Marseille"> <a href="http://cesam.lam.fr" title="Centre de données Astrophysique de Marseille">
    <img class="img-fluid" src="assets/logo_cesam_s.png" alt="CeSAM" /> <img class="img-fluid" src="assets/logo_cesam_s.png" alt="CeSAM" />
    </a> </a>
    ......
    ...@@ -10,3 +10,8 @@ ...@@ -10,3 +10,8 @@
    div.jumbotron p { div.jumbotron p {
    line-height: 35px; line-height: 35px;
    } }
    .img-fluid {
    height: auto;
    max-width: 100%;
    }
    \ No newline at end of file
    ...@@ -90,14 +90,14 @@ ...@@ -90,14 +90,14 @@
    </div> </div>
    <div class="row mt-3"> <div class="row mt-3">
    <div class="col"> <div class="col">
    Showing Show
    <select class="custom-select" (change)="changeNbItems($event.target.value)"> <select class="custom-select" (change)="changeNbItems($event.target.value)">
    <option value="10" selected="true">10</option> <option value="10" selected="true">10</option>
    <option value="20">20</option> <option value="20">20</option>
    <option value="50">50</option> <option value="50">50</option>
    <option value="100">100</option> <option value="100">100</option>
    </select> </select>
    of {{ dataLength }} items entries
    </div> </div>
    <div class="col-auto"> <div class="col-auto">
    <pagination <pagination
    ...@@ -109,6 +109,6 @@ ...@@ -109,6 +109,6 @@
    [itemsPerPage]="nbItems" [itemsPerPage]="nbItems"
    previousText="&lsaquo;" nextText="&rsaquo;" firstText="&laquo;" lastText="&raquo;" previousText="&lsaquo;" nextText="&rsaquo;" firstText="&laquo;" lastText="&raquo;"
    (pageChanged)="changePage($event.page)"> (pageChanged)="changePage($event.page)">
    </pagination> </pagination>
    </div> </div>
    </div> </div>
    ...@@ -37,6 +37,7 @@ export interface Criterion { ...@@ -37,6 +37,7 @@ export interface Criterion {
    * criterionToString(criterion) * criterionToString(criterion)
    */ */
    export const criterionToString = (criterion: Criterion): string => { export const criterionToString = (criterion: Criterion): string => {
    console.log(criterion);
    let str: string = criterion.id.toString(); let str: string = criterion.id.toString();
    if (criterion.type === 'between') { if (criterion.type === 'between') {
    const bw = criterion as BetweenCriterion; const bw = criterion as BetweenCriterion;
    ...@@ -124,6 +125,7 @@ export const stringToCriterion = (attribute: Attribute, params: string[] = null) ...@@ -124,6 +125,7 @@ export const stringToCriterion = (attribute: Attribute, params: string[] = null)
    return { id: attribute.id, type: 'multiple', options } as SelectMultipleCriterion; return { id: attribute.id, type: 'multiple', options } as SelectMultipleCriterion;
    } }
    case 'json': case 'json':
    case 'svom_json_kw':
    if (params) { if (params) {
    const [path, operator, value] = params[2].split('|'); const [path, operator, value] = params[2].split('|');
    return { id: attribute.id, type: 'json', path, operator, value } as JsonCriterion; return { id: attribute.id, type: 'json', path, operator, value } as JsonCriterion;
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment