Skip to content

Commit

Permalink
Merge pull request #471 from TAMULib/sprint10-staging
Browse files Browse the repository at this point in the history
Sprint 10
  • Loading branch information
wwtamu authored Feb 19, 2025
2 parents 3f4a854 + f7ab034 commit fadd4f6
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 9 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
The MIT License (MIT)
Copyright © 2023 Texas A&M University Libraries
Copyright © 2020-2025 Texas A&M University Libraries

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
* An initial enumeration for describing to the client which type of container a view is to be within.
*/
public enum ContainerType {
ACADEMIC_AGE_GROUP, QUANTITY_DISTRIBUTION, PROFILE_SUMMARIES_EXPORT
ACADEMIC_AGE_GROUP,
QUANTITY_DISTRIBUTION,
FREQUENCY_GRAPH,
PROFILE_SUMMARIES_EXPORT
}
29 changes: 29 additions & 0 deletions src/main/resources/defaults/dataAndanalyticViews.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,32 @@
- name: Download Profile Summaries by Department
layout: CONTAINER
type: PROFILE_SUMMARIES_EXPORT
- name: Temporal Graph
layout: CONTAINER
type: FREQUENCY_GRAPH
filters:
- field: class
value: Document
facets:
- name: Author organization
field: authorOrganization
type: STRING
sort: COUNT
direction: DESC
pageSize: 10
expandable: false
collapsible: false
collapsed: false
useDialog: true
hidden: false
- name: Authors
field: authors
type: STRING
sort: COUNT
direction: DESC
pageSize: 10
expandable: false
collapsible: false
collapsed: false
useDialog: true
hidden: false
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
<div class="d-block d-md-none">
<hr />
</div>
<div class="text-nowrap mt-1">
<img src="assets/images/temporal_graph_icon.png" height="20" width="20" alt="temporal graph icon">
<span class="ml-1"><a href="{{vivoUrl}}/vis/publication-graph/{{id}}" target="_blank">Temporal Graph</a></span>
</div>
<div class="mt-1 text-nowrap">
<img src="assets/images/scimap_icon.png" height="20" width="20" alt="map of science icon">
<span class="ml-1"><a href="{{vivoUrl}}/vis/map-of-science/{{id}}" target="_blank">Map of Science</a></span>
Expand All @@ -19,4 +15,4 @@
height: 25px;
margin: auto;
}
</style>
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ public void testGetUsers() throws Exception {

@Test
public void testPatchUser() throws Exception {
User admin = createMockAdmin();
User superAdmin = createMockSuperAdmin();
// @formatter:off
mockMvc.perform(patch("/users/{id}", admin.getId()).cookie(login(admin)).content("{\"role\": \"ROLE_USER\", \"active\": false}"))
mockMvc.perform(patch("/users/{id}", superAdmin.getId()).cookie(login(superAdmin)).content("{\"role\": \"ROLE_USER\", \"active\": false}"))
.andExpect(status().isOk())
.andExpect(content().contentType(HAL_JSON_VALUE))
.andExpect(jsonPath("active", equalTo(false)))
Expand Down

0 comments on commit fadd4f6

Please sign in to comment.