<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> <%@ page import="edu.cornell.mannlib.vitro.webapp.beans.Individual" %> <%@ page import="edu.cornell.mannlib.vitro.webapp.beans.VClass" %> <%@ page import="edu.cornell.mannlib.vitro.webapp.edit.n3editing.EditConfiguration" %> <%@ page import="edu.cornell.mannlib.vitro.webapp.edit.n3editing.EditSubmission" %> <%@ page import="edu.cornell.mannlib.vedit.beans.LoginStatusBean" %> <%@ page import="edu.cornell.mannlib.vitro.webapp.controller.VitroRequest"%> <%@ page import="edu.cornell.mannlib.vitro.webapp.filters.VitroRequestPrep" %> <%@ page import="edu.cornell.mannlib.vitro.webapp.dao.VitroVocabulary" %> <%@ page import="edu.cornell.mannlib.vitro.webapp.beans.Link" %> <%@ page import="org.apache.commons.logging.Log" %> <%@ page import="org.apache.commons.logging.LogFactory" %> <%@ page import="java.util.List" %> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> <%@ taglib uri="http://vitro.mannlib.cornell.edu/vitro/tags/StringProcessorTag" prefix="p" %> <%@ taglib uri="http://vitro.mannlib.cornell.edu/vitro/tags/PropertyEditLink" prefix="edLnk" %> <%@ page errorPage="/error.jsp"%> <%! public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.templates.entity.entityBasic.jsp"); %> <% log.debug("Starting entityBasic.jsp"); Individual entity = (Individual)request.getAttribute("entity"); %> <% try { VitroRequest vreq = new VitroRequest(request); entity = vreq.getWebappDaoFactory().getIndividualDao().getIndividualByURI((String)request.getAttribute("myEntityURI")); } catch (Exception e) { e.printStackTrace(); } %> <% if (entity == null){ String e="entityBasic.jsp expects that request attribute 'entity' be set to the Entity object to display."; throw new JspException(e); } boolean showSelfEdits = VitroRequestPrep.isSelfEditing(request); boolean showCuratorEdits = LoginStatusBean.getBean(request).isLoggedInAtLeast(LoginStatusBean.CURATOR); if (showSelfEdits || showCuratorEdits) { request.setAttribute("showEdits",Boolean.TRUE); } %> <% //anytime we are at an entity page we shouldn't have an editing config or submission session.removeAttribute("editjson"); EditConfiguration.clearAllConfigsInSession(session); EditSubmission.clearAllEditSubmissionsInSession(session); %> <%/* just moving this into page scope for easy use */ %>

${relatingPredicate.domainPublic} for ${relatedSubject.name}

← return to ${relatedSubject.name}

<%-- Label --%>

${entity.name}

${editLinks}
<%-- Moniker--%>
${entity.moniker}
<%-- Thumbnail --%>

image

${imageLinks}
${imageLinks}
<%-- hasImage --%>
${imageLinks}
<%-- Links --%> <%-- Description --%> <%--

description

${editLinksForNewDesc}
${entity.description}
${editLinksForExistingDesc}
--%> <%-- Ontology properties --%> <%-- unless a value is provided, properties not assigned to a group will not have a tab or appear on the page --%> <%-- Blurb --%>
${entity.blurb}
<%-- Citation, if no thumbnail --%> <%-- Keywords --%>

Keywords: ${entity.keywordString}

${requestScope.servletButtons}