Changeset 6307


Ignore:
Timestamp:
06/17/15 15:36:53 (9 years ago)
Author:
Twan Goosen
Message:

Little bit of styling for hierarchy view and 'unnamed' record also for parent and children
Refs #382

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

Legend:

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

    r6303 r6307  
    2525        <wicket:panel>
    2626            <h2>Hierarchy (test)</h2>
    27             <ul class="recordtree">
     27            <ul id="recordtree">
    2828                <li>
    2929                    <div wicket:id="parent">
     
    3232                    </div>
    3333                    <ul>
    34                         <li><span wicket:id="this">this item</span></li>
     34                        <li id="thisrecord"><span wicket:id="this">this item</span></li>
    3535                        <ul>
    3636                            <li wicket:id="child"><a wicket:id="link"><span wicket:id="name"></span></a></li>
  • vlo/trunk/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/panels/record/HierarchyPanel.java

    r6304 r6307  
    7373
    7474        };
    75         parentLink.add(new Label("name", new SolrFieldStringModel(parentModel, FacetConstants.FIELD_NAME)));
     75        parentLink.add(new SolrFieldLabel("name", parentModel, FacetConstants.FIELD_NAME, new StringResourceModel("recordpage.unnamedrecord", this, null)));
    7676
    7777        final WebMarkupContainer noParentLabel = new WebMarkupContainer("noparent") {
     
    106106                    }
    107107                };
    108                 childLink.add(new Label("name", new SolrFieldStringModel(childModel, FacetConstants.FIELD_NAME)));
     108                childLink.add(new SolrFieldLabel("name", childModel, FacetConstants.FIELD_NAME, new StringResourceModel("recordpage.unnamedrecord", this, null)));
     109
    109110                item.add(childLink);
    110111            }
  • vlo/trunk/vlo-web-app/src/main/less/eu/clarin/cmdi/vlo/wicket/pages/inc/vlo-record.less

    r5148 r6307  
    280280    padding: 1em;
    281281}
     282
     283#recordtree #thisrecord {
     284    list-style-type: circle;
     285    font-weight: bold;
     286}
Note: See TracChangeset for help on using the changeset viewer.