Skip to content

Commit

Permalink
style(ontology): change configure view copy
Browse files Browse the repository at this point in the history
  • Loading branch information
candicecz committed Oct 17, 2024
1 parent 471dba7 commit 5c61670
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 66 deletions.
70 changes: 35 additions & 35 deletions configs/schema-definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@
"name": "Cited By Author",
"dotfield": "citedBy.author",
"property": "author",
"count": 11,
"count": 8,
"type": "object",
"description": {
"Dataset": "Author(s) of the referenced work",
Expand All @@ -825,7 +825,7 @@
"name": "Cited By Author Type",
"dotfield": "citedBy.author.@type",
"property": "@type",
"count": 11,
"count": 8,
"type": "text",
"isAdvancedSearchField": false
},
Expand Down Expand Up @@ -859,7 +859,7 @@
"name": "Cited By Author Name",
"dotfield": "citedBy.author.name",
"property": "name",
"count": 11,
"count": 8,
"type": "text",
"schemaType": "string",
"description": {
Expand All @@ -885,7 +885,7 @@
"name": "Cited By Date Published",
"dotfield": "citedBy.datePublished",
"property": "datePublished",
"count": 10,
"count": 7,
"type": "date",
"schemaType": "string",
"description": {
Expand All @@ -898,7 +898,7 @@
"name": "Cited By Description",
"dotfield": "citedBy.description",
"property": "description",
"count": 2,
"count": 1,
"type": "text",
"schemaType": "string",
"description": {
Expand Down Expand Up @@ -928,15 +928,15 @@
"name": "Cited By From PMID",
"dotfield": "citedBy.fromPMID",
"property": "fromPMID",
"count": 10,
"count": 7,
"type": "boolean",
"isAdvancedSearchField": false
},
"citedBy.identifier": {
"name": "Cited By Identifier",
"dotfield": "citedBy.identifier",
"property": "identifier",
"count": 10,
"count": 7,
"type": "keyword",
"schemaType": "string",
"description": {
Expand All @@ -962,7 +962,7 @@
"name": "Cited By Journal Name",
"dotfield": "citedBy.journalName",
"property": "journalName",
"count": 10,
"count": 7,
"type": "keyword",
"schemaType": "string",
"description": {
Expand Down Expand Up @@ -1065,7 +1065,7 @@
"name": "Collection Size",
"dotfield": "collectionSize",
"property": "collectionSize",
"count": 26,
"count": 20,
"type": "object",
"description": {
"ResourceCatalog": "The number of records, datasets, tools, items, pages, etc. in the resource catalog. Min/max estimates can be used in lieu of actual number. If completely unknown, set value = 0, and unitText = 'unknown'"
Expand All @@ -1076,7 +1076,7 @@
"name": "Collection Size Type",
"dotfield": "collectionSize.@type",
"property": "@type",
"count": 24,
"count": 18,
"type": "keyword",
"isAdvancedSearchField": false
},
Expand All @@ -1096,7 +1096,7 @@
"name": "Collection Size Min Value",
"dotfield": "collectionSize.minValue",
"property": "minValue",
"count": 25,
"count": 19,
"type": "integer",
"schemaType": "number",
"description": {
Expand All @@ -1108,7 +1108,7 @@
"name": "Collection Size Unit Text",
"dotfield": "collectionSize.unitText",
"property": "unitText",
"count": 26,
"count": 20,
"type": "text",
"schemaType": "string",
"description": {
Expand All @@ -1132,7 +1132,7 @@
"name": "Collection Type",
"dotfield": "collectionType",
"property": "collectionType",
"count": 26,
"count": 20,
"type": "keyword",
"enum": [
"Knowledge Base",
Expand Down Expand Up @@ -1998,7 +1998,7 @@
"name": "Genre",
"dotfield": "genre",
"property": "genre",
"count": 26,
"count": 20,
"type": "keyword",
"schemaType": "string",
"enum": [
Expand All @@ -2021,7 +2021,7 @@
"name": "Has API",
"dotfield": "hasAPI",
"property": "hasAPI",
"count": 25,
"count": 19,
"type": "boolean",
"schemaType": "boolean",
"description": {
Expand All @@ -2036,7 +2036,7 @@
"name": "Has Download",
"dotfield": "hasDownload",
"property": "hasDownload",
"count": 24,
"count": 18,
"type": "text",
"schemaType": "string",
"enum": [
Expand Down Expand Up @@ -2468,7 +2468,7 @@
"name": "In Language Type",
"dotfield": "inLanguage.@type",
"property": "@type",
"count": 26,
"count": 20,
"type": "text",
"isAdvancedSearchField": false
},
Expand Down Expand Up @@ -2930,7 +2930,7 @@
"name": "Is Based On Author",
"dotfield": "isBasedOn.author",
"property": "author",
"count": 5,
"count": 4,
"type": "object",
"description": {
"Dataset": "Author(s) of the referenced work",
Expand All @@ -2942,7 +2942,7 @@
"name": "Is Based On Author Type",
"dotfield": "isBasedOn.author.@type",
"property": "@type",
"count": 5,
"count": 4,
"type": "text",
"isAdvancedSearchField": false
},
Expand Down Expand Up @@ -2976,7 +2976,7 @@
"name": "Is Based On Author Name",
"dotfield": "isBasedOn.author.name",
"property": "name",
"count": 5,
"count": 4,
"type": "text",
"schemaType": "string",
"description": {
Expand All @@ -3002,7 +3002,7 @@
"name": "Is Based On Date Published",
"dotfield": "isBasedOn.datePublished",
"property": "datePublished",
"count": 380574,
"count": 380573,
"type": "date",
"schemaType": "string",
"description": {
Expand Down Expand Up @@ -3045,7 +3045,7 @@
"name": "Is Based On From PMID",
"dotfield": "isBasedOn.fromPMID",
"property": "fromPMID",
"count": 5,
"count": 4,
"type": "boolean",
"isAdvancedSearchField": false
},
Expand All @@ -3066,7 +3066,7 @@
"name": "Is Based On Journal Name",
"dotfield": "isBasedOn.journalName",
"property": "journalName",
"count": 5,
"count": 4,
"type": "keyword",
"schemaType": "string",
"description": {
Expand All @@ -3092,7 +3092,7 @@
"name": "Is Based On PMID",
"dotfield": "isBasedOn.pmid",
"property": "pmid",
"count": 5,
"count": 4,
"type": "text",
"schemaType": "string",
"description": {
Expand Down Expand Up @@ -3122,7 +3122,7 @@
"name": "Is Basis For",
"dotfield": "isBasisFor",
"property": "isBasisFor",
"count": 12,
"count": 7,
"type": "object",
"description": {
"Dataset": "A dataset which reuses the dataset.",
Expand All @@ -3134,7 +3134,7 @@
"name": "Is Basis For Type",
"dotfield": "isBasisFor.@type",
"property": "@type",
"count": 12,
"count": 7,
"type": "keyword",
"isAdvancedSearchField": false
},
Expand Down Expand Up @@ -3248,7 +3248,7 @@
"name": "Is Basis For Name",
"dotfield": "isBasisFor.name",
"property": "name",
"count": 12,
"count": 7,
"type": "text",
"schemaType": "string",
"description": {
Expand Down Expand Up @@ -3278,7 +3278,7 @@
"name": "Is Basis For URL",
"dotfield": "isBasisFor.url",
"property": "url",
"count": 12,
"count": 7,
"type": "text",
"schemaType": "string",
"description": {
Expand Down Expand Up @@ -3677,7 +3677,7 @@
"name": "Is Similar To",
"dotfield": "isSimilarTo",
"property": "isSimilarTo",
"count": 2,
"count": 1,
"type": "object",
"description": {
"Dataset": "Datasets or computational tools which are similar to the work, based on terms in the names, descriptions, authors, measurementTechniques, infectiousAgents, healthConditions, etc.",
Expand All @@ -3693,7 +3693,7 @@
"name": "Is Similar To Type",
"dotfield": "isSimilarTo.@type",
"property": "@type",
"count": 2,
"count": 1,
"type": "text",
"isAdvancedSearchField": false
},
Expand Down Expand Up @@ -3773,7 +3773,7 @@
"name": "Is Similar To Name",
"dotfield": "isSimilarTo.name",
"property": "name",
"count": 2,
"count": 1,
"type": "text",
"schemaType": "string",
"description": {
Expand Down Expand Up @@ -4780,7 +4780,7 @@
"name": "Usage Info",
"dotfield": "usageInfo",
"property": "usageInfo",
"count": 31,
"count": 25,
"type": "object",
"description": {
"Dataset": "Data usage agreement, specifying the terms under which the dataset can be used. Note that this is related to but distinct from the license.",
Expand Down Expand Up @@ -4809,7 +4809,7 @@
"name": "Usage Info Name",
"dotfield": "usageInfo.name",
"property": "name",
"count": 22,
"count": 16,
"type": "text",
"schemaType": "string",
"description": {
Expand All @@ -4822,7 +4822,7 @@
"name": "Usage Info URL",
"dotfield": "usageInfo.url",
"property": "url",
"count": 31,
"count": 25,
"type": "text",
"schemaType": "string",
"description": {
Expand Down Expand Up @@ -5000,7 +5000,7 @@
"name": "Variable Measured URL",
"dotfield": "variableMeasured.url",
"property": "url",
"count": 23,
"count": 17,
"type": "text",
"schemaType": "string",
"description": {
Expand Down
29 changes: 0 additions & 29 deletions src/components/checkbox-list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,6 @@ import {
import React from 'react';
import { FaCaretDown } from 'react-icons/fa6';
import { ScrollContainer } from 'src/components/scroll-container';
interface Option {
name: string;
value: string;
count?: number;
}

interface Option {
name: string;
value: string;
count?: number;
}

interface Option {
name: string;
value: string;
count?: number;
}

interface Option {
name: string;
value: string;
count?: number;
}

interface Option {
name: string;
value: string;
count?: number;
}

interface Option {
name: string;
Expand Down
4 changes: 2 additions & 2 deletions src/views/ontology-browser/components/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,12 @@ export const OntologyBrowserTable = ({
mb='0'
fontSize='sm'
>
Include terms with 0 associated datasets?
Hide terms with 0 datasets?
</FormLabel>
<Switch
id='include-empty-counts'
colorScheme='primary'
isChecked={configureView.includeEmptyCounts === true}
isChecked={configureView.includeEmptyCounts === false}
onChange={() =>
setConfiguredView(() => {
return {
Expand Down

0 comments on commit 5c61670

Please sign in to comment.