• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

knowledgepixels / nanodash / 27135893631

08 Jun 2026 11:55AM UTC coverage: 20.69% (-0.2%) from 20.924%
27135893631

Pull #479

github

web-flow
Merge a9802147d into 77e002f9b
Pull Request #479: About pages for spaces, maintained resources, and users (#478)

1052 of 6425 branches covered (16.37%)

Branch coverage included in aggregate %.

2642 of 11429 relevant lines covered (23.12%)

3.31 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
src/main/java/com/knowledgepixels/nanodash/page/ReferencesPage.java
1
package com.knowledgepixels.nanodash.page;
2

3
import com.knowledgepixels.nanodash.Utils;
4
import com.knowledgepixels.nanodash.View;
5
import com.knowledgepixels.nanodash.ViewDisplay;
6
import com.knowledgepixels.nanodash.component.ExternalLinkWithActionsPanel;
7
import com.knowledgepixels.nanodash.component.QueryResultTableBuilder;
8
import com.knowledgepixels.nanodash.component.TitleBar;
9
import org.apache.wicket.markup.html.basic.Label;
10
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
11
import org.apache.wicket.model.Model;
12
import org.apache.wicket.request.mapper.parameter.PageParameters;
13
import org.nanopub.extra.services.QueryRef;
14

15
public class ReferencesPage extends NanodashPage {
16

17
    public static final String MOUNT_PATH = "/references";
18

19
    /**
20
     * The view used to render references to a given URI. Shared with the About pages.
21
     */
22
    public static final String REFERENCES_VIEW = "https://w3id.org/np/RAZ0EGsBlca8unLqQzGl5kVapGgllKvDbGFlTA_FFD7oM/references-view";
23

24
    @Override
25
    public String getMountPath() {
26
        return MOUNT_PATH;
×
27
    }
28

29
    public ReferencesPage(final PageParameters parameters) {
30
        super(parameters);
×
31

32
        add(new TitleBar("titlebar", this, null));
×
33

34
        String ref = parameters.get("id").toString();
×
35
        ref = ref.replaceFirst(";jsessionid.*$", "");
×
36

37
        String shortName;
38
        if (parameters.get("label").isEmpty()) {
×
39
            shortName = Utils.getShortNameFromURI(ref);
×
40
        } else {
41
            shortName = parameters.get("label").toString();
×
42
        }
43

44
        add(new Label("pagetitle", shortName + " (references) | nanodash"));
×
45
        add(new Label("termname", shortName));
×
46
        add(new ExternalLinkWithActionsPanel("urilink", Model.of(ref)));
×
47
        add(new BookmarkablePageLink<Void>("back-link", ExplorePage.class, new PageParameters().set("id", ref)));
×
48

49
        View view = View.get(REFERENCES_VIEW);
×
50
        QueryRef queryRef = new QueryRef(view.getQuery().getQueryId(), "ref", ref);
×
51
        add(QueryResultTableBuilder.create("reftable", queryRef, new ViewDisplay(view)).build());
×
52
    }
×
53

54
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc