Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dariah
search-commons-views
Commits
36bc7aaf
Commit
36bc7aaf
authored
Feb 13, 2018
by
Gradl, Tobias
Browse files
71: Security (mainly admin sections)
Task-Url:
https://pm.winseda.de/issues/71
parent
51e32267
Changes
5
Hide whitespace changes
Inline
Side-by-side
collections/crawls.jsp
View file @
36bc7aaf
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
</li>
</li>
</c:if>
</c:if>
</ul>
</ul>
<c:if
test=
"
${
crawl
.
online
}
"
>
<c:if
test=
"
${
crawl
.
online
&&
_auth
.
level
>=
100
}
"
>
<td>
<td>
<c:if
test=
"
${
state
==
'ok'
}
"
>
<c:if
test=
"
${
state
==
'ok'
}
"
>
<button
type=
"button"
onclick=
"editor.performOffline('${crawl.id}');"
class=
"btn btn-link"
><i
class=
"fa fa-repeat"
></i>
<s:message
code=
"~eu.dariah.de.minfba.search.actions.crawls.reindex"
/></button><br
/>
<button
type=
"button"
onclick=
"editor.performOffline('${crawl.id}');"
class=
"btn btn-link"
><i
class=
"fa fa-repeat"
></i>
<s:message
code=
"~eu.dariah.de.minfba.search.actions.crawls.reindex"
/></button><br
/>
...
...
collections/home.jsp
View file @
36bc7aaf
...
@@ -12,13 +12,15 @@
...
@@ -12,13 +12,15 @@
<div
id=
"collections-table-container"
class=
"col-lg-12"
>
<div
id=
"collections-table-container"
class=
"col-lg-12"
>
<h2
class=
"pull-left"
>
<h2
class=
"pull-left"
>
<s:message
code=
"~eu.dariah.de.minfba.search.view.titles.collection_management"
/>
<s:message
code=
"~eu.dariah.de.minfba.search.view.titles.collection_management"
/>
<c:if
test=
"
${
_auth
==
null
||
_auth
.
auth
==
false
}
"
><small>
<span
class=
"glyphicon glyphicon-lock pull-right"
data-toggle=
"tooltip"
data-placement=
"left"
title=
"
<s:message
code=
"~eu.dariah.de.minfba.common.notification.limited_access"
/>
"
></span></small></c:if>
<c:if
test=
"
${
_auth
==
null
||
_auth
.
auth
==
false
||
_auth
.
level
<
100
}
"
><small>
<span
class=
"glyphicon glyphicon-lock pull-right"
data-toggle=
"tooltip"
data-placement=
"left"
title=
"
<s:message
code=
"~eu.dariah.de.minfba.common.notification.limited_access"
/>
"
></span></small></c:if>
</h2>
</h2>
<div
class=
"pull-right"
>
<div
class=
"pull-right"
>
<c:if
test=
"
${
_auth
.
level
>=
100
}
"
>
<button
id=
"btn-resync-colreg"
class=
"btn btn-default btn-sm"
>
<button
id=
"btn-resync-colreg"
class=
"btn btn-default btn-sm"
>
<span
class=
"glyphicon glyphicon-refresh"
></span>
<s:message
code=
"~eu.dariah.de.minfba.common.actions.synchronize"
/>
<span
class=
"glyphicon glyphicon-refresh"
></span>
<s:message
code=
"~eu.dariah.de.minfba.common.actions.synchronize"
/>
</button>
</button>
</c:if>
<div
class=
"data-table-filter pull-left"
>
<div
class=
"data-table-filter pull-left"
>
...
...
collections/incl/incl_dataset_detail.jsp
View file @
36bc7aaf
...
@@ -123,9 +123,11 @@
...
@@ -123,9 +123,11 @@
<c:set
var=
"prefix_state"
value=
"state-warning"
/>
<c:set
var=
"prefix_state"
value=
"state-warning"
/>
</c:otherwise>
</c:otherwise>
</c:choose>
</c:choose>
<div
class=
"inline-button ${prefix_state}"
onclick=
"editor.editPrefix('${ep.id}','${ds.id}','${ds.remoteAlias}', '.oaipmh-metadata-prefix');"
>
<c:if
test=
"
${
_auth
.
level
>=
100
}
"
>
<i
class=
"fa fa-pencil-square-o"
></i>
<span
class=
"oaipmh-metadata-prefix"
>
${prefix}
</span>
<div
class=
"inline-button ${prefix_state}"
onclick=
"editor.editPrefix('${ep.id}','${ds.id}','${ds.remoteAlias}', '.oaipmh-metadata-prefix');"
>
</div>
<i
class=
"fa fa-pencil-square-o"
></i>
<span
class=
"oaipmh-metadata-prefix"
>
${prefix}
</span>
</div>
</c:if>
</li>
</li>
</c:if>
</c:if>
<li>
<li>
...
@@ -135,7 +137,7 @@
...
@@ -135,7 +137,7 @@
<li>
<li>
<span
class=
"state-heading"
><s:message
code=
"~eu.dariah.de.minfba.search.metamodel_view.endpoint.document_count"
/>
:
</span>
<span
class=
"state-heading"
><s:message
code=
"~eu.dariah.de.minfba.search.metamodel_view.endpoint.document_count"
/>
:
</span>
<span
class=
"no-break-out"
><fmt:formatNumber
value=
"
${
ds
.
docs
}
"
/></span>
<span
class=
"no-break-out"
><fmt:formatNumber
value=
"
${
ds
.
docs
}
"
/></span>
<c:if
test=
"
${
ds
.
docs
>
0
}
"
>
<c:if
test=
"
${
ds
.
docs
>
0
&&
_auth
.
level
>=
100
}
"
>
<div
class=
"inline-button ${prefix_state}"
onclick=
"editor.clearEndpointSchemaIndex('${ep.id}','${ds.id}');"
>
<div
class=
"inline-button ${prefix_state}"
onclick=
"editor.clearEndpointSchemaIndex('${ep.id}','${ds.id}');"
>
<i
class=
"fa fa-trash"
></i>
<s:message
code=
"~eu.dariah.de.minfba.common.actions.clear"
/>
<i
class=
"fa fa-trash"
></i>
<s:message
code=
"~eu.dariah.de.minfba.common.actions.clear"
/>
</div>
</div>
...
@@ -151,14 +153,16 @@
...
@@ -151,14 +153,16 @@
</table>
</table>
<h4><s:message
code=
"~eu.dariah.de.minfba.search.view.titles.crawls"
/></h4>
<h4><s:message
code=
"~eu.dariah.de.minfba.search.view.titles.crawls"
/></h4>
<c:choose>
<c:if
test=
"
${
_auth
.
level
>=
100
}
"
>
<c:when
test=
"
${
ds_status
!=
'info'
}
"
>
<c:choose>
<button
onclick=
"editor.crawlOnline('${ep.id}','${ds.id}');"
class=
"btn btn-default"
><i
class=
"fa fa-refresh"
></i><s:message
code=
"~eu.dariah.de.minfba.search.view.crawl.crawl_online"
/></button><br
/>
<c:when
test=
"
${
ds_status
!=
'info'
}
"
>
</c:when>
<button
onclick=
"editor.crawlOnline('${ep.id}','${ds.id}');"
class=
"btn btn-default"
><i
class=
"fa fa-refresh"
></i><s:message
code=
"~eu.dariah.de.minfba.search.view.crawl.crawl_online"
/></button><br
/>
<c:otherwise>
</c:when>
<s:message
code=
"~eu.dariah.de.minfba.search.view.crawl.no_actions"
/>
<c:otherwise>
</c:otherwise>
<s:message
code=
"~eu.dariah.de.minfba.search.view.crawl.no_actions"
/>
</c:choose>
</c:otherwise>
</c:choose>
</c:if>
<div
class=
"previous-crawls-container"
>
<div
class=
"previous-crawls-container"
>
...
...
schemas/home.jsp
View file @
36bc7aaf
...
@@ -18,9 +18,11 @@
...
@@ -18,9 +18,11 @@
</h2>
</h2>
<div
class=
"pull-right"
>
<div
class=
"pull-right"
>
<button
id=
"btn-sync"
class=
"btn btn-default btn-sm"
>
<c:if
test=
"
${
_auth
.
level
>=
100
}
"
>
<span
class=
"glyphicon glyphicon-refresh"
></span>
<s:message
code=
"~eu.dariah.de.minfba.common.actions.synchronize"
/>
<button
id=
"btn-sync"
class=
"btn btn-default btn-sm"
>
</button>
<span
class=
"glyphicon glyphicon-refresh"
></span>
<s:message
code=
"~eu.dariah.de.minfba.common.actions.synchronize"
/>
</button>
</c:if>
<div
class=
"data-table-filter pull-left"
>
<div
class=
"data-table-filter pull-left"
>
<input
type=
"text"
class=
"form-control input-sm"
placeholder=
'
<s:message
code=
"~eu.dariah.de.minfba.common.data_tables.filter_paceholder"
/>
'
>
<input
type=
"text"
class=
"form-control input-sm"
placeholder=
'
<s:message
code=
"~eu.dariah.de.minfba.common.data_tables.filter_paceholder"
/>
'
>
...
...
templates/incl/topNav.jsp
View file @
36bc7aaf
...
@@ -12,6 +12,8 @@
...
@@ -12,6 +12,8 @@
</c:otherwise>
</c:otherwise>
</c:choose>
</c:choose>
<input
type=
"hidden"
id=
"ulevel"
value=
"${_auth.level}"
/>
<header
role=
"banner"
class=
"navbar navbar-default navbar-static-top
<c:if
test=
"
${
navbarInverse
==
true
}
"
>
navbar-inverse
</c:if>
"
>
<header
role=
"banner"
class=
"navbar navbar-default navbar-static-top
<c:if
test=
"
${
navbarInverse
==
true
}
"
>
navbar-inverse
</c:if>
"
>
<div
class=
"container
<c:if
test=
"
${
fluidLayout
==
true
}
"
>
-fluid
</c:if>
"
>
<div
class=
"container
<c:if
test=
"
${
fluidLayout
==
true
}
"
>
-fluid
</c:if>
"
>
<div
class=
"row"
>
<div
class=
"row"
>
...
...
Write
Preview
Supports
Markdown
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