Some reorganization of templates. Restored entitylist as destination of links on index page, since new individuallist controller/templates not finished yet.
This commit is contained in:
parent
8b0665a0d7
commit
b7d2027da4
20 changed files with 37 additions and 21 deletions
|
@ -57,6 +57,14 @@ import edu.cornell.mannlib.vitro.webapp.web.jsptags.StringProcessorTag;
|
|||
* @author bdc34
|
||||
*
|
||||
*/
|
||||
|
||||
/* IMPLEMENTATION NOTES
|
||||
|
||||
- See NIHVIVO-512:
|
||||
build up the list of actually rendered items first. Only then, if there are any, add the label on top.
|
||||
|
||||
*/
|
||||
|
||||
public class IndividualController extends FreeMarkerHttpServlet {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -11,7 +11,7 @@ public class Routes {
|
|||
public static final String BROWSE = "/browse";
|
||||
public static final String CONTACT = "/contact";
|
||||
public static final String INDIVIDUAL = "/individual";
|
||||
public static final String INDIVIDUAL_LIST = "/individuallist";
|
||||
public static final String INDIVIDUAL_LIST = "/entitylist"; //"/individuallist";
|
||||
public static final String SEARCH = "/search";
|
||||
public static final String TERMS_OF_USE = "/termsOfUse";
|
||||
|
||||
|
|
|
@ -36,17 +36,18 @@ public class IndividualView extends ViewObject {
|
|||
return individual.getURI();
|
||||
}
|
||||
|
||||
// Or maybe getProfileUrl - there might be other kinds of urls
|
||||
// e.g., getEditUrl, getDeleteUrl - these would return the computations of PropertyEditLinks
|
||||
// Return link to individual's profile page.
|
||||
// There may be other urls associated with the individual. E.g., we might need
|
||||
// getEditUrl(), getDeleteUrl() to return the links computed by PropertyEditLinks.
|
||||
// RY **** Need to account for everything in URLRewritingHttpServlet
|
||||
public String getProfileUrl() {
|
||||
return getUrl("/individual/" + individual.getLocalName());
|
||||
}
|
||||
|
||||
public String getRenderer() {
|
||||
public String getShortView() {
|
||||
// TODO
|
||||
// iterate through class hierarchy looking for a custom renderer. If none, use
|
||||
// default individual renderer. template will just do an include on individual.renderer
|
||||
// iterate through class hierarchy looking for a custom short view. If none, use
|
||||
// default individual short view. template will just do an include on individual.shortView
|
||||
// Use individual.getVClasses() - this is the class hierarchy
|
||||
// Question: what order are they returned in ? If from specific to general, break out of the iteration as soon as we find one.
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue