Commit Graph

3307 Commits (7a71110033d9fa03ce2f809fc8eac7db06f73d68)
 

Author SHA1 Message Date
Konstantina Galouni 5f89c26844 Added empty folder uploads 2 years ago
Konstantina Galouni 9ab9e6abc9 #7528: [NEW] Upload files field type - frontend.
1. dataset-profile-field-view-style.ts: Include "upload" field type.
2. field-data.ts: Export interface UploadFieldData.
3. config.json: Added new property "maxFileSizeInMB":10.
4. configuration.service.ts: Added _maxFileSizeInMB field and getter for it.
5. enum-utils.service.ts: Added cases for upload and table (not ready, to be added) field types.
6. rich-text-editor.module.ts: [Bug fix] Removed import of HttpClientModule (this is imported only once in order to work with interceptor).
7. field-editor-model.ts & dataset-profile-editor.component.ts: Added case and validators for "upload" field type.
8. dataset-profile.module.ts: Imports for upload.
9.dataset-profile-editor-composite-field.component & dataset-profile-editor-field.component: Added button for upload.
10. form-field.component: Added functionality for uploading and downloading files.
11. dataset-description-form.module.ts: Added "FileService" provider and import of "NgxDropzoneModule".
12. en.json: New literals for upload and table (to be added in other language files too).
13. New files for upload field type: file.service.ts, upload-field-data-editor-model.ts, dataset-profile-editor-upload-field.component.html, dataset-profile-editor-upload-field.component.ts, dataset-profile-editor-upload-field.component.scss
2 years ago
Konstantina Galouni 2a9d8b8296 #7528: [NEW] Upload files field type.
1. Datasets.java: In "delete()" method, call also fileManager.markAllFilesOfEntityIdAsDeleted.
2. DatasetManager.java: Added method "deleteOldFilesAndAddNew()" which is called by "createOrUpdate()", to mark as deleted files that are not used any more and save the new ones.
3. DatabaseRepository.java & DatabaseRepositoryImpl.java: Include in DAOs FileUploadDAO.
4. ModelBuilder.java & ViewStyle.java: Incluse "upload" field type.
5. field-data.ts:
	a. In "getOrdinal()" method return Integer instead of int.
	b. In "getValidations()" method added null check.
	c. In methods "fromJsonObject()" and "toMap()" added special if clauses for "upload" field type.
6. application.properties:
   a. Added property "file.storage", to set the folder where the files will be permanently saved.
   b. Changed default spring.servlet.multipart.max-file-size and pring.servlet.multipart.max-request-size to 10 MB.
7. UserInvitationController.java: Deleted a print in System.out.
8. New files for upload field type: FileUploadDao.java, FileUploadDaoImpl.java, FileUpload.java, PostgreSQLEnumType.java (necessary for the enum EntityType), FileController.java, FileManager.java, UploadData.java.
2 years ago
Konstantina Galouni 744160c84a Add in DB table UploadFile 2 years ago
George Kalampokis dc06ba9201 Allow to return DMP with no Datasets for the Dataset Editor 2 years ago
George Kalampokis 4e0402df95 Fix issue with prefilling Mapper and empty array values 2 years ago
George Kalampokis 563711eae4 Fix issue saving tags from template when the field is a textField 2 years ago
George Kalampokis d3a1e85ba9 Fix issue with keeping non Admin users on Dataset Templates 2 years ago
George Kalampokis 56499223cf Fix issue with Grant authentication 2 years ago
George Kalampokis 75fc8a1d13 Update some entities based on the Db configuration 2 years ago
George Kalampokis 608c4f3fc0 Add get Parent values on json Searcher 2 years ago
George Kalampokis 5ea8b9b964 Minor fix for visibility Rules Service 2 years ago
George Kalampokis 1e572b3214 Fix issue with prefilling mapping 2 years ago
Konstantina Galouni 1dfcad7e88 dataset-profile-editor.component.html: #7519 (Additional commit) On "viewOnly" mode - finalized dataset template, change the "Save" button (left) to "Update", make it clickable and work as the "Update" button (top right on the last step) already does. 2 years ago
George Kalampokis f373c9016e Merge remote-tracking branch 'origin/Development' into Development 2 years ago
George Kalampokis ea72f64ed4 Replace DB DOIFunder with a json config file 2 years ago
Konstantina Galouni b68ede8cd7 #7518 & #7519: [Bug fix] in Required indication in Rich Text Area fields & editable general info on dataset template new version & date with time shown in dataset templates.
1. rich-text-editor.component.scss: Css for .editor-wrapper .disabled added.
2. rich-text-editor.component.ts: New "editable" Input() field added, to allow rich text area to be disabled and not editable.
3. dataset-profile-editor.component.html:
   a. In <rich-text-editor-component> set [editable]="form.controls['description'].status !== 'DISABLED'"
   b. #7518 Show required message and css  in rich text area when there is error "required" and description is touched (not dirty)
