+chinese
This commit is contained in:
@@ -2,20 +2,20 @@
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Catalog - MZH Library</title>
|
||||
<title>馆藏检索 - MZH 图书馆</title>
|
||||
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/app.css">
|
||||
</head>
|
||||
<body>
|
||||
<%@ include file="/WEB-INF/jsp/common/header.jspf" %>
|
||||
<main class="page-shell">
|
||||
<section class="dashboard-hero catalog-hero" aria-labelledby="catalog-title">
|
||||
<p class="eyebrow">Catalog</p>
|
||||
<h1 id="catalog-title">Book catalog</h1>
|
||||
<p>Search the library collection by identifier, title, author, or category.</p>
|
||||
<p class="eyebrow">馆藏</p>
|
||||
<h1 id="catalog-title">馆藏检索</h1>
|
||||
<p>按图书编号、书名、作者或分类检索馆藏。</p>
|
||||
</section>
|
||||
|
||||
<c:if test="${not empty errorMessage}">
|
||||
@@ -24,27 +24,27 @@
|
||||
</div>
|
||||
</c:if>
|
||||
|
||||
<section class="toolbar-panel" aria-label="Catalog search">
|
||||
<section class="toolbar-panel" aria-label="馆藏检索">
|
||||
<form class="search-form" action="${pageContext.request.contextPath}/catalog" method="get">
|
||||
<div class="search-field">
|
||||
<label for="identifier">Book ID</label>
|
||||
<label for="identifier">图书编号</label>
|
||||
<input id="identifier" name="identifier" type="text" value="${fn:escapeXml(criteria.identifier)}">
|
||||
</div>
|
||||
|
||||
<div class="search-field">
|
||||
<label for="title">Title</label>
|
||||
<label for="title">书名</label>
|
||||
<input id="title" name="title" type="text" value="${fn:escapeXml(criteria.title)}">
|
||||
</div>
|
||||
|
||||
<div class="search-field">
|
||||
<label for="author">Author</label>
|
||||
<label for="author">作者</label>
|
||||
<input id="author" name="author" type="text" value="${fn:escapeXml(criteria.author)}">
|
||||
</div>
|
||||
|
||||
<div class="search-field">
|
||||
<label for="categoryId">Category</label>
|
||||
<label for="categoryId">分类</label>
|
||||
<select id="categoryId" name="categoryId">
|
||||
<option value="">All categories</option>
|
||||
<option value="">全部分类</option>
|
||||
<c:forEach var="category" items="${categories}">
|
||||
<option value="${category.id}" <c:if test="${criteria.categoryId == category.id}">selected</c:if>>
|
||||
<c:out value="${category.name}" />
|
||||
@@ -56,31 +56,31 @@
|
||||
</c:if>
|
||||
</div>
|
||||
|
||||
<button class="button button-primary" type="submit">Search</button>
|
||||
<a class="button button-secondary" href="${pageContext.request.contextPath}/catalog">Clear</a>
|
||||
<button class="button button-primary" type="submit">检索</button>
|
||||
<a class="button button-secondary" href="${pageContext.request.contextPath}/catalog">清空</a>
|
||||
<c:if test="${canManageBooks}">
|
||||
<a class="button button-secondary" href="${pageContext.request.contextPath}/books">Manage books</a>
|
||||
<a class="button button-secondary" href="${pageContext.request.contextPath}/books">管理图书</a>
|
||||
</c:if>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<section class="table-panel" aria-labelledby="catalog-results-title">
|
||||
<h2 id="catalog-results-title">Results</h2>
|
||||
<h2 id="catalog-results-title">检索结果</h2>
|
||||
<c:choose>
|
||||
<c:when test="${empty books}">
|
||||
<p class="empty-state">No books match the current filters.</p>
|
||||
<p class="empty-state">没有符合当前筛选条件的图书。</p>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<div class="table-scroll">
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Book ID</th>
|
||||
<th scope="col">Title</th>
|
||||
<th scope="col">Author</th>
|
||||
<th scope="col">Category</th>
|
||||
<th scope="col">Copies</th>
|
||||
<th scope="col">Status</th>
|
||||
<th scope="col">图书编号</th>
|
||||
<th scope="col">书名</th>
|
||||
<th scope="col">作者</th>
|
||||
<th scope="col">分类</th>
|
||||
<th scope="col">馆藏数量</th>
|
||||
<th scope="col">状态</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
Reference in New Issue
Block a user