Skip to content

Commit

Permalink
Added an option to display a human interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-KM committed Jan 7, 2018
1 parent b299d90 commit 2fe2e89
Show file tree
Hide file tree
Showing 10 changed files with 1,695 additions and 58 deletions.
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/.php_cs.cache
/vendor/
/asset/vendor
/build
/node_modules
/vendor
.DS_Store
.php_cs.cache
debug.log
2 changes: 2 additions & 0 deletions Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ public function upgrade($oldVersion, $newVersion, ServiceLocatorInterface $servi
$settings->set('oaipmhrepository_by_site_repository', 'item_set');
$settings->set('oaipmhrepository_oai_set_format',
$defaultSettings['oaipmhrepository_oai_set_format']);
$settings->set('oaipmhrepository_human_interface',
$defaultSettings['oaipmhrepository_human_interface']);
}
}

Expand Down
106 changes: 106 additions & 0 deletions asset/css/oai-pmh-repository.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
/* Styles to adapt bootstrap. */
body {
padding-top: 70px;
}
footer a {
color: #000000;
}
footer a:hover {
color: #000000;
}
a#logo {
background: transparent none no-repeat scroll 0 0 / 100% 100%;
/* padding: 8px 51px; */
}
.vertical-space {
height: 20px;
}
.xoai-contexts div:nth-child(even) {
background-color: #eee;
}
pre {
line-height: 0.8;
}

/* Styles specific to OAI-PMH. */
.oaipmh h2 {
border-bottom-style: inset;
}
.oaipmh table small {
font-style: italic;
margin-left: 10px;
}
.oaipmh-response .panel-heading a {
color: #3c763d;
}
.oaipmh-description {
padding-top: 16px;
}
.oaipmh-formats table thead th:first-child,
.oaipmh-formats table tbody th,
.oaipmh-sets table thead th:first-child,
.oaipmh-sets table tbody th,
.oaipmh-identifiers table thead th:first-child,
.oaipmh-identifiers table tbody th,
.oaipmh-records table thead th:first-child,
.oaipmh-records table tbody th {
text-align: right;
}
.oaipmh-formats table dl {
margin-bottom: 12px;
margin-top: 12px;
}
.oaipmh-records table {
width: 100%;
}
.oaipmh-records table table {
table-layout:fixed;
}
.oaipmh-records table tr.collapse td {
word-wrap: break-word;
}
.oaipmh-record .panel-body {
word-wrap: break-word;
}

/* Stylesheet from http://www2.informatik.hu-berlin.de/~obecker/XSLT/xmlverbatim/xmlverbatim.css */
.xmlverb-default {
color: #333333;
background-color: #ffffff;
font-family: monospace;
}
.xmlverb-element-name {
color: #990000;
}
.xmlverb-element-nsprefix {
color: #666600;
}
.xmlverb-attr-name {
color: #660000;
}
.xmlverb-attr-content {
color: #000099;
font-weight: bold;
}
.xmlverb-ns-name {
color: #666600;
}
.xmlverb-ns-uri {
color: #330099;
}
.xmlverb-text {
color: #000000;
font-weight: bold;
}
.xmlverb-comment {
color: #006600;
font-style: italic;
}
.xmlverb-pi-name {
color: #006600;
font-style: italic;
}
.xmlverb-pi-content {
color: #006666;
font-style: italic;
}
Loading

0 comments on commit 2fe2e89

Please sign in to comment.