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
ede49e15
Commit
ede49e15
authored
Feb 07, 2018
by
Gradl, Tobias
Browse files
803: Complete collection view
Task-Url:
https://pm.winseda.de/issues/803
parent
a7d54139
Changes
3
Hide whitespace changes
Inline
Side-by-side
collections/crawls.jsp
View file @
ede49e15
...
...
@@ -6,7 +6,7 @@
<c:choose>
<c:when
test=
"
${
crawls
!=
null
&&
fn:
length
(
crawls
)>
0
}
"
>
<div
class=
"previous-crawls"
>
<table
class=
"ta
ble-light
table-striped"
>
<table
class=
"
s
ta
te-table
table-striped"
>
<tbody>
<c:forEach
items=
"
${
crawls
}
"
var=
"crawl"
varStatus=
"status"
>
<c:set
var=
"state"
value=
"ok"
/>
...
...
@@ -36,55 +36,52 @@
</c:choose>
<tr
id=
"crawl-${crawl.id}"
>
<t
d
class=
"
state-column
state-${state}"
>
<tr
id=
"crawl-${crawl.id}"
class=
"state-row-${state}"
>
<t
h
class=
"state-${state}"
>
<div
class=
"cell-heading no-wrap"
>
<c:choose>
<c:when
test=
"
${
crawl
.
online
}
"
>
<i
class=
"fa fa-lg fa-globe"
aria-hidden=
"true"
></i>
</c:when>
<c:otherwise>
<i
class=
"fa fa-lg fa-refresh"
aria-hidden=
"true"
></i>
</c:otherwise>
</c:choose>
<c:if
test=
"
${
crawl
.
online
}
"
>
<i
class=
"fa fa-lg fa-globe"
aria-hidden=
"true"
></i>
</c:if>
<i
class=
"fa fa-lg fa-${icon}"
aria-hidden=
"true"
></i>
</div>
</t
d
>
</t
h
>
<td
class=
"content-column"
<c:if
test=
"
${
crawl
.
offline
}
"
>
colspan=
"2"
</c:if>>
<div
class=
"cell-heading state-${state}"
>
<c:choose>
<c:when
test=
"
${
crawl
.
online
}
"
>
<s:message
code=
"~eu.dariah.de.minfba.search.model.crawl.online.explained"
/>
</c:when>
<c:otherwise>
<s:message
code=
"~eu.dariah.de.minfba.search.model.crawl.offline.explained"
/>
</c:otherwise>
</c:choose>
</div>
<div
class=
"cell-payload"
><s:message
code=
"~eu.dariah.de.minfba.search.model.crawl.timestamp"
/>
:
<strong><joda:format
value=
"
${
crawl
.
timestamp
}
"
style=
"LM"
/></strong></div>
<div
class=
"cell-payload no-break-out"
><s:message
code=
"~eu.dariah.de.minfba.search.model.crawl.id"
/>
: ${crawl.id}
</div>
<c:if
test=
"
${
crawl
.
online
}
"
>
<div
class=
"cell-payload"
><s:message
code=
"~eu.dariah.de.minfba.common.view.label.files"
/>
: ${crawl.files}
<c:if
test=
"
${
crawl
.
size
!=
null
&&
crawl
.
size
!=
''
}
"
>
(${crawl.size})
</c:if>
</div>
</c:if>
<c:if
test=
"
${
crawl
.
logAvailable
}
"
>
<div
class=
"cell-payload"
>
<a
href=
'
<s:url
value=
"/logs/${crawl.id}.html"
></s:url>
'
target=
"_blank"
>
<i
class=
"fa fa-external-link"
aria-hidden=
"true"
></i>
<s:message
code=
"~eu.dariah.de.minfba.common.view.label.open_log"
/>
</a>
</div>
</c:if>
<c:if
test=
"
${
crawl
.
offline
}
"
>
<div
class=
"cell-payload no-break-out"
><s:message
code=
"~eu.dariah.de.minfba.search.model.crawl.base_crawl_id"
/>
: ${crawl.baseCrawlId}
</div>
</c:if>
<td
<c:if
test=
"
${
crawl
.
offline
}
"
>
colspan=
"2"
</c:if>>
<ul>
<li>
<span
class=
"state-heading state-${state}"
>
<c:choose>
<c:when
test=
"
${
crawl
.
online
}
"
>
<s:message
code=
"~eu.dariah.de.minfba.search.model.crawl.online"
/>
</c:when>
<c:otherwise>
<s:message
code=
"~eu.dariah.de.minfba.search.model.crawl.offline"
/>
</c:otherwise>
</c:choose>
</span>
(
<joda:format
value=
"
${
crawl
.
timestamp
}
"
style=
"MM"
/>
)
</li>
<c:if
test=
"
${
crawl
.
online
}
"
>
<li>
<span
class=
"state-heading"
><s:message
code=
"~eu.dariah.de.minfba.common.view.label.files"
/>
:
</span>
${crawl.files}
<c:if
test=
"
${
crawl
.
size
!=
null
&&
crawl
.
size
!=
''
}
"
>
(${crawl.size})
</c:if>
</li>
</c:if>
<c:if
test=
"
${
crawl
.
logAvailable
}
"
>
<li>
<span
class=
"state-heading"
>
<a
href=
'
<s:url
value=
"/logs/${crawl.id}.html"
></s:url>
'
target=
"_blank"
>
<i
class=
"fa fa-external-link"
aria-hidden=
"true"
></i>
<s:message
code=
"~eu.dariah.de.minfba.common.view.label.open_log"
/>
</a>
</span>
</li>
</c:if>
</ul>
<c:if
test=
"
${
crawl
.
online
}
"
>
<td>
<c:if
test=
"
${
state
==
'ok'
}
"
>
...
...
collections/home.jsp
View file @
ede49e15
...
...
@@ -35,7 +35,7 @@
</div>
</div>
<div
class=
"clearfix"
>
<table
id=
"collections-table"
class=
"state-table table-striped"
>
<table
id=
"collections-table"
class=
"state-table
state-table-selectable
table-striped"
>
<thead>
<tr>
<th><s:message
code=
"~eu.dariah.de.minfba.common.status"
/></th>
<!-- Badge column -->
...
...
collections/incl/incl_dataset_table_row.jsp
View file @
ede49e15
...
...
@@ -43,7 +43,8 @@
</c:when>
</c:choose>
<tr
data-detail-target=
"${ep.id}-${ds.id}"
class=
"state-row-${status}
<c:if
test=
"
${
i
==
0
}
"
>
active
</c:if>
"
>
<tr
data-detail-target=
"${ep.id}-${ds.id}"
class=
"state-row-${status}
<c:if
test=
"
${
i
==
selectedIndex
}
"
>
active
</c:if>
"
>
<th
class=
"state-${status}"
>
<i
class=
"fa fa-lg fa-${icon}"
aria-hidden=
"true"
></i><br
/>
${ds.docs}
<br
/>
...
...
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