Changeset 4907


Ignore:
Timestamp:
04/07/14 14:25:36 (11 years ago)
Author:
Twan Goosen
Message:

Set resource type as 'title' of resource info popup

Location:
vlo/branches/vlo-3.0/vlo-web-app/src/main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/panels/record/ResourceLinkDetailsPanel.html

    r4904 r4907  
    2424    <body>
    2525        <wicket:panel>
     26            <span class="recordresourcedetailstitle" wicket:id="resourceType">Text file</span>
    2627            <span class="recordresourcedetailsitem">File name: <span wicket:id="fileName">Bachelorscriptie+Rene+Witteveen+3375005.docx</span></span>
    27             <span class="recordresourcedetailsitem">File type: <span wicket:id="resourceType">text file</span></span>
    2828            <span class="recordresourcedetailsitem">Mime type: <span wicket:id="mimeType">application/msword</span></span>
    2929            <span class="recordresourcedetailsitem">Location: <span wicket:id="href">location</span></span>
  • vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/panels/record/ResourceLinkDetailsPanel.java

    r4904 r4907  
    2222import org.apache.wicket.model.CompoundPropertyModel;
    2323import org.apache.wicket.model.IModel;
     24import org.apache.wicket.model.StringResourceModel;
    2425
    2526/**
     
    3435        super(id, model);
    3536        setDefaultModel(new CompoundPropertyModel<ResourceInfo>(model));
    36 
     37        // get the friendly name of the resource type dynamically from the resource bundle
     38        add(new Label("resourceType", new StringResourceModel("resourcetype.${resourceType}.singular", model, model.getObject().getResourceType())));
    3739        add(new Label("fileName"));
    3840        add(new Label("mimeType"));
    39         add(new Label("resourceType"));
    4041        add(new Label("href"));
    4142    }
  • vlo/branches/vlo-3.0/vlo-web-app/src/main/webapp/style/vlo-record.css

    r4904 r4907  
    213213    padding: 2px;
    214214    background: #fff;
     215    opacity: .98;
    215216    text-align: left;
     217}
     218
     219span.recordresourcedetailstitle {
     220    display: block;
     221    font-weight: bold;
     222    text-decoration: underline;
     223    text-transform: capitalize;
    216224}
    217225
Note: See TracChangeset for help on using the changeset viewer.