From f74c992bbd5f694dd8497902b12cfb3cae6e8966 Mon Sep 17 00:00:00 2001 From: Antoniafriedrich Date: Mon, 13 Nov 2023 14:35:13 +0100 Subject: [PATCH] MIR-1256 Support time in mods:dateIssued Implements a Timepicker --- mir-module/GruntFile.js | 5 +- .../editor/editor-derivate-includes.xed | 2 + .../resources/editor/editor-includes.xed | 5 +- .../bootstrap-datepicker-timepicker.de.js | 8 + .../bootstrap-datepicker-timepicker.js | 305 ++++++++++++++++++ .../META-INF/resources/js/mir/xeditor-form.js | 97 ++++-- .../config/mir/messages_de.properties | 3 +- .../config/mir/messages_en.properties | 3 +- .../main/resources/xsl/editor/mir2xeditor.xsl | 5 + .../resources/xsl/editor/xeditor2mods.xsl | 12 + .../resources/xsl/metadata/mir-abstract.xsl | 3 +- 11 files changed, 420 insertions(+), 28 deletions(-) create mode 100644 mir-module/src/main/resources/META-INF/resources/js/mir/bootstrap-datepicker-timepicker/bootstrap-datepicker-timepicker.de.js create mode 100644 mir-module/src/main/resources/META-INF/resources/js/mir/bootstrap-datepicker-timepicker/bootstrap-datepicker-timepicker.js diff --git a/mir-module/GruntFile.js b/mir-module/GruntFile.js index 061f8be738..9d580f29d9 100644 --- a/mir-module/GruntFile.js +++ b/mir-module/GruntFile.js @@ -74,10 +74,11 @@ module.exports = function(grunt) { '<%= globalConfig.moduleDirectory %>/target/classes/META-INF/resources/js/mir/geo-coords.min.js': '<%= globalConfig.moduleDirectory %>/src/main/resources/META-INF/resources/js/mir/geo-coords.js', '<%= globalConfig.moduleDirectory %>/target/classes/META-INF/resources/js/mir/select-doctype.min.js': '<%= globalConfig.moduleDirectory %>/src/main/resources/META-INF/resources/js/mir/select-doctype.js', '<%= globalConfig.moduleDirectory %>/target/classes/META-INF/resources/js/mir/citation.min.js': '<%= globalConfig.moduleDirectory %>/src/main/resources/META-INF/resources/js/mir/citation.js', - '<%= globalConfig.moduleDirectory %>/target/classes/META-INF/resources/js/jquery.search-entity.min.js': '<%= globalConfig.moduleDirectory %>/src/main/resources/META-INF/resources/js/jquery.search-entity.js', '<%= globalConfig.moduleDirectory %>/target/classes/META-INF/resources/js/epusta.min.js': '<%= globalConfig.moduleDirectory %>/src/main/resources/META-INF/resources/js/epusta.js', - '<%= globalConfig.moduleDirectory %>/target/classes/META-INF/assets/ckeditor4/config.min.js': '<%= globalConfig.moduleDirectory %>/src/main/resources/META-INF/resources/js/ckeditor-config.js' + '<%= globalConfig.moduleDirectory %>/target/classes/META-INF/assets/ckeditor4/config.min.js': '<%= globalConfig.moduleDirectory %>/src/main/resources/META-INF/resources/js/ckeditor-config.js', + '<%= globalConfig.moduleDirectory %>/target/classes/META-INF/resources/js/mir/bootstrap-datepicker-timepicker/bootstrap-datepicker-timepicker.js': '<%= globalConfig.moduleDirectory %>/src/main/resources/META-INF/resources/js/mir/bootstrap-datepicker-timepicker/bootstrap-datepicker-timepicker.js', + '<%= globalConfig.moduleDirectory %>/target/classes/META-INF/resources/js/mir/bootstrap-datepicker-timepicker/bootstrap-datepicker-timepicker.de.js': '<%= globalConfig.moduleDirectory %>/src/main/resources/META-INF/resources/js/mir/bootstrap-datepicker-timepicker/bootstrap-datepicker-timepicker.de.js', } } }, diff --git a/mir-module/src/main/resources/META-INF/resources/editor/editor-derivate-includes.xed b/mir-module/src/main/resources/META-INF/resources/editor/editor-derivate-includes.xed index 15dde68bf9..14f246b5bc 100644 --- a/mir-module/src/main/resources/META-INF/resources/editor/editor-derivate-includes.xed +++ b/mir-module/src/main/resources/META-INF/resources/editor/editor-derivate-includes.xed @@ -144,6 +144,8 @@ + + + +