Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98341604
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jan 12, 06:51
Size
6 KB
Mime Type
text/x-diff
Expires
Tue, Jan 14, 06:51 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
23564924
Attached To
R3600 invenio-infoscience
View Options
diff --git a/invenio/modules/deposit/templates/deposit/run_base.html b/invenio/modules/deposit/templates/deposit/run_base.html
index ef49c3036..e5484c709 100644
--- a/invenio/modules/deposit/templates/deposit/run_base.html
+++ b/invenio/modules/deposit/templates/deposit/run_base.html
@@ -1,150 +1,119 @@
{#
## This file is part of Invenio.
## Copyright (C) 2013, 2014 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your option) any later version.
##
## Invenio is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Invenio; if not, write to the Free Software Foundation, Inc.,
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
#}
{%- extends "page.html" -%}
{% block global_bundles %}
{{ super() }}
{% bundles "deposit.js", "deposit.css" %}
{% endblock %}
{%- block header %}
{{ super() }}
<link rel="stylesheet" type="text/css"
href="{{ url_for("static", filename="vendors/jquery-ui/themes/base/theme.css") }}"/>
<link rel="stylesheet" type="text/css"
href="{{ url_for("static", filename="vendors/jquery-ui/themes/base/datepicker.css") }}"/>
{% endblock header %}
{%- block css %}
{{ super() }}
<style>
.ui-autocomplete-loading {
background: white url('{{ url_for('static', filename='img/loading.gif') }}') right top no-repeat;
}
</style>
{%- endblock css %}
{% block body %}
{% block form_submit_dialog %}
<div id="form-submit-dialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="{{id}}Label" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div align="center" id="{{id}}Label">{{ _('Submitting') }} <img src="/img/loading.gif" /></div>
</div>
</div>
</div>
</div>
{% endblock form_submit_dialog %}
{% block deposit_page %}
<div class="row">
{% block file_container %}
<div id="file_container" class="col-md-8 form-feedback-warning">
<div id="flash-message"></div>
{% include "deposit/form.html" %}
</div>
{% endblock %}
{% if form._drafting %}
<div class="col-md-4">
{% include "deposit/myview.html" %}
</div>
{% endif %}
</div>
</div>
{% endblock deposit_page %}
{% endblock %}
{% block javascript %}
{{ super() }}
{# The ckEditor loads dynamically other files and thus cannot be safely
# bundled with the others.
#}
<script type="text/javascript" src="{{ url_for("static", filename="vendors/ckeditor/ckeditor.js" )}}"></script>
{%- block form_script_options %}
-<script type="text/javascript">
-var date_options = {
- element: '.datepicker',
- options: {
- dateFormat: 'yy-mm-dd',
- }
-};
-</script>
{%- endblock form_script_options %}
<script type="text/javascript">
-require(["jquery", "js/deposit/form"], function($, form) {
+require(["jquery", "js/deposit/form", "js/deposit/plupload"], function($, form) {
$(function(){
var save_url = '{{ url_for(".save", deposition_type=deposition_type, uuid=uuid, draft_id=draft.id) }}';
var save_all_url = '{{ url_for(".save", deposition_type=deposition_type, uuid=uuid, draft_id=draft.id, all='1') }}';
var complete_url = '{{ url_for(".save", deposition_type=deposition_type, uuid=uuid, draft_id=draft.id, submit='1') }}';
var autocomplete_url = '{{ url_for(".autocomplete", deposition_type=deposition_type, uuid=uuid, draft_id=draft.id, field_name="__FIELDNAME__") }}';
- var configuration = {
- plupload: {
- max_size: '{{config.DEPOSIT_MAX_UPLOAD_SIZE|default('10mb')}}',
- selector:'.pluploader',
- save_url: save_url,
- url: '{{ url_for('.upload_file', deposition_type=deposition_type, uuid=uuid) }}',
- delete_url: '{{ url_for('.delete_file', deposition_type=deposition_type, uuid=uuid) }}',
- get_file_url: '{{ url_for('.get_file', deposition_type=deposition_type, uuid=uuid) }}',
- db_files: {{ form.files|safe }},
- dropbox_url: '{{ url_for('.upload_url', deposition_type=deposition_type, uuid=uuid) }}'
- // Those are missing
- // uuid:,
- // newdep_url:,
- // continue_url
- },
- urls: {
- save_url: save_url,
- save_all_url: save_all_url,
- complete_url: complete_url,
- autocomplete_url: autocomplete_url,
- },
- datepicker: date_options
- }
// Initialize form
form.attachTo("#submitForm", {
save_url: save_url,
save_all_url: save_all_url,
complete_url: complete_url,
autocomplete_url: autocomplete_url,
datepicker_element: '.datepicker',
datepicker_options: {dateFormat: "yy-mm-dd"}
});
$('.pluploader').pluploadWidget({
max_file_size: '{{config.DEPOSIT_MAX_UPLOAD_SIZE|default('10mb')}}',
save_url: save_url,
url: '{{ url_for('.upload_file', deposition_type=deposition_type, uuid=uuid) }}',
delete_url: '{{ url_for('.delete_file', deposition_type=deposition_type, uuid=uuid) }}',
get_file_url: '{{ url_for('.get_file', deposition_type=deposition_type, uuid=uuid) }}',
dropbox_url: '{{ url_for('.upload_url', deposition_type=deposition_type, uuid=uuid) }}',
files: {{ form.files|safe }},
form_selector: "#submitForm"
// Those are missing
// uuid:,
// newdep_url:,
// continue_url
});
});
});
</script>
<script type="text/javascript" src="https://www.dropbox.com/static/api/1/dropbox.js" id="dropboxjs" data-app-key="{{config.CFG_DROPBOX_API_KEY}}"></script>
{% endblock javascript %}
Event Timeline
Log In to Comment