school-schema-jsonld-include.jsp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3. <c:if test="${website.name eq '广州华夏职业学院'}">
  4. <c:set var="schemaOrigin" value="${pageContext.request.scheme}://${pageContext.request.serverName}"/>
  5. <c:if test="${(pageContext.request.scheme eq 'http' and pageContext.request.serverPort ne 80) or (pageContext.request.scheme eq 'https' and pageContext.request.serverPort ne 443)}">
  6. <c:set var="schemaOrigin" value="${schemaOrigin}:${pageContext.request.serverPort}"/>
  7. </c:if>
  8. <script type="application/ld+json">
  9. {
  10. "@context": "https://schema.org",
  11. "@type": "CollegeOrUniversity",
  12. "name": "广州华夏职业学院",
  13. "alternateName": "华夏职院",
  14. "identifier": "14268",
  15. "url": "https://www.gzhxtc.edu.cn",
  16. "logo": "${schemaOrigin}${assetBase}/official/logo-color.png",
  17. "foundingDate": "2009-03",
  18. "address": {
  19. "@type": "PostalAddress",
  20. "streetAddress": "城鳌大道东 772 号",
  21. "addressLocality": "广州市从化区",
  22. "addressRegion": "广东省",
  23. "addressCountry": "CN"
  24. },
  25. "contactPoint": {
  26. "@type": "ContactPoint",
  27. "telephone": "+86-20-87865222",
  28. "contactType": "招生办",
  29. "availableLanguage": ["Chinese"]
  30. },
  31. "sameAs": [
  32. "https://www.gzhxtc.edu.cn",
  33. "https://zsw.gzhxtc.edu.cn"
  34. ],
  35. "numberOfStudents": 21000
  36. }
  37. </script>
  38. </c:if>