-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat(consortium-search): Implement consolidated items/holdings search #586
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
c11bd1d
MSEARCH-707: add get consortium item api
mukhiddin-yusuf 50e3d95
MSEARCH-707: add module description for api
mukhiddin-yusuf d37fdbd
MSEARCH-707: add module description for api
mukhiddin-yusuf a3e7a1b
MSEARCH-707: add module description for api
mukhiddin-yusuf ecc3b70
MSEARCH-707: add module description for api
mukhiddin-yusuf cdf01f0
MSEARCH-707: add module description for api
mukhiddin-yusuf 5126d02
MSEARCH-707: add module description for api
mukhiddin-yusuf 6255b2e
MSEARCH-707: add module description for api
mukhiddin-yusuf 399ee83
Merge branch 'master' into msearch-707
mukhiddin-yusuf 48ce00c
msearch-707: adjust poc after marge with master
mukhiddin-yusuf 4a2f4c9
msearch-707: refactor
mukhiddin-yusuf bb989b9
msearch-707: add batch item and holding endpoints
mukhiddin-yusuf 7c6d97f
msearch-707: add batch item and holding endpoints
mukhiddin-yusuf e4c402e
msearch-707: add batch item and holding endpoints
mukhiddin-yusuf 2a9e79c
msearch-707: modify batch endpoints to filter out the desired item/ho…
mukhiddin-yusuf 13e1fac
Merge branch 'msearch-707' into MSEARCH-759
viacheslavkol c5f5ca5
feat(consortium-search): Implement consolidated items/holdings search
viacheslavkol 2030a88
Merge branch 'master' into MSEARCH-759
viacheslavkol f7c6d0a
Fix api schema lint errors
viacheslavkol 2fc369c
- Add permissions in module descriptor
viacheslavkol 98f5129
Merge branch 'master' into MSEARCH-759
psmagin 397d765
- Refactor
viacheslavkol 570360a
- Refactor
viacheslavkol c3d49a7
Merge branch 'master' into MSEARCH-759
mukhiddin-yusuf 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 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
This file contains 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
This file contains 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
24 changes: 24 additions & 0 deletions
24
src/main/java/org/folio/search/converter/ConsortiumHoldingMapper.java
This file contains 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,24 @@ | ||
package org.folio.search.converter; | ||
|
||
import lombok.AccessLevel; | ||
import lombok.NoArgsConstructor; | ||
import org.folio.search.domain.dto.ConsortiumHolding; | ||
import org.folio.search.domain.dto.Holding; | ||
|
||
@NoArgsConstructor(access = AccessLevel.PRIVATE) | ||
public class ConsortiumHoldingMapper { | ||
|
||
public static ConsortiumHolding toConsortiumHolding(String instanceId, Holding holding) { | ||
return new ConsortiumHolding() | ||
.id(holding.getId()) | ||
.hrid(holding.getHrid()) | ||
.tenantId(holding.getTenantId()) | ||
.instanceId(instanceId) | ||
.callNumberPrefix(holding.getCallNumberPrefix()) | ||
.callNumber(holding.getCallNumber()) | ||
.callNumberSuffix(holding.getCallNumberSuffix()) | ||
.copyNumber(holding.getCopyNumber()) | ||
.permanentLocationId(holding.getPermanentLocationId()) | ||
.discoverySuppress(holding.getDiscoverySuppress() != null && holding.getDiscoverySuppress()); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/org/folio/search/converter/ConsortiumItemMapper.java
This file contains 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,20 @@ | ||
package org.folio.search.converter; | ||
|
||
import lombok.AccessLevel; | ||
import lombok.NoArgsConstructor; | ||
import org.folio.search.domain.dto.ConsortiumItem; | ||
import org.folio.search.domain.dto.Item; | ||
|
||
@NoArgsConstructor(access = AccessLevel.PRIVATE) | ||
public class ConsortiumItemMapper { | ||
|
||
public static ConsortiumItem toConsortiumItem(String instanceId, Item item) { | ||
return new ConsortiumItem() | ||
.id(item.getId()) | ||
.hrid(item.getHrid()) | ||
.tenantId(item.getTenantId()) | ||
.instanceId(instanceId) | ||
.holdingsRecordId(item.getHoldingsRecordId()) | ||
.barcode(item.getBarcode()); | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like methods like doSomeAndDoSomeAnd...
May be better way to do something like next