Last modified by Super Admin on 2026/04/05 18:59

From version Icon 23.1 Icon
edited by Super Admin
on 2026/03/09 11:59
Change comment: There is no comment for this version
To version Icon 26.1 Icon
edited by Super Admin
on 2026/03/09 12:38
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Content
... ... @@ -3,8 +3,7 @@
3 3  ## このテンプレートは学校ページの表示と入力フォームを制御します。
4 4  
5 5  ## メンテナンスバナー
6 -{{include reference="SeitokaiCode.MaintenanceBannerInclude" /}}
7 -
6 +{{include reference="SeitokaiCode.MaintenanceBannerInclude" /}}{{html clean="false"}}
8 8  ## --- 学校基本情報フィールド ---
9 9  #set($schoolCode = $doc.getValue('schoolCode'))
10 10  #set($schoolName = $doc.getValue('schoolName'))
... ... @@ -174,7 +174,8 @@
174 174   #set($authorEnrollmentYear = $!lastAuthorDoc.getValue('enrollmentYear'))
175 175   #set($authorDisplayName = $!lastAuthorDoc.getValue('displayName'))
176 176   #if(!$authorDisplayName || $authorDisplayName == '')
177 - #set($authorDisplayName = $xwiki.getUserName($doc.author))
176 + ## false引数でプレーンテキスト(HTMLリンクなし)を取得
177 + #set($authorDisplayName = $xwiki.getUserName($doc.author, false))
178 178   #end
179 179   ## --- 学年の動的計算(学校種別対応) ---
180 180   ## 日本の学校年度: 4月始まり。currentSchoolYear = (月>=4) ? 今年 : 去年
... ... @@ -213,7 +213,6 @@
213 213  #end
214 214  
215 215  ## --- 信頼性バッジ + ユーザー情報 ---
216 -{{html clean="false"}}
217 217  <div class="seitokai-badge-container">
218 218   ## 承認バッジ
219 219   #if($authorAccountType == 'admin')
... ... @@ -251,10 +251,7 @@
251 251   #end
252 252   <span class="badge-info">最終編集: $!escapetool.xml($authorDisplayName) ($xwiki.formatDate($doc.date, "yyyy/MM/dd"))</span>
253 253  </div>
254 -{{/html}}
255 255  
256 -{{html clean="false"}}
257 -
258 258  ## --- ① 学校基本情報 + 連絡先(左右グリッド・折りたたみ対応) ---
259 259  <div class="school-info-grid">
260 260   <div class="school-info-card mobile-collapse" id="card-basic-info">
... ... @@ -267,7 +267,7 @@
267 267   <tr><th>共学・別学</th><td>$!escapetool.xml($!coeducation)</td></tr>
268 268   <tr><th>設置者</th><td>$!escapetool.xml($!establishment)</td></tr>
269 269   <tr><th>学校種</th><td>$!escapetool.xml($!schoolLevel)</td></tr>
270 - <tr><th>課程</th><td>$!escapetool.xml($!schoolSystem)</td></tr>
266 + <tr><th>課程</th><td>#if($schoolSystem && $schoolSystem != '' && $schoolSystem != '[]')$!escapetool.xml($!schoolSystem)#end</td></tr>
271 271   <tr><th>公式サイト</th><td>#if($website && $website != '')<a href="$!escapetool.xml($website)" target="_blank" rel="noopener">$!escapetool.xml($website)</a>#else<span class="text-placeholder">未登録</span>#end</td></tr>
272 272   </table>
273 273   #set($infoEditDate = $!doc.getValue('lastInfoEditedDate'))