Skip to content

Commit

Permalink
improvement: smol data, detail page and search page fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinstadler committed Sep 23, 2024
1 parent c6e43ec commit 550caff
Show file tree
Hide file tree
Showing 10 changed files with 8,028 additions and 7,976 deletions.
2 changes: 1 addition & 1 deletion app/publication/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default async function PublicationPage(props: PublicationPageProps) {
<p>
<span className="bernhard-key">{t("publisher")}</span> {pub.publisher.name}
</p>
<p>{pub.year}</p>
<p>{pub.year_display}</p>
<p className="bernhard-key">{t("contains")}:</p>
<p>
<InlineList separator=" / ">
Expand Down
1 change: 1 addition & 0 deletions app/search/instantsearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ function DefaultRefinementList({
attribute={attribute}
classNames={{
count: 'before:content-["("] after:content-[")"]',
disabledShowMore: "hidden",
labelText: "px-1",
root: "p-2",
}}
Expand Down
2 changes: 1 addition & 1 deletion components/simple-listing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function SimpleListing(props: SimpleListingProps) {
<MainContent className="grid grid-cols-[repeat(auto-fit,minmax(15rem,1fr))]">
{counts?.map((c) => {
return (
<div key={c.value}>
<div key={c.value} className="px-2">
<AppNavLink href={`/search?${props.path}=${c.value}`}>
{c.value}&nbsp;({c.count})
</AppNavLink>
Expand Down
1 change: 1 addition & 0 deletions lib/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export interface Publication {
// publication. this field is inferred from the 'eltern' column in openrefine.
later?: Array<string>;
year: number;
year_display: string;
isbn?: string;
publisher: Publisher;
exemplar_suhrkamp_berlin: boolean;
Expand Down
2 changes: 1 addition & 1 deletion messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"later_editions": "later editions"
},
"SearchPage": {
"filter": "filter",
"filter": "search",
"filter_by": {
"category": "categories",
"language": "languages",
Expand Down
Loading

0 comments on commit 550caff

Please sign in to comment.