Skip to content
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

oai2.xsl stylesheet support to oaiprovider and proai #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bin/combiner-test1-input1.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"item","itemID","date","state"
info:fedora/nsdl:10013,oai:nsdl.org:nsdl:10011:nsdl:10013,2005-09-20T12:49:14.77,info:fedora/fedora-system:def/model#Active
info:fedora/nsdl:10015,oai:nsdl.org:nsdl:10011:nsdl:10015,2005-09-20T12:49:15.391,info:fedora/fedora-system:def/model#Active
info:fedora/nsdl:2051858,oai:nsdl.org:nsdl:10059:nsdl:2051858,2005-09-20T12:50:01,info:fedora/fedora-system:def/model#Active
info:fedora/nsdl:2052376,oai:nsdl.org:nsdl:10059:nsdl:2052376,2005-09-20T12:50:02.23.123,info:fedora/fedora-system:def/model#Active
5 changes: 5 additions & 0 deletions bin/combiner-test1-input2.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"itemID","setSpec"
oai:nsdl.org:nsdl:10059:nsdl:2051858,5101
oai:nsdl.org:nsdl:10059:nsdl:2051858,set2
oai:nsdl.org:nsdl:10059:nsdl:2052376,5101
oai:nsdl.org:nsdl:10059:nsdl:2052420,5101
5 changes: 5 additions & 0 deletions bin/combiner-test1-input3.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"itemID"
oai:nsdl.org:nsdl:10011:nsdl:10013
oai:nsdl.org:nsdl:10011:nsdl:10015
oai:nsdl.org:nsdl:10059:nsdl:2051858
oai:nsdl.org:nsdl:10059:nsdl:2052376
4 changes: 4 additions & 0 deletions bin/combiner-test1-output.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
info:fedora/nsdl:10013,oai:nsdl.org:nsdl:10011:nsdl:10013,2005-09-20T12:49:14.77,info:fedora/fedora-system:def/model#Active,true
info:fedora/nsdl:10015,oai:nsdl.org:nsdl:10011:nsdl:10015,2005-09-20T12:49:15.391,info:fedora/fedora-system:def/model#Active,true
info:fedora/nsdl:2051858,oai:nsdl.org:nsdl:10059:nsdl:2051858,2005-09-20T12:50:01,info:fedora/fedora-system:def/model#Active,true,5101,set2
info:fedora/nsdl:2052376,oai:nsdl.org:nsdl:10059:nsdl:2052376,2005-09-20T12:50:02.23.123,info:fedora/fedora-system:def/model#Active,true,5101
4 changes: 4 additions & 0 deletions bin/combiner-test1-output2.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
info:fedora/nsdl:10013,oai:nsdl.org:nsdl:10011:nsdl:10013,2005-09-20T12:49:14.77,info:fedora/fedora-system:def/model#Active,true
info:fedora/nsdl:10015,oai:nsdl.org:nsdl:10011:nsdl:10015,2005-09-20T12:49:15.391,info:fedora/fedora-system:def/model#Active,true
info:fedora/nsdl:2051858,oai:nsdl.org:nsdl:10059:nsdl:2051858,2005-09-20T12:50:01,info:fedora/fedora-system:def/model#Active,true
info:fedora/nsdl:2052376,oai:nsdl.org:nsdl:10059:nsdl:2052376,2005-09-20T12:50:02.23.123,info:fedora/fedora-system:def/model#Active,true
4 changes: 4 additions & 0 deletions bin/combiner-test1-output3.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
info:fedora/nsdl:10013,oai:nsdl.org:nsdl:10011:nsdl:10013,2005-09-20T12:49:14.77,info:fedora/fedora-system:def/model#Active,false
info:fedora/nsdl:10015,oai:nsdl.org:nsdl:10011:nsdl:10015,2005-09-20T12:49:15.391,info:fedora/fedora-system:def/model#Active,false
info:fedora/nsdl:2051858,oai:nsdl.org:nsdl:10059:nsdl:2051858,2005-09-20T12:50:01,info:fedora/fedora-system:def/model#Active,false,5101,set2
info:fedora/nsdl:2052376,oai:nsdl.org:nsdl:10059:nsdl:2052376,2005-09-20T12:50:02.23.123,info:fedora/fedora-system:def/model#Active,false,5101
4 changes: 4 additions & 0 deletions bin/combiner-test1-output4.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
info:fedora/nsdl:10013,oai:nsdl.org:nsdl:10011:nsdl:10013,2005-09-20T12:49:14.77,info:fedora/fedora-system:def/model#Active,false
info:fedora/nsdl:10015,oai:nsdl.org:nsdl:10011:nsdl:10015,2005-09-20T12:49:15.391,info:fedora/fedora-system:def/model#Active,false
info:fedora/nsdl:2051858,oai:nsdl.org:nsdl:10059:nsdl:2051858,2005-09-20T12:50:01,info:fedora/fedora-system:def/model#Active,false
info:fedora/nsdl:2052376,oai:nsdl.org:nsdl:10059:nsdl:2052376,2005-09-20T12:50:02.23.123,info:fedora/fedora-system:def/model#Active,false
Binary file added bin/fedora/services/oaiprovider/AllLiveTests.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added bin/fedora/services/oaiprovider/QueryFactory.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added bin/fedora/test/FedoraConfig.class
Binary file not shown.
Binary file added bin/fedora/test/LiveSystemTests.class
Binary file not shown.
Binary file added bin/fedora/test/LiveTest.class
Binary file not shown.
Binary file added bin/fedora/test/SystemConfig$1.class
Binary file not shown.
Binary file added bin/fedora/test/SystemConfig.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added bin/fedora/test/TransientFedoraSession.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
74 changes: 74 additions & 0 deletions build/classes/log4j.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

<!-- Use this appender to have logs go to STDOUT -->
<appender name="Console" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="%p %d{yyyy-MM-dd' 'HH:mm:ss.SSS} [%t] (%c{1}) %m%n" />
</layout>
</appender>

<!-- Use this appender to have logs go to one big log file -->
<appender name="File" class="org.apache.log4j.FileAppender">
<param name="File" value="/tmp/proai/log/proai.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="%p %d{yyyy-MM-dd' 'HH:mm:ss.SSS} [%t] (%c{1}) %m%n" />
</layout>
</appender>

<!-- Use this appender to have logs go to a rolling set of log files -->
<appender name="RollingFile"
class="org.apache.log4j.RollingFileAppender">
<param name="File" value="/tmp/proai/log/proai.log" />
<param name="MaxFileSize" value="20MB" />
<param name="MaxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="%p %d{yyyy-MM-dd' 'HH:mm:ss.SSS} [%t] (%c{1}) %m%n" />
</layout>
</appender>

<!-- Category-specific settings -->
<category name="fedora.test">
<priority value="INFO" />
</category>
<category name="fedora.services.oaiprovider">
<priority value="INFO" />
</category>

<category name="org.nsdl.mptstore">
<priority value="WARN" />
</category>

<category name="org.trippi">
<priority value="WARN" />
</category>

<category name="fedora.client.FedoraClient">
<priority value="WARN" />
</category>

<category name="proai">
<priority value="WARN" />
</category>

<!-- Note: DEBUG level for this category will log ALL SQL! -->
<category name="proai.cache.RCDatabase">
<priority value="WARN" />
</category>

<category name="org.apache.commons.httpclient.HttpMethodBase">
<priority value="ERROR" />
</category>


<!-- Default level and appender if not explicitly defined -->
<root>
<priority value="WARN" />
<appender-ref ref="Console" />
</root>

</log4j:configuration>
Loading