import React from "react"; import Link from "next/link"; import { CategoryNav } from "./_components/CategoryNav"; import { publications, patents } from "../../content/publications"; import { PUB_CATEGORIES } from "../../content/categories"; export default function PublicationsIndexPage() { const allRecords = [ ...publications.map((p) => ({ ...p, type: "paper" as const })), ...patents.map((p) => ({ category: "patent" as const, title: p.title, venue: `발명자: ${p.inventors} (출원번호: ${p.applicationNo})`, volume: p.registrationNo ? `등록번호: ${p.registrationNo}` : `출원국가: ${p.country}`, publishedAt: p.publishedAt, type: "patent" as const, })), ]; // Sort by publishedAt descending const sortedRecords = [...allRecords].sort( (a, b) => new Date(b.publishedAt).getTime() - new Date(a.publishedAt).getTime() ); const recentRecords = sortedRecords.slice(0, 10); const getCategoryCount = (slug: string) => { if (slug === "patent") return patents.length; return publications.filter((p) => p.category === slug).length; }; return (
{/* Header */}
Research Output & Patents

연구 실적 개요

국제·국내 우수 학술지 및 학술대회 논문 148건과 특허 75건 등 총 {allRecords.length}건의 실측 연구 성과 카탈로그입니다.

{/* Category Nav */} {/* Category Cards Overview */}

카테고리별 실적 분류

{PUB_CATEGORIES.map((cat) => { const count = getCategoryCount(cat.slug); return (
Category {count}건

{cat.label}

{cat.desc}

SSG Pre-rendered 목록 보기 ({count}) ↗
); })}
{/* Recent 10 Highlight Records */}

최신 성과 하이라이트 (Top 10)

Total {allRecords.length} Records
{recentRecords.map((rec, idx) => (

{rec.title}

{rec.publishedAt}
{rec.venue}
{rec.volume && (
{rec.volume}
)}
))}
); }