<%-- $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.LoginFormBean" %> <%@ 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")); System.out.println("entityBasic rendering "+entity.getURI()); } 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); } if (VitroRequestPrep.isSelfEditing(request) || LoginFormBean.loggedIn(request, LoginFormBean.NON_EDITOR) /* minimum level*/) { request.setAttribute("showSelfEdits",Boolean.TRUE); }%> <% //here we build up the url for the larger image. String imageUrl = null; if (entity.getImageFile() != null && entity.getImageFile().indexOf("http:")==0) { imageUrl = entity.getImageFile(); } else { imageUrl = response.encodeURL( "/images/" + entity.getImageFile() ); } //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. Wrap in the div only if editing. If not editing, displays inline next to label. --%>

moniker

${entity.moniker} ${editLinks}
<%-- end dprop-vitro-moniker --%>
<%-- Links --%> <%-- Thumbnail (with citation) --%>

image

<%-- Citation --%>
<%-- Blurb --%>

blurb

${editLinksForNewBlurb}
${entity.blurb}
${editLinksForExistingBlurb}
<%-- Description --%>

description

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

Keywords: ${entity.keywordString}

${requestScope.servletButtons}