Kaynağa Gözat

统一教育学院站内导航并限定搜索范围

- 站内搜索限定当前网站及递归下级网站,排除顶部链接、页脚和学校首页等隐藏配置栏目
- 教育学院首页、目录、列表、正文、单页和搜索页统一使用左侧快速导航,移动端导航置于正文上方
- 一级菜单默认直达首个子栏目,移动端提供独立子菜单展开按钮
- 抄送文章通过受校验的 entryNav 保留进入栏目上下文,单页不再显示返回列表
- 恢复体育部党支部栏目状态,继续停用模板种子文章
非繁 1 gün önce
ebeveyn
işleme
f1d949dcd0

+ 12 - 6
WebRoot/main/ffkj-portal/education-college.css

@@ -50,12 +50,14 @@ ul{list-style:none}
 .edu-nav{position:sticky;top:0;z-index:80;background:linear-gradient(90deg,#7a1c2c 0%,#a3263c 54%,#bd3c54 100%);border-bottom:3px solid #5f1420;box-shadow:0 4px 15px rgba(90,15,25,.14)}
 .edu-nav-inner{min-height:54px;display:flex;align-items:center;justify-content:center;gap:4px}
 .edu-nav-item{position:relative;display:flex;align-items:stretch}
+.edu-nav-row{display:flex;align-items:stretch;min-width:0}
 .edu-nav-link{display:flex;align-items:center;justify-content:center;min-height:38px;padding:8px 22px;border-radius:22px;color:#fff;font-size:15px;font-weight:600;letter-spacing:.05em;transition:background .2s,color .2s}
 .education-page .edu-nav .edu-nav-link:link,.education-page .edu-nav .edu-nav-link:visited{color:#fff!important}
 .edu-nav-link:hover,.edu-nav-link:focus-visible{background:rgba(255,255,255,.17);color:#fff}
 .edu-nav-link.is-active{background:#fff6f2;color:var(--edu-wine-deep);font-weight:800;box-shadow:0 3px 11px rgba(60,10,20,.26)}
 .education-page .edu-nav .edu-nav-link.is-active:link,.education-page .edu-nav .edu-nav-link.is-active:visited{color:var(--edu-wine-deep)!important}
-.edu-nav-item.has-children>.edu-nav-link::after{content:"";width:5px;height:5px;margin:-3px 0 0 8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
+.edu-nav-item.has-children .edu-nav-row>.edu-nav-link::after{content:"";width:5px;height:5px;margin:-3px 0 0 8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
+.edu-subnav-toggle{display:none}
 .edu-subnav{position:absolute;left:0;top:calc(100% + 5px);z-index:90;min-width:178px;padding:7px 0;border:1px solid rgba(255,255,255,.14);border-top:0;border-radius:0 0 8px 8px;background:linear-gradient(180deg,#7a1c2c 0%,#651522 100%);box-shadow:0 15px 32px rgba(80,20,30,.26);opacity:0;visibility:hidden;transform:translateY(8px);transition:.2s}
 .edu-nav-item:hover .edu-subnav,.edu-nav-item:focus-within .edu-subnav{opacity:1;visibility:visible;transform:translateY(0)}
 .edu-nav-item:last-child>.edu-subnav{left:auto;right:0}
@@ -193,7 +195,7 @@ body.education-page a.edu-zone-btn{position:relative;z-index:1;display:inline-fl
 .edu-breadcrumb .edu-wrap{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-height:45px;color:#8c706b;font-size:12.5px}
 .edu-breadcrumb a:hover{color:var(--edu-wine)}
 .edu-list-section{padding:34px 0 64px}
-.edu-list-layout{display:grid;grid-template-columns:255px minmax(0,1fr);gap:28px;align-items:start}
+.edu-list-layout{display:grid;grid-template-columns:276px minmax(0,1fr);gap:28px;align-items:start}
 .edu-sidebar{position:sticky;top:73px;overflow:hidden;border:1px solid #6d1827;border-radius:9px;background:linear-gradient(180deg,#7a1c2c 0%,#651522 100%);box-shadow:0 10px 26px rgba(93,18,31,.18)}
 .edu-sidebar-head{padding:19px 20px 16px;background:linear-gradient(110deg,var(--edu-wine-deep),var(--edu-wine-soft));color:#fff}
 .edu-sidebar-head small{display:block;margin-bottom:3px;font-size:9px;letter-spacing:.18em;opacity:.7}
@@ -238,7 +240,7 @@ body.education-page a.edu-zone-btn{position:relative;z-index:1;display:inline-fl
 
 /* 正文 */
 .edu-detail-section{padding:34px 0 62px}
-.edu-detail-layout{display:block;max-width:960px;margin:0 auto}
+.edu-detail-layout{display:grid;grid-template-columns:276px minmax(0,1fr);gap:28px;align-items:start}
 .edu-detail-card{padding:38px 43px 48px;border:1px solid var(--edu-line);border-radius:9px;background:var(--edu-paper);box-shadow:0 8px 26px rgba(122,28,44,.07)}
 .edu-detail-title{font-family:"STZhongsong","Songti SC",serif;font-size:clamp(25px,2.6vw,34px);line-height:1.55;text-align:center;color:#4b2c2d}
 .edu-detail-meta{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px 20px;margin-top:17px;padding-bottom:20px;border-bottom:1px solid var(--edu-line);color:#a08a84;font-size:12px}
@@ -257,7 +259,7 @@ body.education-page a.edu-zone-btn{position:relative;z-index:1;display:inline-fl
 
 /* 搜索 */
 .edu-search-section{padding:34px 0 64px}
-.edu-search-panel{max-width:960px;margin:0 auto;padding:28px;border:1px solid var(--edu-line);border-radius:9px;background:var(--edu-paper);box-shadow:var(--edu-shadow)}
+.edu-search-panel{min-width:0;padding:28px;border:1px solid var(--edu-line);border-radius:9px;background:var(--edu-paper);box-shadow:var(--edu-shadow)}
 .edu-search-form{display:flex;gap:10px;margin-bottom:24px}
 .edu-search-form input{flex:1;min-width:0;height:44px;padding:0 15px;border:1px solid #dfc4c3;border-radius:4px;background:#fff;color:var(--edu-ink);outline:0}
 .edu-search-form input:focus{border-color:var(--edu-wine);box-shadow:0 0 0 3px rgba(163,38,60,.1)}
@@ -269,10 +271,14 @@ body.education-page a.edu-zone-btn{position:relative;z-index:1;display:inline-fl
   .edu-nav.is-open{transform:translateX(0)}
   .edu-nav-inner{display:block;min-height:0}
   .edu-nav-item{display:block}
+  .edu-nav-row{display:grid;grid-template-columns:minmax(0,1fr) 52px;align-items:stretch}
   .edu-nav-link{justify-content:flex-start;min-height:50px;padding:12px 8px;border-radius:0;border-bottom:1px solid rgba(255,255,255,.12);font-size:15px}
   .edu-nav-link.is-active{background:rgba(255,255,255,.12);color:#fff;box-shadow:none}
   .education-page .edu-nav .edu-nav-link.is-active:link,.education-page .edu-nav .edu-nav-link.is-active:visited{color:#fff!important}
-  .edu-nav-item.has-children>.edu-nav-link::after{margin-left:auto}
+  .edu-nav-item.has-children .edu-nav-row>.edu-nav-link::after{display:none}
+  .edu-subnav-toggle{display:flex;align-items:center;justify-content:center;width:52px;min-height:50px;border:0;border-bottom:1px solid rgba(255,255,255,.12);background:transparent;color:#fff}
+  .edu-subnav-toggle::before{content:"";width:8px;height:8px;margin-top:-4px;border-right:1.5px solid #fff;border-bottom:1.5px solid #fff;transform:rotate(45deg);transition:transform .2s}
+  .edu-nav-item.is-open .edu-subnav-toggle::before{margin-top:4px;transform:rotate(225deg)}
   .edu-subnav{position:static;display:none;min-width:0;padding:2px 0 8px;border-radius:0;background:rgba(255,255,255,.07);box-shadow:none;opacity:1;visibility:visible;transform:none}
   .edu-nav-item.is-open .edu-subnav{display:block}
   .edu-subnav a{padding:9px 20px;border-bottom:1px solid rgba(255,255,255,.08);color:#fff}
@@ -295,7 +301,7 @@ body.education-page a.edu-zone-btn{position:relative;z-index:1;display:inline-fl
   .edu-footer-main{grid-template-columns:1fr 1fr;gap:30px}
   .edu-footer-main>div:first-child{grid-column:1/-1}
   .edu-twin{gap:20px}
-  .edu-list-layout{grid-template-columns:1fr}
+  .edu-list-layout,.edu-detail-layout{grid-template-columns:1fr}
   .edu-sidebar{position:static}
   .edu-sidebar-nav{display:flex;flex-wrap:wrap;padding:8px}
   .edu-sidebar-nav a{border-left:0;border-bottom:2px solid transparent;padding:9px 12px}

+ 2 - 6
WebRoot/web/upload/ffkj-template/education-catalog.jsp

@@ -1,6 +1,5 @@
 <%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
-<c:set var="educationSidebarTitle" value="${empty parNavigation.name ? navigation.name : parNavigation.name}"/>
 <!doctype html>
 <html lang="zh-CN">
 <head>
@@ -10,7 +9,7 @@
 	<meta name="keywords" content="${website.seoKeywords}">
 	<title>${navigation.name}_${empty website.seoTitle ? website.name : website.seoTitle}</title>
 	<link rel="icon" href="${empty website.seoIcon ? website.logo : website.seoIcon}?v=20261109-education-2">
-	<link rel="stylesheet" href="/main/ffkj-portal/education-college.css?v=20261116-zone-btn-white">
+	<link rel="stylesheet" href="/main/ffkj-portal/education-college.css?v=20261127-navigation-r1">
 </head>
 <body class="education-page">
 	<%@ include file="education-header.jsp"%>
@@ -21,10 +20,7 @@
 		<div class="edu-breadcrumb"><div class="edu-wrap"><a href="/">首页</a><c:forEach items="${crumbsNavList}" var="item"><span>/</span><a href="${item.url}">${item.name}</a></c:forEach></div></div>
 		<section class="edu-list-section">
 			<div class="edu-wrap edu-list-layout">
-				<aside class="edu-sidebar">
-					<div class="edu-sidebar-head"><small>COLUMN NAVIGATION</small><h2>${empty educationSidebarTitle ? '学院栏目' : educationSidebarTitle}</h2></div>
-					<nav class="edu-sidebar-nav" aria-label="${educationSidebarTitle}栏目导航"><c:choose><c:when test="${not empty brotherNavList}"><c:forEach items="${brotherNavList}" var="item"><a class="${item.navigationid eq navigation.navigationid ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a></c:forEach></c:when><c:otherwise><c:forEach items="${navList}" var="item"><c:if test="${item.name ne '首页' and item.name ne '首页子栏目'}"><a class="${item.navigationid eq navigation.navigationid ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a></c:if></c:forEach></c:otherwise></c:choose></nav>
-				</aside>
+					<%@ include file="education-sidebar.jsp"%>
 				<article class="edu-list-panel">
 					<div class="edu-list-head"><h2>${navigation.name}</h2><span>${empty navigation.nameAssistant ? 'Columns' : navigation.nameAssistant}</span></div>
 					<c:choose>

+ 3 - 2
WebRoot/web/upload/ffkj-template/education-details.jsp

@@ -10,7 +10,7 @@
 	<title>${articleTitle}_${navigation.name}_${empty website.seoTitle ? website.name : website.seoTitle}</title>
 	<link rel="icon" href="${empty website.seoIcon ? website.logo : website.seoIcon}?v=20261109-education-2">
 	<script src="/main/dist/websites/plug-in/jquery/jquery1.11.3.min.js"></script>
-	<link rel="stylesheet" href="/main/ffkj-portal/education-college.css?v=20261116-zone-btn-white">
+	<link rel="stylesheet" href="/main/ffkj-portal/education-college.css?v=20261127-navigation-r1">
 </head>
 <body class="education-page">
 	<%@ include file="education-header.jsp"%>
@@ -21,11 +21,12 @@
 		<div class="edu-breadcrumb"><div class="edu-wrap"><a href="/">首页</a><c:forEach items="${crumbsNavList}" var="item"><span>/</span><a href="${item.url}">${item.name}</a></c:forEach></div></div>
 		<section class="edu-detail-section">
 			<div class="edu-wrap edu-detail-layout">
+				<%@ include file="education-sidebar.jsp"%>
 				<article class="edu-detail-card">
 					<h1 class="edu-detail-title">${articleTitle}</h1>
 					<div class="edu-detail-meta"><span>${navigation.name}</span><time>${articleReleaseTime}</time><span>来源:${empty articleSource ? website.name : articleSource}</span></div>
 					<div class="edu-detail-content">${articleContent}</div>
-					<div class="edu-detail-actions"><a href="${navigation.url}">返回列表</a></div>
+					<c:if test="${navigation.wntcode ne 10060}"><div class="edu-detail-actions"><a href="${navigation.url}">返回列表</a></div></c:if>
 				</article>
 			</div>
 		</section>

+ 19 - 19
WebRoot/web/upload/ffkj-template/education-header.jsp

@@ -38,7 +38,12 @@
 		<c:forEach items="${navList}" var="item">
 			<c:if test="${item.name ne '首页' and item.name ne '首页子栏目'}">
 				<div class="edu-nav-item ${not empty item.children ? 'has-children' : ''}">
-					<a class="edu-nav-link ${item.navigationid eq navigation.navigationid or item.navigationid eq navigation.parentNid ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener" data-edu-subnav-toggle="${item.navigationid}">${item.name}</a>
+						<c:set var="educationNavHref" value="${item.href}"/>
+						<c:if test="${not empty item.children}"><c:set var="educationNavHref" value="${empty item.children[0].href ? item.href : item.children[0].href}"/></c:if>
+						<div class="edu-nav-row">
+							<a class="edu-nav-link ${item.navigationid eq navigation.navigationid or item.navigationid eq navigation.parentNid ? 'is-active' : ''}" href="${educationNavHref}" target="${item.target}" rel="noopener">${item.name}</a>
+							<c:if test="${not empty item.children}"><button class="edu-subnav-toggle" type="button" aria-label="展开${item.name}子栏目" aria-expanded="false" aria-controls="education-subnav-${item.navigationid}"></button></c:if>
+						</div>
 					<c:if test="${not empty item.children}">
 						<div class="edu-subnav" id="education-subnav-${item.navigationid}">
 							<c:forEach items="${item.children}" var="child"><a href="${child.href}" target="${child.target}" rel="noopener">${child.name}</a></c:forEach>
@@ -101,24 +106,19 @@
   }
   toggle.addEventListener('click', function () { setOpen(!nav.classList.contains('is-open')); });
   mask.addEventListener('click', function () { setOpen(false); });
-  Array.prototype.forEach.call(nav.querySelectorAll('.edu-nav-item.has-children > .edu-nav-link'), function (link) {
-    var submenu = link.parentNode.querySelector('.edu-subnav');
-    if (submenu) {
-      link.setAttribute('aria-controls', submenu.id);
-      link.setAttribute('aria-expanded', 'false');
-    }
-    link.addEventListener('click', function (event) {
-      if (window.innerWidth <= mobileBreakpoint) {
-        event.preventDefault();
-        var open = !link.parentNode.classList.contains('is-open');
-        Array.prototype.forEach.call(nav.querySelectorAll('.edu-nav-item.has-children.is-open'), function (item) {
-          item.classList.remove('is-open');
-          var itemLink = item.querySelector('.edu-nav-link');
-          if (itemLink) itemLink.setAttribute('aria-expanded', 'false');
-        });
-        link.parentNode.classList.toggle('is-open', open);
-        link.setAttribute('aria-expanded', open ? 'true' : 'false');
-      }
+  Array.prototype.forEach.call(nav.querySelectorAll('.edu-subnav-toggle'), function (button) {
+    button.addEventListener('click', function (event) {
+      event.preventDefault();
+      var item = button.closest('.edu-nav-item');
+      if (!item) return;
+      var open = !item.classList.contains('is-open');
+      Array.prototype.forEach.call(nav.querySelectorAll('.edu-nav-item.has-children.is-open'), function (otherItem) {
+        otherItem.classList.remove('is-open');
+        var otherButton = otherItem.querySelector('.edu-subnav-toggle');
+        if (otherButton) otherButton.setAttribute('aria-expanded', 'false');
+      });
+      item.classList.toggle('is-open', open);
+      button.setAttribute('aria-expanded', open ? 'true' : 'false');
     });
   });
   Array.prototype.forEach.call(nav.querySelectorAll('.edu-subnav a'), function (link) {

+ 1 - 1
WebRoot/web/upload/ffkj-template/education-index.jsp

@@ -30,7 +30,7 @@
 	<meta name="description" content="${website.seoDescription}">
 	<title>${empty website.seoTitle ? website.name : website.seoTitle}</title>
 	<link rel="icon" href="${empty website.seoIcon ? website.logo : website.seoIcon}?v=20261109-education-2">
-	<link rel="stylesheet" href="/main/ffkj-portal/education-college.css?v=20261123-home-cleanup-4">
+	<link rel="stylesheet" href="/main/ffkj-portal/education-college.css?v=20261127-navigation-r1">
 </head>
 <body class="education-page">
 	<%@ include file="education-header.jsp"%>

+ 6 - 13
WebRoot/web/upload/ffkj-template/education-list.jsp

@@ -3,10 +3,10 @@
 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
 <c:set var="educationDefaultImage" value="/main/ffkj-portal/assets/official/view-hero.jpg"/>
 <c:set var="educationPageImage" value="${empty navigation.backgroundImage ? educationDefaultImage : navigation.backgroundImage}"/>
-<c:set var="educationSidebarTitle" value="${empty parNavigation.name ? navigation.name : parNavigation.name}"/>
 <c:set var="educationListTitle" value="${empty educationContentNav.name ? navigation.name : educationContentNav.name}"/>
 <c:set var="educationListSubtitle" value="${empty educationContentNav.nameAssistant ? navigation.nameAssistant : educationContentNav.nameAssistant}"/>
 <c:set var="educationActiveSidebarNavId" value="${empty educationActiveSidebarNavId ? navigation.navigationid : educationActiveSidebarNavId}"/>
+<c:set var="educationEntryNavId" value="${empty educationEntryNavId ? navigation.navigationid : educationEntryNavId}"/>
 <!doctype html>
 <html lang="zh-CN">
 <head>
@@ -16,7 +16,7 @@
 	<meta name="keywords" content="${website.seoKeywords}">
 	<title>${navigation.name}_${empty website.seoTitle ? website.name : website.seoTitle}</title>
 	<link rel="icon" href="${empty website.seoIcon ? website.logo : website.seoIcon}?v=20261109-education-2">
-	<link rel="stylesheet" href="/main/ffkj-portal/education-college.css?v=20261116-zone-btn-white">
+	<link rel="stylesheet" href="/main/ffkj-portal/education-college.css?v=20261127-navigation-r1">
 </head>
 <body class="education-page">
 	<%@ include file="education-header.jsp"%>
@@ -31,16 +31,7 @@
 		<div class="edu-breadcrumb"><div class="edu-wrap"><a href="/">首页</a><c:forEach items="${crumbsNavList}" var="item"><span>/</span><a href="${item.url}">${item.name}</a></c:forEach></div></div>
 		<section class="edu-list-section">
 			<div class="edu-wrap edu-list-layout">
-				<aside class="edu-sidebar">
-					<div class="edu-sidebar-head"><small>COLUMN NAVIGATION</small><h2>${empty educationSidebarTitle ? '学院栏目' : educationSidebarTitle}</h2></div>
-					<nav class="edu-sidebar-nav" aria-label="${educationSidebarTitle}栏目导航">
-						<c:choose>
-							<c:when test="${not empty childrenNavList}"><c:forEach items="${childrenNavList}" var="item"><a class="${item.navigationid eq educationActiveSidebarNavId ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a></c:forEach></c:when>
-							<c:when test="${not empty brotherNavList}"><c:forEach items="${brotherNavList}" var="item"><a class="${item.navigationid eq educationActiveSidebarNavId ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a></c:forEach></c:when>
-							<c:otherwise><c:forEach items="${navList}" var="item"><c:if test="${item.name ne '首页' and item.name ne '首页子栏目'}"><a class="${item.navigationid eq educationActiveSidebarNavId ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a></c:if></c:forEach></c:otherwise>
-						</c:choose>
-					</nav>
-				</aside>
+					<%@ include file="education-sidebar.jsp"%>
 				<article class="edu-list-panel">
 					<c:choose>
 						<c:when test="${educationSinglePage}">
@@ -55,7 +46,9 @@
 								<c:otherwise>
 									<ul class="edu-article-list">
 										<c:forEach items="${articleList}" var="item">
-											<li><a class="edu-article-card" href="${item.url}" target="${item.target}" rel="noopener">
+												<c:set var="educationArticleHref" value="${item.url}"/>
+												<c:if test="${item.ajtcode eq 10000 and not empty educationEntryNavId}"><c:set var="educationArticleHref" value="${item.url}?entryNav=${educationEntryNavId}"/></c:if>
+												<li><a class="edu-article-card" href="${educationArticleHref}" target="${item.target}" rel="noopener">
 												<div class="edu-article-thumb"><img src="${empty item.thumbnail ? educationDefaultImage : item.thumbnail}" alt="${item.title}"></div>
 												<div class="edu-article-copy">
 													<h2>${item.title}</h2>

+ 6 - 5
WebRoot/web/upload/ffkj-template/education-search.jsp

@@ -11,15 +11,16 @@
 	<meta name="keywords" content="${website.seoKeywords}">
 	<title>站内搜索_${empty website.seoTitle ? website.name : website.seoTitle}</title>
 	<link rel="icon" href="${empty website.seoIcon ? website.logo : website.seoIcon}?v=20261109-education-2">
-	<link rel="stylesheet" href="/main/ffkj-portal/education-college.css?v=20261116-zone-btn-white">
+	<link rel="stylesheet" href="/main/ffkj-portal/education-college.css?v=20261127-navigation-r1">
 </head>
 <body class="education-page">
 	<%@ include file="education-header.jsp"%>
 	<main>
-		<section class="edu-page-hero"><div class="edu-wrap"><small>Search · 站内搜索</small><h1>搜索学院内容</h1><p>输入关键词,查找新闻、通知、专业建设与教学实践信息。</p></div></section>
+		<section class="edu-page-hero"><div class="edu-wrap"><small>Search · 站内搜索</small><h1>搜索学院内容</h1><p>搜索范围为教育学院本站及其下级网站已发布内容。</p></div></section>
 		<div class="edu-breadcrumb"><div class="edu-wrap"><a href="/">首页</a><span>/</span><span>站内搜索</span></div></div>
-		<section class="edu-search-section">
-			<div class="edu-wrap">
+			<section class="edu-search-section">
+				<div class="edu-wrap edu-list-layout">
+					<%@ include file="education-sidebar.jsp"%>
 				<div class="edu-search-panel">
 					<form class="edu-search-form" action="/search" method="get" role="search">
 						<label class="edu-sr-only" for="education-search-input">搜索关键词</label>
@@ -50,7 +51,7 @@
 							<c:choose><c:when test="${curPageNo < pageCount}"><a href="${searchPageUrl}&amp;page=${curPageNo + 1}">下一页</a></c:when><c:otherwise><span class="is-disabled">下一页</span></c:otherwise></c:choose>
 						</nav>
 					</c:if>
-				</div>
+					</div>
 			</div>
 		</section>
 	</main>

+ 15 - 0
WebRoot/web/upload/ffkj-template/education-sidebar.jsp

@@ -0,0 +1,15 @@
+<%@ page pageEncoding="UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
+<c:set var="educationSidebarTitle" value="${empty parNavigation.name ? (empty navigation.name ? '学院栏目' : navigation.name) : parNavigation.name}"/>
+<c:if test="${parNavigation.idcard eq 'FFKJ_EDU_HOME_GROUP' or parNavigation.idcard eq 'FFKJ_DEPT_HOME_GROUP' or educationSidebarTitle eq '首页子栏目'}"><c:set var="educationSidebarTitle" value="首页"/></c:if>
+<c:set var="educationActiveSidebarNavId" value="${empty educationActiveSidebarNavId ? navigation.navigationid : educationActiveSidebarNavId}"/>
+<aside class="edu-sidebar">
+	<div class="edu-sidebar-head"><small>COLUMN NAVIGATION</small><h2>${educationSidebarTitle}</h2></div>
+	<nav class="edu-sidebar-nav" aria-label="${educationSidebarTitle}栏目导航">
+		<c:choose>
+			<c:when test="${not empty childrenNavList}"><c:forEach items="${childrenNavList}" var="item"><a class="${item.navigationid eq educationActiveSidebarNavId ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a></c:forEach></c:when>
+			<c:when test="${not empty brotherNavList}"><c:forEach items="${brotherNavList}" var="item"><a class="${item.navigationid eq educationActiveSidebarNavId ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a></c:forEach></c:when>
+			<c:otherwise><c:forEach items="${navList}" var="item"><c:if test="${item.name ne '首页' and item.name ne '首页子栏目'}"><a class="${item.navigationid eq educationActiveSidebarNavId ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a></c:if></c:forEach></c:otherwise>
+		</c:choose>
+	</nav>
+</aside>

+ 13 - 0
local-run/migrations/hxcs-mig-next/2026-11-27-003-restore-education-sports-branch.sql

@@ -0,0 +1,13 @@
+-- 教育学院栏目结构收口:恢复“体育部党支部”。
+-- 仅恢复栏目启用状态;栏目下 3 篇模板种子文章保持停用,不重新上线。
+CREATE TABLE IF NOT EXISTS sp_gzhx_apps_mig_next.hotfix_20261127_education_sports_branch AS
+SELECT navigationid, dcode, websiteid, wtid, parent_nid, name, idcard, url
+FROM sp_gzhx_apps_mig_next.website_navigation
+WHERE idcard = 'FFKJ_EDU_PARTY_SPORTS_BRANCH'
+  AND (websiteid = 10081 OR wtid = 70);
+
+UPDATE sp_gzhx_apps_mig_next.website_navigation
+SET dcode = 61
+WHERE idcard = 'FFKJ_EDU_PARTY_SPORTS_BRANCH'
+  AND (websiteid = 10081 OR wtid = 70)
+  AND dcode IN (61, 71);

+ 2 - 1
src/space/apps/moudules/website/template/common/WebsiteArticleManager.java

@@ -66,7 +66,8 @@ public class WebsiteArticleManager {
 	 */
 	public static ArticleListView getArticleSearchListView(GeneralDBAccess gdba, Website website, String keyword,
 			PageBean pb) throws Exception {
-		List<Map<String, Object>> articleList = WebsiteTemplateArticleUtil.getArticleList(gdba, website, keyword, pb);
+		List<Map<String, Object>> articleList = WebsiteTemplateArticleUtil.getArticleListByWebsiteTree(gdba, website,
+				keyword, pb);
 		ArticleListView alv = new ArticleListView(pb, articleList);
 		return alv;
 	}

+ 70 - 0
src/space/apps/moudules/website/template/ffkjeducation1/WebSiteArticleService.java

@@ -1,11 +1,13 @@
 package space.apps.moudules.website.template.ffkjeducation1;
 
+import apps.pojo.Article;
 import apps.pojo.Website;
 import apps.pojo.WebsiteNavigation;
 import java.util.Collections;
 import java.util.List;
 import java.util.Map;
 import space.apps.moudules.website.template.common.WebsiteArticleManager;
+import space.apps.moudules.website.template.common.WebsiteCommonService;
 import space.apps.moudules.website.template.common.WebsiteNavManager;
 import space.apps.moudules.website.template.common.bean.ArticleListView;
 import space.apps.moudules.website.template.common.bean.NavigationMiniView;
@@ -13,6 +15,7 @@ import space.apps.moudules.website.template.util.WebsiteTemplateArticleUtil;
 import space.core.common.utils.StringUtil;
 import space.core.db.bean.base.PageBean;
 import space.core.db.jdbc.GeneralDBAccess;
+import space.core.db.jdbc.SqlCommandImpl;
 
 /**
  * 教育学院网站模板服务。
@@ -34,6 +37,7 @@ public class WebSiteArticleService extends space.apps.moudules.website.template.
 	@Override
 	public String details() throws Exception {
 		String forward = super.details();
+		applyEntryNavigationContext();
 		loadCommonData();
 		return forward;
 	}
@@ -98,6 +102,7 @@ public class WebSiteArticleService extends space.apps.moudules.website.template.
 		}
 		setRequestAttribute("educationContentNav", firstChild);
 		setRequestAttribute("educationActiveSidebarNavId", firstChild.get("navigationid"));
+		setRequestAttribute("educationEntryNavId", firstChild.get("navigationid"));
 
 		if (Long.valueOf(10060L).equals(childNav.getWntcode())) {
 			Map<String, Object> articleMap = findSinglePageArticle(gdba, website, childNav);
@@ -160,6 +165,71 @@ public class WebSiteArticleService extends space.apps.moudules.website.template.
 		return WebsiteArticleManager.getFristArticleByWn(gdba, website, navigation);
 	}
 
+	/**
+	 * 抄送文章可能从不同栏目进入。仅当入口栏目属于本站且确实承载该文章时,才采用入口栏目上下文。
+	 */
+	private void applyEntryNavigationContext() throws Exception {
+		String entryNavValue = getRequest().getParameter("entryNav");
+		if (StringUtil.isNull(entryNavValue)) {
+			return;
+		}
+
+		Long entryNavId;
+		try {
+			entryNavId = Long.valueOf(entryNavValue.trim());
+		} catch (NumberFormatException e) {
+			return;
+		}
+
+		GeneralDBAccess gdba = getGdbaInstance();
+		Website website = getWebsite();
+		WebsiteNavigation entryNav = WebsiteNavManager.getNavigationByID(gdba, website, entryNavId);
+		Article article = WebsiteArticleManager.getArticleByRequest(gdba, website, getRequest());
+		if (entryNav == null || entryNav.getNavigationid() == null || article == null
+				|| !website.getWebsiteid().equals(entryNav.getWebsiteid())
+				|| !navigationCarriesArticle(gdba, article.getArticleid(), entryNavId)) {
+			return;
+		}
+
+		getRequest().removeAttribute("parNavigation");
+		getRequest().removeAttribute("brotherNavList");
+		getRequest().removeAttribute("childrenNavList");
+		setRequestAttribute("navigation", entryNav);
+		setRequestAttribute("educationActiveSidebarNavId", entryNavId);
+
+		List<WebsiteNavigation> crumbs = WebsiteNavManager.getNavParentList(gdba, website, entryNavId);
+		setRequestAttribute("crumbsNavList", crumbs);
+		setRequestAttribute("crumbsNavListSize", crumbs == null ? 0 : crumbs.size() - 1);
+		WebsiteCommonService.selectFfkjHeadNavigation(gdba, website, getRequest());
+
+		if (entryNav.getParentNid() != null) {
+			setRequestAttribute("parNavigation",
+					WebsiteNavManager.getNavigationByID(gdba, website, entryNav.getParentNid()));
+			setRequestAttribute("brotherNavList",
+					WebsiteNavManager.getChildrenNavigation(gdba, website, entryNav.getParentNid()));
+		} else {
+			List<Map<String, Object>> children = WebsiteNavManager.getChildrenNavigation(gdba, website, entryNavId);
+			if (children != null && !children.isEmpty()) {
+				setRequestAttribute("childrenNavList", children);
+			}
+		}
+	}
+
+	private boolean navigationCarriesArticle(GeneralDBAccess gdba, Long articleId, Long navigationId)
+			throws Exception {
+		if (articleId == null || navigationId == null) {
+			return false;
+		}
+		String sql = "SELECT 1 AS matched FROM article a "
+				+ "WHERE a.articleid = :articleid AND (a.navigationid = :navigationid1 "
+				+ "OR EXISTS (SELECT 1 FROM article_copy ac WHERE ac.articleid = a.articleid "
+				+ "AND ac.navigationid = :navigationid2 AND ac.dcode = 61)) LIMIT 1";
+		SqlCommandImpl sqlCmd = new SqlCommandImpl(sql);
+		sqlCmd.setString("articleid", articleId).setString("navigationid1", navigationId)
+				.setString("navigationid2", navigationId);
+		return gdba.selectAsMap(sqlCmd) != null;
+	}
+
 	private boolean isInitialArticle(Map<String, Object> article) {
 		Object source = article.get("source");
 		return source != null && "教育学院模板初始内容".equals(source.toString().trim());

+ 74 - 0
src/space/apps/moudules/website/template/util/WebsiteTemplateArticleUtil.java

@@ -2,11 +2,14 @@ package space.apps.moudules.website.template.util;
 
 import java.sql.Timestamp;
 import java.text.SimpleDateFormat;
+import java.util.ArrayList;
 import java.util.Date;
 import java.util.Iterator;
+import java.util.LinkedHashSet;
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
+import java.util.Set;
 import java.util.regex.Pattern;
 
 import javax.servlet.http.HttpServletRequest;
@@ -255,6 +258,77 @@ public class WebsiteTemplateArticleUtil {
 		return articleList;
 	}
 
+	/**
+	 * 查询当前网站及其全部下级网站的文章。用于“站内搜索”,不扩展到父站或兄弟站。
+	 */
+	public static List<Map<String, Object>> getArticleListByWebsiteTree(GeneralDBAccess gdba, Website website,
+			String keyword, PageBean pb) throws Exception {
+		List<Long> websiteIds = getWebsiteTreeIds(gdba, website);
+		StringBuilder websiteIdSql = new StringBuilder();
+		for (int index = 0; index < websiteIds.size(); index++) {
+			if (index > 0) {
+				websiteIdSql.append(',');
+			}
+			websiteIdSql.append(websiteIds.get(index));
+		}
+
+		String sql = "SELECT a.*, w.protocol, w.port, w.domains, w.name website_name, wn.name navigation_name "
+				+ "FROM article a "
+				+ "LEFT JOIN website w ON a.websiteid = w.websiteid "
+				+ "LEFT JOIN website_navigation wn ON a.navigationid = wn.navigationid "
+				+ "WHERE w.dcode = 61 AND wn.dcode = 61 AND w.websiteid IN (" + websiteIdSql + ") AND "
+				+ getPublishedOrChangingArticleSql("a") + " "
+				+ "AND (wn.idcard IS NULL OR ("
+				+ "UPPER(wn.idcard) NOT LIKE '%TOP_LINK%' "
+				+ "AND UPPER(wn.idcard) NOT LIKE '%FOOTER_LINK%' "
+				+ "AND UPPER(wn.idcard) NOT LIKE '%FOOTER_INFO%' "
+				+ "AND UPPER(wn.idcard) NOT LIKE '%SCHOOL_HOME%')) "
+				+ "AND (a.title LIKE :keyword1 OR a.`desc` LIKE :keyword2) "
+				+ "ORDER BY " + SortOrderUtil.articleSort("a");
+
+		SqlCommandImpl sqlCmd = new SqlCommandImpl(sql);
+		sqlCmd.setString("keyword1", "%" + keyword + "%")
+				.setString("keyword2", "%" + keyword + "%");
+		List<Map<String, Object>> articleList = gdba.selectAsMapList(sqlCmd, pb);
+
+		restoreChangingArticleListPublishedVersion(gdba, articleList);
+		transformArticleURL(articleList);
+
+		return articleList;
+	}
+
+	private static List<Long> getWebsiteTreeIds(GeneralDBAccess gdba, Website website) throws Exception {
+		Set<Long> websiteIds = new LinkedHashSet<Long>();
+		websiteIds.add(website.getWebsiteid());
+
+		String sql = "SELECT websiteid, parent_wid FROM website WHERE dcode = 61";
+		List<Map<String, Object>> websiteList = gdba.selectAsMapList(new SqlCommandImpl(sql));
+		boolean changed = true;
+		while (changed) {
+			changed = false;
+			for (Map<String, Object> item : websiteList) {
+				Long parentWebsiteId = toLong(item.get("parent_wid"));
+				Long websiteId = toLong(item.get("websiteid"));
+				if (websiteId != null && parentWebsiteId != null && websiteIds.contains(parentWebsiteId)
+						&& websiteIds.add(websiteId)) {
+					changed = true;
+				}
+			}
+		}
+		return new ArrayList<Long>(websiteIds);
+	}
+
+	private static Long toLong(Object value) {
+		if (value == null) {
+			return null;
+		}
+		try {
+			return Long.valueOf(value.toString());
+		} catch (NumberFormatException e) {
+			return null;
+		}
+	}
+
 	public static List<Map<String, Object>> getArticleList(GeneralDBAccess gdba, Website website, String keyword,
 			PageBean pb) throws Exception {