Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dariah
search-commons-views
Commits
268e111e
Commit
268e111e
authored
Feb 07, 2018
by
Gradl, Tobias
Browse files
803: Complete collection view
Task-Url:
https://pm.winseda.de/issues/803
parent
6bb7fca5
Changes
3
Hide whitespace changes
Inline
Side-by-side
collections/edit.jsp
View file @
268e111e
...
...
@@ -22,7 +22,7 @@
</small>
</h2>
<table>
<table
class=
"default-table"
>
<tbody>
<tr>
<th><s:message
code=
"~eu.dariah.de.minfba.metamodel.common.id"
/></th>
...
...
@@ -36,8 +36,8 @@
</table>
<div
id=
"endpoint-table-container"
class=
"row"
>
<div
class=
"col-sm-
5"
style=
"border-right: 1px solid #ccc
"
>
<h4><s:message
code=
"~eu.dariah.de.minfba.
metamodel.collection
s"
/></h4>
<div
class=
"col-sm-
6
"
>
<h4><s:message
code=
"~eu.dariah.de.minfba.
search.view.labels.data_source
s"
/></h4>
<table
id=
"endpoint-table"
class=
"state-table state-table-selectable"
>
<tbody>
<c:set
var=
"i"
value=
"0"
/>
...
...
@@ -49,7 +49,7 @@
</tbody>
</table>
</div>
<div
id=
"detailsContainer"
class=
"col-sm-
7"
style=
"border-left: 1px solid #ccc; margin-left: -1px;
"
>
<div
id=
"detailsContainer"
class=
"col-sm-
6
"
>
<c:set
var=
"index"
value=
"0"
/>
<c:forEach
items=
"
${
collection
.
endpoints
}
"
var=
"ep"
>
<c:forEach
items=
"
${
ep
.
datasetPojos
}
"
var=
"ds"
>
...
...
collections/incl/incl_dataset_detail.jsp
View file @
268e111e
...
...
@@ -48,77 +48,66 @@
</c:choose>
<div
id=
"table-details${ep.id}-${ds.id}"
class=
"table-light-details
<c:if
test=
"
${
index
!=
0
}
"
>
hide
</c:if>
"
>
<h4><s:message
code=
"~eu.dariah.de.minfba.search.view.titles.details_parameter"
/></h4>
<h5><s:message
code=
"~eu.dariah.de.minfba.search.model.endpoint"
/></h5>
<h4><s:message
code=
"~eu.dariah.de.minfba.search.model.endpoint"
/></h4>
<table
class=
"state-table"
>
<tr
class=
"state-row-${ep_status}"
>
<th
class=
"state-${ep_status}"
>
<i
class=
"fa fa-lg fa-${ep_icon}"
aria-hidden=
"true"
></i>
</th>
<td>
<table>
<tbody>
<tr>
<th><s:message
code=
"~eu.dariah.de.minfba.metamodel.endpoint.url"
/></th>
<td><span
class=
"no-break-out"
>
${ep.url}
</span></td>
</tr>
<tr>
<th><s:message
code=
"~eu.dariah.de.minfba.metamodel.endpoint.type"
/></th>
<td>
${ep.method}
</td>
</tr>
<c:if
test=
"
${
ep
.
method
==
'OAI-PMH'
}
"
>
<tr>
<th><s:message
code=
"~eu.dariah.de.minfba.metamodel.endpoint.set"
/></th>
<td
class=
"no-break-out"
>
${ep.set}
</td>
</tr>
</c:if>
<tr>
<th><s:message
code=
"~eu.dariah.de.minfba.common.status"
/></th>
<td
class=
"state-${ep_status}"
>
<s:message
code=
"
${
ep_state_message
}
"
/>
</td>
</tr>
</tbody>
</table>
<ul>
<li>
<span
class=
"state-heading"
><s:message
code=
"~eu.dariah.de.minfba.metamodel.endpoint.url"
/>
:
</span>
<span
class=
"no-break-out"
>
${ep.url}
</span>
</li>
<li>
<span
class=
"state-heading"
><s:message
code=
"~eu.dariah.de.minfba.metamodel.endpoint.type"
/>
:
</span>
<span
class=
"no-break-out"
>
${ep.method}
</span>
</li>
<c:if
test=
"
${
ep
.
method
==
'OAI-PMH'
}
"
>
<li>
<span
class=
"state-heading"
><s:message
code=
"~eu.dariah.de.minfba.metamodel.endpoint.set"
/>
:
</span>
<span
class=
"no-break-out"
>
${ep.set}
</span>
</li>
</c:if>
<li>
<span
class=
"state-heading"
><s:message
code=
"~eu.dariah.de.minfba.common.status"
/>
:
</span>
<span
class=
"state-${ep_status}"
><s:message
code=
"
${
ep_state_message
}
"
/></span>
</li>
</ul>
</td>
<th></th>
</tr>
</table>
<h
5
><s:message
code=
"~eu.dariah.de.minfba.search.model.dataset"
/></h
5
>
<h
4
><s:message
code=
"~eu.dariah.de.minfba.search.model.dataset"
/></h
4
>
<table
class=
"state-table"
>
<tr
class=
"state-row-${ds_status}"
>
<th
class=
"state-${ds_status}"
>
<i
class=
"fa fa-lg fa-${ds_icon}"
aria-hidden=
"true"
></i>
</th>
<td>
<table>
<tbody>
<tr>
<th><s:message
code=
"~eu.dariah.de.minfba.metamodel.schema"
/></th>
<td
class=
"no-break-out"
>
${ds.datamodelPojo.name}
</td>
</tr>
<c:if
test=
"
${
ep
.
method
==
'OAI-PMH'
}
"
>
<tr>
<th><s:message
code=
"~eu.dariah.de.minfba.search.metamodel_view.schema.oaipmh_prefix"
/></th>
<td
class=
"no-break-out"
>
<span
class=
"oaipmh-metadata-prefix"
>
${ds.remoteAlias!=null
&&
fn:length(ds.remoteAlias) > 0 ? ds.remoteAlias : "?"}
</span>
<button
onclick=
"editor.editPrefix('${ep.id}','${ds.id}','${ds.remoteAlias}', '.oaipmh-metadata-prefix');"
class=
"btn btn-link"
><i
class=
"fa fa-pencil-square-o"
></i>
Set prefix
</button>
</td>
</tr>
</c:if>
<tr>
<th><s:message
code=
"~eu.dariah.de.minfba.search.metamodel_view.endpoint.document_count"
/></th>
<td
class=
"no-break-out"
>
${s.docs > 0 ? s.docs : '0'}
</td>
</tr>
<tr>
<th><s:message
code=
"~eu.dariah.de.minfba.common.status"
/></th>
<td
class=
"crawl-state-container state-${ds_status}"
>
<s:message
code=
"
${
ds_state_message
}
"
/>
</td>
</tr>
</tbody>
</table>
<ul>
<li>
<span
class=
"state-heading"
><s:message
code=
"~eu.dariah.de.minfba.metamodel.model"
/>
:
</span>
<span
class=
"no-break-out"
>
${ds.datamodelPojo.name}
</span>
</li>
<c:if
test=
"
${
ep
.
method
==
'OAI-PMH'
}
"
>
<li>
<span
class=
"state-heading"
><s:message
code=
"~eu.dariah.de.minfba.search.metamodel_view.schema.oaipmh_prefix"
/>
:
</span>
<span
class=
"oaipmh-metadata-prefix"
>
${ds.remoteAlias!=null
&&
fn:length(ds.remoteAlias) > 0 ? ds.remoteAlias : "?"}
</span>
</li>
</c:if>
<li>
<span
class=
"state-heading"
><s:message
code=
"~eu.dariah.de.minfba.search.metamodel_view.endpoint.document_count"
/>
:
</span>
<span
class=
"no-break-out"
>
${s.docs > 0 ? s.docs : '0'}
</span>
</li>
<li>
<span
class=
"state-heading"
><s:message
code=
"~eu.dariah.de.minfba.common.status"
/>
:
</span>
<span
class=
"crawl-state-container state-${ds_status}"
><s:message
code=
"
${
ds_state_message
}
"
/></span>
</li>
</ul>
</td>
<th></th>
</tr>
...
...
@@ -127,6 +116,7 @@
<!-- Push to actions -->
<!-- <a href="${ep.url}?verb=Identify" target="_blank"><i class="fa fa-retweet"></i>~ Check availability</a> -->
<!--
<c:if
test=
"
${
s
.
docs
>
0
}
"
>
<button onclick="editor.clearEndpointSchemaIndex('${ep.id}','${ds.id}');" class="btn btn-link"><i class="fa fa-trash"></i>
<s:message
code=
"~eu.dariah.de.minfba.common.actions.clear"
/>
</button><br />
</c:if>
-->
<!-- <button onclick="editor.editPrefix('${ep.id}','${ds.id}','${ds.remoteAlias}', '.oaipmh-metadata-prefix');" class="btn btn-link"><i class="fa fa-pencil-square-o"></i>Set prefix</button> -->
<h4><s:message
code=
"~eu.dariah.de.minfba.search.view.titles.online_data"
/></h4>
<c:choose>
...
...
collections/incl/incl_dataset_table_row.jsp
View file @
268e111e
...
...
@@ -45,23 +45,21 @@
<tr
data-detail-target=
"${ep.id}-${ds.id}"
class=
"state-row-${status}
<c:if
test=
"
${
i
==
0
}
"
>
active
</c:if>
"
>
<th
class=
"state-${status}"
>
<i
class=
"fa fa-lg fa-${icon}"
aria-hidden=
"true"
></i>
<i
class=
"fa fa-lg fa-${icon}"
aria-hidden=
"true"
></i><br
/>
${ds.docs}
<br
/>
<s:message
code=
"~eu.dariah.de.minfba.search.model.dataset.documents"
/>
</th>
<td>
<table>
<tbody>
<tr>
<td
class=
"no-break-out"
>
${ep.url}
</td>
</tr>
<tr>
<td
class=
"no-break-out"
>
${ds.datamodelPojo.name}
</td>
</tr>
<tr>
<td>
${ds.docs}
<s:message
code=
"~eu.dariah.de.minfba.search.model.dataset.documents"
/></td>
</tr>
</tbody>
</table>
<ul>
<li>
<span
class=
"state-heading"
><s:message
code=
"~eu.dariah.de.minfba.metamodel.endpoint.url"
/>
:
</span>
<span
class=
"no-break-out"
>
${ep.url}
</span>
</li>
<li>
<span
class=
"state-heading"
><s:message
code=
"~eu.dariah.de.minfba.metamodel.model"
/>
:
</span>
<span
class=
"no-break-out"
>
${ds.datamodelPojo.name}
</span>
</li>
</ul>
</td>
<th
class=
"state-${status}"
></th>
</tr>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment