forked from DSpace/DSpace
-
Notifications
You must be signed in to change notification settings - Fork 2
UFAL/Refbox upgrade #1015
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
UFAL/Refbox upgrade #1015
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
58c1e0b
Created integration test
milanmajchrak 8b3b222
Created an endpoint for complete ref box information like in the v5
milanmajchrak 42dd7ef
Little refactoring
milanmajchrak 40f6a9d
Added docs
milanmajchrak d03b2ba
Added docs
milanmajchrak 83e9ea4
Added integration tests for formatting authors
milanmajchrak 4f386fc
Removed double semicolon
milanmajchrak ceb5e73
Fetch the metdata value following the current locale
milanmajchrak 6aff256
Updated firstMetadataValue because it did return empty string instead…
milanmajchrak 3c46ae2
Use DEFAULT_LANGUAGE instead of current localse
milanmajchrak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
dspace-server-webapp/src/main/java/org/dspace/app/rest/model/refbox/ExportFormatDTO.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| /** | ||
| * The contents of this file are subject to the license and copyright | ||
| * detailed in the LICENSE and NOTICE files at the root of the source | ||
| * tree and available online at | ||
| * | ||
| * http://www.dspace.org/license/ | ||
| */ | ||
| package org.dspace.app.rest.model.refbox; | ||
|
|
||
| import java.io.Serializable; | ||
|
|
||
| /** | ||
| * DTO for export formats in the reference box. | ||
| * This class represents the export format details including its name, URL, data type, and extraction. | ||
| * @author Milan Majchrak (dspace at dataquest.sk) | ||
| */ | ||
| public class ExportFormatDTO implements Serializable { | ||
| private String name; | ||
| private String url; | ||
| private String dataType; | ||
| private String extract; | ||
|
|
||
| public ExportFormatDTO(String name, String url, String dataType, String extract) { | ||
| this.name = name; | ||
| this.url = url; | ||
| this.dataType = dataType; | ||
| this.extract = extract; | ||
| } | ||
|
|
||
| public String getName() { | ||
| return name; | ||
| } | ||
| public void setName(String name) { | ||
| this.name = name; | ||
| } | ||
|
|
||
| public String getUrl() { | ||
| return url; | ||
| } | ||
| public void setUrl(String url) { | ||
| this.url = url; | ||
| } | ||
|
|
||
| public String getDataType() { | ||
| return dataType; | ||
| } | ||
| public void setDataType(String dataType) { | ||
| this.dataType = dataType; | ||
| } | ||
|
|
||
| public String getExtract() { | ||
| return extract; | ||
| } | ||
| public void setExtract(String extract) { | ||
| this.extract = extract; | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.