4. dataset-profile-editor.component.ts: #7519 comment disable of form controls label (title), description and language.
5. dataset-profile-listing.component.html: #7519 Time added in created column of dataset templates.
6. dataset-editor.component.html & form-field.component.html: #7518 Show required message and css  in rich text area when there is error "required" and description is touched (not dirty).
7. clone-dialog.component.html: Replaced <textarea> with <rich-text-editor-component> for description field.
8. clone-dialog.module.ts: Import RichTextEditorModule.
9. clone-dialog.component.ts: #7519 comment disable of form group label (title)
10. styles.scss: Css for class .form-field-subscript-wrapper updated.
2 years ago
George Kalampokis c3aff92cd4 Don't include Funder if it's not in the Doi Funder Table 2 years ago
George Kalampokis 5a3f871c58 Remove various unnecessary info messages 2 years ago
Diamantis Tziotzios b04b35d62b Merge branch 'Development'
# Conflicts:
#	dmp-backend/web/src/main/resources/RDACommonStandards.txt
2 years ago
George Kalampokis 9f88bdae69 Possible fix for twitter login (part 2) 2 years ago
George Kalampokis 8d1c73deba Possible fix for twitter login 2 years ago
George Kalampokis 93aa2d36e5 Fix another issue with login 2 years ago
George Kalampokis 69a94fa236 Make email nullable field 2 years ago
George Kalampokis 94a225cf9f Add Description on Dataset Export 2 years ago
Bernaldo Mihasi 494ee47620 zenodo prefilling customizations 2 years ago
George Kalampokis 3c42ee3531 Improve tags pre-filling mapping 2 years ago
Bernaldo Mihasi 0bd08c2fac fixed tag prefilling 2 years ago
George Kalampokis 817ee9b44d Fixed ParsedTags 2 years ago
George Kalampokis f6cb4a40d2 Generalized (again) dataset prefilling 2 years ago
George Kalampokis d1eab0d019 Fix issue with not showing datasets on all version listing 2 years ago
George Kalampokis 4bdb27fcef Merge remote-tracking branch 'origin/Development' into Development 2 years ago
George Kalampokis ad8239ca5e Improve if statement on Prefilling Mapping 2 years ago
Bernaldo Mihasi 1a43c28496 add more prefilled fields 2 years ago
George Kalampokis b6c28be3b3 Optimize Dashboard's recent activity logic, removed various unused fields from Listing Models and implement toDataModel conversion logic in some models 2 years ago
George Kalampokis 71b1010ea1 Merge remote-tracking branch 'origin/Development' into Development 2 years ago
George Kalampokis d16e130dc6 Optimize general metric counter 2 years ago
George Kalampokis 11ff99fd77 Improve and generalize prefilling logic 2 years ago
argirok 3aa1c1ae59 fix issue with pub api #7326#note-5 the value was a number instaed of search 2 years ago
argirok cc926970ca Merge branch 'Development' of code-repo.d4science.org:MaDgiK-CITE/argos into Development
 Conflicts:
	dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field/dataset-profile-editor-field.component.ts
2 years ago
Konstantinos Triantafyllou e4e009f5b1 Fix after prefill datase editor behaviour - 7545 2 years ago
Bernaldo Mihasi da5ba952e1 rda export import tag bug, format preffiling fixed 2 years ago
Bernaldo Mihasi bf77a85acb Merge branch 'Development' of https://code-repo.d4science.org/MaDgiK-CITE/argos into Development 2 years ago
Bernaldo Mihasi eedcf0dfb0 fix freetext-format bug in prefilling temporarily 2 years ago
George Kalampokis fac6a93c0a Fix minor worldBuilder issue and a minor refactor 2 years ago
George Kalampokis 4740fbe8e0 Refactor visibilityRuleService 2 years ago
Konstantinos Triantafyllou 6cdf560713 Add clear input in rich text editor 2 years ago
Konstantinos Triantafyllou 26e10b1299 Add URL Validator type in validators. Free Text can have URL validator. 2 years ago
Bernaldo Mihasi 80e5e12f29 fix export-import dataset missing rda mappings 2 years ago
Bernaldo Mihasi 815fc05af6 fix missing section titles from word export 2 years ago