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-webresources
Commits
346520ac
Commit
346520ac
authored
Sep 04, 2019
by
Gradl, Tobias
Browse files
1324: Adapt admin dialogs to view but not change alias
Task-Url:
https://pm.winseda.de/issues/1324
parent
1bc097e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/collections/edit.js
View file @
346520ac
...
...
@@ -79,25 +79,6 @@ CollectionEditor.prototype.refreshData = function(endpointId, datasetId, urlSuff
});
};
CollectionEditor
.
prototype
.
editPrefix
=
function
(
endpointId
,
schemaId
,
input
,
updateFieldSelector
)
{
var
_this
=
this
;
var
form_identifier
=
"
edit-prefix-
"
+
endpointId
+
"
/
"
+
schemaId
;
modalFormHandler
=
new
ModalFormHandler
({
formUrl
:
endpointId
+
"
/
"
+
schemaId
+
"
/forms/oaiPrefix
"
,
identifier
:
form_identifier
,
//additionalModalClasses: "wider-modal",
translations
:
[{
placeholder
:
"
~*servererror.head
"
,
key
:
"
~de.dariah.genericsearch.view.async.servererror.head
"
},
{
placeholder
:
"
~*servererror.body
"
,
key
:
"
~de.dariah.genericsearch.view.async.servererror.body
"
},
{
placeholder
:
"
~*validationerrors.head
"
,
key
:
"
~de.dariah.genericsearch.view.collection.notification.error_crawling_exception.head
"
},
{
placeholder
:
"
~*validationerrors.body
"
,
key
:
"
~de.dariah.genericsearch.view.collection.notification.error_crawling_exception.body
"
}],
completeCallback
:
function
()
{
$
(
updateFieldSelector
).
text
(
$
(
"
#oaiPrefix
"
).
val
());
}
});
modalFormHandler
.
show
(
form_identifier
);
}
CollectionEditor
.
prototype
.
clearData
=
function
(
endpointId
,
schemaId
,
hasAdditionalData
)
{
var
_this
=
this
;
...
...
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