Skip to content

Commit

Permalink
breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
ericjeangirard committed Dec 13, 2024
1 parent dddf499 commit ab7a7e6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 19 deletions.
22 changes: 12 additions & 10 deletions client/src/pages/datasets/search.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import {
Breadcrumb,
Button,
Col,
Container,
Link,
Modal,
ModalContent,
Row,
Expand Down Expand Up @@ -326,6 +328,14 @@ export default function DatasetsSearch() {
)}

<Container as="section" className="filters fr-my-5w">
<Breadcrumb className="fr-pt-4w fr-mt-0 fr-mb-2w">
<Link href="/">
Home
</Link>
<Link current>
Build my corpus of datasets from repositories
</Link>
</Breadcrumb>
<Row className="fr-pt-2w fr-pr-2w fr-pb-0 fr-pl-2w">
<Col xs="8">
<TagInput
Expand All @@ -347,7 +357,7 @@ export default function DatasetsSearch() {
tags={tags}
/>
</Col>
<Col offsetXs="1" className="text-right fr-pl-3w">
<Col offsetXs="1" className="text-right fr-pl-3w fr-mt-4w">
<Row gutters verticalAlign="bottom">
<Col>
<Select
Expand Down Expand Up @@ -389,15 +399,7 @@ export default function DatasetsSearch() {
</Col>
</Row>
<Row className="fr-pt-0 fr-pr-2w fr-pb-2w fr-pl-2w">
<Col xs="8">
<TextInput
hint="You can focus on recall issues in OpenAlex (missing ROR). This way, only affiliation strings that are NOT matched in OpenAlex to this specific ROR will be retrieved. If several ROR to exclude, separate them by space."
label="ROR to exclude: exclude affiliation strings already mapped to a specific ROR in OpenAlex"
onChange={(e) => setRorExclusions(e.target.value)}
value={rorExclusions}
/>
</Col>
<Col offsetXs="1" className="text-right fr-pl-3w">
<Col offsetXs="1" className="text-right fr-pl-3w fr-mt-4w">
<Button
className="fr-mt-2w"
disabled={searchParams.getAll('affiliations').length === 0}
Expand Down
20 changes: 11 additions & 9 deletions client/src/pages/publications/search.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import {
Breadcrumb,
Button,
Col,
Container,
Link,
Modal,
ModalContent,
Row,
Expand Down Expand Up @@ -327,6 +329,14 @@ export default function PublicationsSearch() {
)}

<Container as="section" className="filters fr-my-5w">
<Breadcrumb className="fr-pt-4w fr-mt-0 fr-mb-2w">
<Link href="/">
Home
</Link>
<Link current>
Build my corpus of publications
</Link>
</Breadcrumb>
<Row className="fr-pt-2w fr-pr-2w fr-pb-0 fr-pl-2w">
<Col xs="8">
<TagInput
Expand All @@ -348,7 +358,7 @@ export default function PublicationsSearch() {
tags={tags}
/>
</Col>
<Col offsetXs="1" className="text-right fr-pl-3w">
<Col offsetXs="1" className="text-right fr-pl-3w fr-mt-4w">
<Row gutters verticalAlign="bottom">
<Col>
<Select
Expand Down Expand Up @@ -390,14 +400,6 @@ export default function PublicationsSearch() {
</Col>
</Row>
<Row className="fr-pt-0 fr-pr-2w fr-pb-2w fr-pl-2w">
<Col xs="8">
<TextInput
hint="You can focus on recall issues in OpenAlex (missing ROR). This way, only affiliation strings that are NOT matched in OpenAlex to this specific ROR will be retrieved. If several ROR to exclude, separate them by space."
label="ROR to exclude: exclude affiliation strings already mapped to a specific ROR in OpenAlex"
onChange={(e) => setRorExclusions(e.target.value)}
value={rorExclusions}
/>
</Col>
<Col offsetXs="1" className="text-right fr-pl-3w">
<Button
className="fr-mt-2w"
Expand Down

0 comments on commit ab7a7e6

Please sign in to comment.