Skip to content

Commit

Permalink
Merge pull request #57 from TAMULib/sfx-fix
Browse files Browse the repository at this point in the history
Fix for sfx template being unavailable in jar context
  • Loading branch information
jsavell authored Sep 20, 2024
2 parents 7cc4fc9 + e5aa533 commit bf19ef1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>edu.tamu</groupId>
<artifactId>gifmbutton-service</artifactId>
<version>2.8.0</version>
<version>2.8.1-RC1</version>

<name>GIFM Button-Service</name>

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/edu/tamu/app/service/SfxService.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public boolean hasFullText(String title, String issn) throws RuntimeException {

private String getXmlTemplate() throws IOException {
if (this.xmlTemplate == null) {
this.xmlTemplate = Files.readString(resourceLoader.getResource("classpath:templates/sfx_rft.xml").getFile().toPath());
this.xmlTemplate = new String(resourceLoader.getResource("classpath:templates/sfx_rft.xml").getInputStream().readAllBytes());
}
return this.xmlTemplate;
}
Expand Down

0 comments on commit bf19ef1

Please sign in to comment.