대문: 두 판 사이의 차이
보이기
편집 요약 없음 |
편집 요약 없음 |
||
| 29번째 줄: | 29번째 줄: | ||
<input type="search" id="query" placeholder="검색어를 입력하세요"> | <input type="search" id="query" placeholder="검색어를 입력하세요"> | ||
<input type="hidden" name="search" id="searchValue"> | <input type="hidden" name="search" id="searchValue"> | ||
<input type="hidden" name="fulltext" id="fulltextFlag"> | |||
<button type="submit">검색</button> | <button type="submit">검색</button> | ||
</div> | </div> | ||
| 35번째 줄: | 36번째 줄: | ||
</div> | </div> | ||
<script> | |||
<script> | <script> | ||
document.getElementById('radioSearch').onsubmit = function () { | document.getElementById('radioSearch').onsubmit = function () { | ||
const raw = document.getElementById('query').value.trim(); | const raw = document.getElementById('query').value.trim(); | ||
const scope = document.querySelector('input[name="scope"]:checked').value; | const scope = document.querySelector('input[name="scope"]:checked').value; | ||
const searchValue = document.getElementById('searchValue'); | |||
const fulltextFlag = document.getElementById('fulltextFlag'); | |||
// 기본값 초기화 | |||
searchValue.value = raw; | |||
fulltextFlag.value = ''; | |||
if (scope === ' | if (scope === 'all') { | ||
// 전체: 본문 fulltext 검색 | |||
} else | fulltextFlag.value = '1'; | ||
} else { | |||
// 유적 / 개념: 표제어(제목) 검색 | |||
fulltextFlag.value = ''; | |||
} | } | ||
}; | |||
</script> | |||
</script> | </script> | ||
</html> | </html> | ||
2026년 1월 20일 (화) 05:45 판
한국고고학사전
한국고고학사전은 국립문화유산연구원이 발간한 고고학 전문 사전으로, 한국 고고학 관련 유적·유물과 주요 개념어에 대한 해설을 제공합니다.


