Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/tamu-sprint10-17' into tamu-spri…
Browse files Browse the repository at this point in the history
…nt10-3-merger
  • Loading branch information
kaladay committed Apr 6, 2020
2 parents 7714503 + 97b3502 commit 0c10ffb
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public class Document extends Common {
@PropertySource(template = "document/iclCode", predicate = "http://vivoweb.org/ontology/core#iclCode")
private String iclCode;

@Indexed(type = "whole_string")
@Indexed(type = "sorting_string")
@PropertySource(template = "document/numberOfPages", predicate = "http://purl.org/ontology/bibo/numPages")
private String numberOfPages;

Expand All @@ -350,7 +350,7 @@ public class Document extends Common {
@PropertySource(template = "document/issue", predicate = "http://purl.org/ontology/bibo/issue")
private String issue;

@Indexed(type = "whole_string")
@Indexed(type = "sorting_string")
@PropertySource(template = "document/placeOfPublication", predicate = "http://vivoweb.org/ontology/core#placeOfPublication")
private String placeOfPublication;

Expand Down Expand Up @@ -431,6 +431,14 @@ public class Document extends Common {
@PropertySource(template = "document/receipt", predicate = "http://www.w3.org/2000/01/rdf-schema#label")
private List<String> receipts;

@Indexed(type = "sorting_string", copyTo = "_text_")
@PropertySource(template = "document/altmetricScore", predicate = "http://vivo.library.tamu.edu/ontology/TAMU#AltmetricScore")
private String altmetricScore;

@Indexed(type = "sorting_string", copyTo = "_text_")
@PropertySource(template = "document/citationCount", predicate = "http://vivo.library.tamu.edu/ontology/TAMU#CitationCount")
private String citationCount;

@Indexed(type = "whole_strings")
@PropertySource(template = "document/tag", predicate = "http://purl.obolibrary.org/obo/ARG_0000015")
private List<String> tags;
Expand Down Expand Up @@ -1183,6 +1191,22 @@ public void setReceipts(List<String> receipts) {
this.receipts = receipts;
}

public String getAltmetricScore() {
return altmetricScore;
}

public void setAltmetricScore(String altmetricScore) {
this.altmetricScore = altmetricScore;
}

public String getCitationCount() {
return citationCount;
}

public void setCitationCount(String citationCount) {
this.citationCount = citationCount;
}

public List<String> getTags() {
return tags;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ public class Document extends AbstractNestedDocument {

private String isTemplate;

private String altmetricScore;

private String citationCount;

private List<String> type;

private String image;
Expand Down Expand Up @@ -741,6 +745,22 @@ public void setIsTemplate(String isTemplate) {
this.isTemplate = isTemplate;
}

public String getAltmetricScore() {
return altmetricScore;
}

public void setAltmetricScore(String altmetricScore) {
this.altmetricScore = altmetricScore;
}

public String getCitationCount() {
return citationCount;
}

public void setCitationCount(String citationCount) {
this.citationCount = citationCount;
}

public List<String> getType() {
return type;
}
Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/defaults/displayViews.yml
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,12 @@
- name: keywords
template: "defaults/displayViews/documents/overview/keywords.html"
field: keywords
- name: altmetric score
template: "defaults/displayViews/documents/overview/altmetricScore.html"
field: altmetricScore
- name: citation count
template: "defaults/displayViews/documents/overview/citationCount.html"
field: citationCount
- name: Identity
sections:
- name: EAN International-Uniform Code Council (EAN-UCC) 13
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>{{{altmetricScore}}}</p>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>{{{citationCount}}}</p>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
PREFIX tamu: <http://vivo.library.tamu.edu/ontology/TAMU#>

CONSTRUCT {
<{{uri}}> tamu:AltmetricScore ?altmetricScore .
} WHERE {
<{{uri}}> tamu:AltmetricScore ?altmetricScore .
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
PREFIX tamu: <http://vivo.library.tamu.edu/ontology/TAMU#>

CONSTRUCT {
<{{uri}}> tamu:CitationCount ?citationCount .
} WHERE {
<{{uri}}> tamu:CitationCount ?citationCount .
}

0 comments on commit 0c10ffb

Please sign in to comment.