Skip to content

Commit

Permalink
[SERV-909] Update metadata updating (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksclarke authored Mar 20, 2024
1 parent 13e1aee commit a29e582
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,13 @@ private Metadata updateMetadata(final Metadata aMetadata, final String... aStrin
metadata.add(entry);
} // If label matches but we have no updated value, ignore the metadata
}
} else {
// Our metadata comes in pairs so, when looping through an array of all the values, we
// need to skip every other one (move the index to the the start of the pair) and halve
// the total array count (since we're counting the pair of values as one thing).
for (int index = 0; index < aStringArray.length / 2; index += 2) {
metadata.add(aStringArray[index], aStringArray[index + 1]);
}
}

return metadata;
Expand Down
11 changes: 10 additions & 1 deletion src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false">
<property file="/etc/fester/fester.properties" />

Expand Down Expand Up @@ -32,6 +32,15 @@
</if>
</logger>

<logger name="info.freelibrary.iiif.presentation.v2.ServiceImage" level="ERROR">
<appender-ref ref="STDOUT" />
<if condition='property("fluency.enabled").equals("true")'>
<then>
<appender-ref ref="FLUENCY" />
</then>
</if>
</logger>

<!-- Loggers for our application -->
<logger name="edu.ucla.library.iiif.fester" level="${logLevel}" additivity="true">
<appender-ref ref="STDOUT" />
Expand Down

0 comments on commit a29e582

Please sign in to comment.