Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ap5 ap6 ap1 internal format #195

Merged
merged 308 commits into from
Mar 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
308 commits
Select commit Hold shift + click to select a range
cdac454
Fix: Redirect to upload start page in case of 0 imports.
haogatyp Aug 4, 2020
92a8155
Fix: Concat multilines of the WoS file.
haogatyp Aug 4, 2020
d2b5888
change api modals
chrizzor Aug 4, 2020
22164aa
add person and organisation mapping
chrizzor Aug 4, 2020
dc26855
rename api methods
chrizzor Aug 4, 2020
302ff9e
add orcid api data service
chrizzor Aug 4, 2020
e7b2aaa
viewhelper exlodeString return empty array if input string is not a s…
chrizzor Aug 4, 2020
336a240
set all api buttons in line
chrizzor Aug 4, 2020
3ba1471
add info icon with all json entity data
chrizzor Aug 4, 2020
0cbc881
fis: reactivate addMyData button
chrizzor Aug 4, 2020
eb3fac9
Fix some translations.
haogatyp Aug 4, 2020
f6f972a
Fix some translations.
haogatyp Aug 4, 2020
bfb54bc
PubMed search with restriction to author.
haogatyp Aug 4, 2020
485e62e
Restrict add my data via list (Workspace/My Publications) to research…
haogatyp Aug 4, 2020
d3859e5
Only researchers can use add my data from the imported document list.
haogatyp Aug 4, 2020
9889540
add fis fillout user settings
chrizzor Aug 5, 2020
57c7849
Fix: Changed method name for fis user data.
haogatyp Aug 5, 2020
191b27e
replace characters for gnd search
chrizzor Aug 5, 2020
cc47bc4
fix modal headline with uppercase letters
chrizzor Aug 5, 2020
aa0e080
add professions and date of birth and death for gnd api list
chrizzor Aug 5, 2020
6484834
Fix: Find the person group.
haogatyp Aug 5, 2020
eafdcc2
Fix: pre fill of the fis search modal.
haogatyp Aug 5, 2020
dcf2ca5
Fix: Add my data from list.
haogatyp Aug 5, 2020
a3c6d98
Remove unused function.
haogatyp Aug 5, 2020
3e560df
Fix: Remove wrong return function.
haogatyp Aug 6, 2020
686a0aa
Fix: Set document type, invalid slub info data exception
haogatyp Aug 6, 2020
d04a015
Fix: Find person group.
haogatyp Aug 6, 2020
efd24fa
Localization of the user settings dialog. Added a notify checkbox.
haogatyp Aug 7, 2020
613c468
Fix: Add notification on any change.
haogatyp Aug 7, 2020
7e28e35
initial ApiController
haogatyp Aug 13, 2020
815f902
Rest api: Return a single document.
haogatyp Aug 21, 2020
afa5b73
Basic document creation via rest api.
haogatyp Aug 21, 2020
239aea4
add suggestion creation from api controller
chrizzor Aug 31, 2020
266c7e1
replace specific query chars
chrizzor Aug 31, 2020
a4efc51
replace name modal header and button
chrizzor Aug 31, 2020
2c8a69f
replace sandbox with production url
chrizzor Aug 31, 2020
29c0389
orcid add search term replacement
chrizzor Aug 31, 2020
be5a045
add variable for organization switch
chrizzor Aug 31, 2020
b7ceec3
add remove person switch (ror)
chrizzor Aug 31, 2020
d348b09
remove orcid orga configuration
chrizzor Aug 31, 2020
b855df6
fix gnd js output
chrizzor Aug 31, 2020
fc2a9b4
Log and send emails with agreed deposit licenses.
haogatyp Sep 1, 2020
cf2b2b2
orcid remove umlaut
chrizzor Sep 1, 2020
daef385
checkbox only for fis and gnd
chrizzor Sep 1, 2020
ed42df2
orcid use urlencode for searchterm
chrizzor Sep 1, 2020
073737e
Fix xlf.
haogatyp Sep 1, 2020
964263a
Fix column size.
haogatyp Sep 1, 2020
19930cb
Fix unique key uri length
haogatyp Sep 1, 2020
f2708ab
Accept suggestion: Send deposit license notification.
haogatyp Sep 1, 2020
b1ade05
Fix: array parameter.
haogatyp Sep 1, 2020
d9b52bb
Fix: authors display.
haogatyp Sep 1, 2020
174d7a1
Show a warning if there is no FIS-ID in the user settings.
haogatyp Sep 1, 2020
92cfa21
Add an option to hide persons checkbox.
haogatyp Sep 2, 2020
5ec8627
add parentOrgaName
chrizzor Sep 2, 2020
ee88282
add fis organisation name for fe_user
chrizzor Sep 2, 2020
286990f
fix optionalText output
chrizzor Sep 2, 2020
f44fc06
optional information only for gnd person search
chrizzor Sep 2, 2020
a36c647
Fix: user search pre fill.
haogatyp Sep 3, 2020
a2fcbf1
Fix: undefined variable surname.
haogatyp Sep 3, 2020
f8a67a0
fix orga name output
chrizzor Sep 3, 2020
5fdb9da
Fix hide add my user button.
haogatyp Sep 3, 2020
fc4fd61
Fix: Don't show add my data button if current users fis id is assigned.
haogatyp Sep 3, 2020
e3c789a
add optional text for ror
chrizzor Sep 3, 2020
b0e2746
Fix using ApiModal for fis search in extended search dialog.
haogatyp Sep 3, 2020
5383009
Fix search for assigned persons and affiliations.
haogatyp Sep 4, 2020
4549cbe
service api ror add urlencode
chrizzor Sep 4, 2020
e6feab1
add orga name, identifier locallang
chrizzor Sep 4, 2020
84d96ae
add fe_user labels
chrizzor Sep 4, 2020
67eb150
change locallang id
chrizzor Sep 4, 2020
d9ce4b9
show color as text not as html color
chrizzor Sep 4, 2020
820da03
add api name as checkbox name
chrizzor Sep 4, 2020
d03ca34
locallang id fix
chrizzor Sep 4, 2020
f59b8d4
Fix: "My Publications" exclude own discarded publications.
haogatyp Sep 4, 2020
4d7e01b
api new search if checkbox has changed
chrizzor Sep 4, 2020
00195e9
orga name language fix
chrizzor Sep 4, 2020
d10ddf0
gnd add comma for profession output
chrizzor Sep 4, 2020
5e936b2
add unpaywallDoi configuration
chrizzor Sep 4, 2020
16de0ea
use best_oa_localtion->url_for_landing_page
chrizzor Sep 4, 2020
366cabd
use capital for api Unpaywall
chrizzor Sep 4, 2020
9de253e
use capital with unpaywall header
chrizzor Sep 4, 2020
8642e29
Fix update publication notifcations for assigned users.
haogatyp Sep 4, 2020
840c6c9
Deactivate sub checkbox if notifyChanges checkbox is not checked.
haogatyp Sep 4, 2020
4c4e876
Fix: add file group error.
haogatyp Sep 4, 2020
69d46a4
Send the deposit license message also for suggestions.
haogatyp Sep 4, 2020
90ffd43
Fix: Do not show person assignment info message for librarians.
haogatyp Sep 4, 2020
776d8d5
Fix author marker.
haogatyp Sep 4, 2020
93372a4
fix modal switch
chrizzor Sep 10, 2020
4d909dd
use marker array method instead of setting the arguments up in each n…
chrizzor Sep 10, 2020
5adda3f
persist updated bookmarks
chrizzor Sep 17, 2020
63231e6
changes for api (use string instead of files)
chrizzor Sep 28, 2020
0d0c725
add api methods
chrizzor Sep 28, 2020
aa62b55
add active messaging (new, changed, suggestion accepted and suggestio…
chrizzor Sep 28, 2020
8b5da52
Disjunctive field combinations for mandatory field check.
haogatyp Sep 29, 2020
7356c40
Use AF as the primary source for authors.
haogatyp Sep 29, 2020
cdef247
add "FIS mapping" as client configuration
chrizzor Sep 29, 2020
e68f9be
RiS reader with affiliations (C1) of authors in AF.
haogatyp Sep 29, 2020
c5c9055
Fix size of author field.
haogatyp Sep 29, 2020
33dc92a
adding fis id api and slub:info setter
chrizzor Sep 30, 2020
3044172
add Api plugin configuration
chrizzor Sep 30, 2020
d3d38bf
Move mandatory field settings evaluation into importer.
haogatyp Sep 30, 2020
90f29fe
Changed loadFile call.
haogatyp Sep 30, 2020
542de0e
Fix loadFile header.
haogatyp Sep 30, 2020
7b5e7b1
Merge branch 'person_highlight_assignment' into AP5_AP6_AP1
haogatyp Oct 1, 2020
3b2026a
Merge branch 'mypublications_assigned_publications' into AP5_AP6_AP1
haogatyp Oct 1, 2020
3209889
Merge branch 'import_metadata' into AP5_AP6_AP1
haogatyp Oct 1, 2020
2cce174
Merge branch 'CMR-710' into AP5_AP6_AP1
haogatyp Oct 1, 2020
6e08dca
Merge branch 'deposit_license' into AP5_AP6_AP1
haogatyp Oct 1, 2020
4fdad1b
Merge branch 'rest_api_dev' into AP5_AP6_AP1
haogatyp Oct 2, 2020
945f645
Fix BibTex person import, use delimiter " and ".
haogatyp Oct 6, 2020
f69937c
Fix: Workspace pagination CMR1008
haogatyp Oct 8, 2020
2fd8624
Show an error message if the uploaded file does not contain any valid…
haogatyp Oct 6, 2020
4d9a5c4
Fix: Search without results if bookmarkfilter is set.
haogatyp Oct 9, 2020
1a341c0
Fix: Wrong list in "MyPublications" if no FIS-Id has been set in the …
haogatyp Oct 9, 2020
a126ca3
Fix: Sort Workspace/MyPublications by persons column CMR-973.
haogatyp Oct 9, 2020
cfd57f2
Fix: Update index after accepting a suggestion, CMR-984
haogatyp Oct 9, 2020
3196735
Fix CMR-984: Message after accepting a suggestion, deleting of sugges…
haogatyp Oct 15, 2020
cfa40e6
Merge branch 'mypublications_assigned_publications' into AP5_AP6_AP1
haogatyp Oct 15, 2020
e1b03fa
Fix CMR-1015: Make detail page of remote documents work.
haogatyp Oct 15, 2020
59ed4e8
Fix: CMR-982, researchers should be able to duplicate a document.
haogatyp Oct 15, 2020
ef761a7
Fix: CMR-1010 details page without empty groups.
haogatyp Oct 15, 2020
5a06317
Fix: Feedback after list upload. The second box must not be displayed…
haogatyp Oct 16, 2020
372287e
Fix CMR-984: Show only a message after accepting a suggestion in case…
haogatyp Oct 16, 2020
25f2b98
Fix: (CMR-875, CMR-724) Use input option list key and value for reaso…
haogatyp Oct 16, 2020
4dda8e1
Fix: Integrate the original details view (as a button) in the suggest…
haogatyp Oct 16, 2020
96a3799
Fix: Change some localizations (CMR-875,CMR-757).
haogatyp Oct 16, 2020
ccc219e
Fix: Use process number if exist to build detail url: CMR-1015
haogatyp Oct 23, 2020
50b58f0
Fix Api create: Return process number
haogatyp Oct 23, 2020
2844d68
Show state and publication type on details page, new filter text for …
haogatyp Oct 19, 2020
1a11c89
Adding a creation date: Workspace with sort by creation date and exte…
haogatyp Oct 27, 2020
c98fe93
Fix: Workspace list table with horizontal scroll.
haogatyp Oct 27, 2020
b24fa88
Added a new batch action to the workspace: Take into processing.
haogatyp Oct 27, 2020
9a7902b
Fix: creationDate and embargoDate searchable as date.
haogatyp Nov 3, 2020
1f976ca
Rename showOriginalDocument button.
haogatyp Nov 3, 2020
e20fbf3
Fix: Suggestion details, show group display name if field has no disp…
haogatyp Nov 3, 2020
3a3e630
Show creation date on details page.
haogatyp Nov 4, 2020
5d02c3b
Suggestions: Display of an info text to explain the possibilities for…
haogatyp Nov 5, 2020
4f9ab03
Fix: Person assignment in the search result list.
haogatyp Nov 5, 2020
b26f8a2
Remove authorAndPublishers from index.
haogatyp Nov 5, 2020
c0c39a6
add missing parameter type for $token
chrizzor Nov 16, 2020
3562231
Fix: Add missing indexing for new/updated documents.
haogatyp Dec 9, 2020
ee7b8fe
Removed feature due to cancellation of ticket CMR-969.
haogatyp Jan 7, 2021
aaaf040
Allow a comment for FIS-API suggestions.
haogatyp Jan 11, 2021
edcdfa3
Add validation of parameter json.
haogatyp Jan 13, 2021
4827099
Fix foreach if no json group items exist.
haogatyp Jan 13, 2021
27213df
Fis api: Allow only one suggestion at a time for a document.
haogatyp Jan 13, 2021
dd6b6b0
Fix fis-api error return.
haogatyp Jan 13, 2021
d5efdb3
Check mandatory parameters.
haogatyp Jan 14, 2021
a7ff100
Allow BibTex and RIS import with more than one record.
haogatyp Jan 15, 2021
504ecd4
Active messaging "Document changed" and "New Document" for the FIS: O…
haogatyp Jan 18, 2021
0615a4f
BibTex: Added some character replacements.
haogatyp Jan 18, 2021
5c960cd
Added an error message if the document does not exist and accept empt…
haogatyp Jan 18, 2021
8e1ac67
Fix REST-API suggestion with more than 1 person in JSON-Data
haogatyp Jan 20, 2021
df353d2
REST-Api suggestion with setting the corresponding fe-user of the token
haogatyp Jan 20, 2021
3a22560
Fix Umlaut converting for BibText import.
haogatyp Jan 20, 2021
20dbd21
Fix active messaging for the FIS.
haogatyp Jan 20, 2021
e96f4d9
Activate logging into TYPO3 sys_log table.
haogatyp Jan 20, 2021
c5b1118
REST-API: Avoid suggestions for new documents and return the uid of a…
haogatyp Jan 20, 2021
f2a109b
REST-Api suggestion: Fix deleting of values.
haogatyp Jan 21, 2021
c6d21c3
REST-API: pseudo imports without generation of a process number.
haogatyp Jan 21, 2021
8d4a331
Active messaging: suggestion accept and decline only when a fis id e…
haogatyp Jan 22, 2021
d5a1424
confirm decline suggestion dialog with own message.
haogatyp Jan 25, 2021
926e8bd
Allow controller action deleteLocallySuggestion
haogatyp Jan 26, 2021
2be3b90
Replace backend only with access restriction by roles.
haogatyp Aug 5, 2019
ee746b0
Remove backend only from TCA.
haogatyp Sep 2, 2019
795d57a
remove static mods parts and use kitodopublication as first node.
chrizzor Aug 15, 2019
80c5997
add transformation files (xslt) which can be added to a document type
chrizzor Aug 21, 2019
373e8c9
use transformedXML method instead of the old getMetsdata
chrizzor Aug 22, 2019
042562a
remove the usage of mets/mods for internal metadata
chrizzor Sep 25, 2019
be1ab72
remove setSlubInfo
chrizzor Sep 25, 2019
3a4e948
use "<data>" as root element
chrizzor Sep 27, 2019
f705bce
fix email notifiy submitter mail
chrizzor Sep 30, 2019
ecbdcac
remove get elements by tag name mods
chrizzor Sep 30, 2019
f53b745
If no title is given for a document show "[No title]" in document list
chrizzor Sep 30, 2019
819c9e2
add namespace configuration
chrizzor Oct 11, 2019
fb99d40
rename metsGenerator to ParserGenerator
chrizzor Nov 25, 2019
2d0f00f
add own xsl transformator class and add optional parameters
chrizzor Dec 3, 2019
991ebab
xslt param change "agent_name" to "owner_id"
chrizzor Dec 4, 2019
6afe5ae
- set owner_id as xslt parameter from the client dataset
chrizzor Dec 6, 2019
22fc29c
dont save transformed xml to xmlData
chrizzor Dec 6, 2019
7e769bd
add client configuration for title, authors and processnumber
chrizzor Dec 10, 2019
9ba0786
remove static namespace configuration
chrizzor Dec 10, 2019
b56bf67
add submitter name, email and notice as client configuration
chrizzor Dec 10, 2019
d428b6c
fix client configuration names
chrizzor Dec 10, 2019
5b6b509
reduce varchar length because of mysql limits
chrizzor Dec 10, 2019
cc67664
internalformat fix
chrizzor Dec 10, 2019
2eb2dc7
remove Mets, Mods and Slub
chrizzor Dec 11, 2019
ecc2ab8
Revert "remove local indexing (local search/indexing needs to be reim…
chrizzor Dec 12, 2019
a1e9222
dont remove mods:mods or slub:info in mapping
chrizzor Dec 12, 2019
874a05a
fix setting authors and date issued
chrizzor Dec 12, 2019
c7c2d65
set static xml in internalformat class
chrizzor Dec 13, 2019
82638ee
fix xslt transformation
chrizzor Dec 18, 2019
83170ed
fix retrieve internal format
chrizzor Dec 18, 2019
d23881d
add missing return
chrizzor Dec 18, 2019
46ed04b
revert removing mods extension
chrizzor Dec 19, 2019
5acc0cc
show flash message on failed retrieve
chrizzor Dec 19, 2019
98a3745
dont handle slub:info different than any other mapping
chrizzor Dec 20, 2019
a1bffb3
fix some changes because of the rebase against master
chrizzor Jul 23, 2020
8713e6c
remove files after the changes are transfered
chrizzor Jul 23, 2020
b050dad
TCA fix role constants
chrizzor Jul 23, 2020
8c644ad
fieldItem getEmbargo doesnt exist anymore
chrizzor Jul 23, 2020
b190058
Fix getClientUserRoles() does not exist exception.
haogatyp Jul 27, 2020
6e69239
Remove usage of mets, mods and slubinfo helpers.
haogatyp Nov 23, 2020
f9d700b
Fix: Document authors not set.
haogatyp Nov 23, 2020
df80ce6
Fix: Remove already removed check for existing document due to show s…
haogatyp Nov 23, 2020
289ae64
Fix: "Duplicate Action" in the document controller was incorrect due …
haogatyp Nov 23, 2020
8b0ddfd
Ignore xml comments.
haogatyp Nov 23, 2020
3339831
Fix some internal format getters and setters.
haogatyp Nov 24, 2020
47fbc6c
Adapting the example import-XSLT files to the intermediate format.
haogatyp Nov 24, 2020
998715c
Added xpath configurations for the static xml.
haogatyp Dec 15, 2020
62b46e8
Fix: Use internal format instead of mods and slub.
haogatyp Feb 8, 2021
2ceccf5
Fix: Make comment more detailed.
haogatyp Feb 8, 2021
8ca6560
Log a warning if no transformation file for the given document type e…
haogatyp Feb 8, 2021
43578b8
Made fis data service url configurable via TYPOSCRIPT settings.
haogatyp Feb 8, 2021
c10eb61
Defined determine identifier in one place only and added a fix me com…
haogatyp Feb 8, 2021
75cf0bf
Log a warning if no transformation file for the xml output transforma…
haogatyp Feb 8, 2021
abf71a0
Removed unneccessary comment.
haogatyp Feb 8, 2021
a6e8089
Remove commented out code.
haogatyp Feb 8, 2021
78832d9
Added a constant for the xml data size limit.
haogatyp Feb 8, 2021
ef8cf81
Added a fixme comment for xml data size limit.
haogatyp Feb 8, 2021
b96e94a
Added a fixme comment for getAliasStateByLocalOrRepositoryState funct…
haogatyp Feb 8, 2021
e261967
Removed an unnecessary tca file.
haogatyp Feb 8, 2021
a8081b2
Removed unnecessary rearlurl configuration.
haogatyp Feb 9, 2021
98f7355
Fix: CREATE TABLE tx_dpf_domain_model_client... Row size too large. T…
haogatyp Feb 10, 2021
167e860
Fix: SQL error: 'Incorrect integer value: '' for column `db`...
haogatyp Feb 10, 2021
23f0eb6
Fix: Missing Qucosa/Kitodo.Publication icons in TYPO3 new record dialog.
haogatyp Feb 10, 2021
b5bcbc6
Added a fix me comment to the getUpdateNotificationRecipients method-
haogatyp Feb 10, 2021
10da71d
Added some missing translations.
haogatyp Feb 10, 2021
90b3cee
Remove unnecessary code.
haogatyp Feb 10, 2021
2b87dd9
Fix: No return value.
haogatyp Feb 10, 2021
e7fc183
Fix missing embargo date.
haogatyp Feb 10, 2021
69b7a28
Removed unreachable code.
haogatyp Feb 10, 2021
8982a7b
Made the "backoffice" startable without exception and display an erro…
haogatyp Feb 16, 2021
e5a0930
Fix: Unexpected character.
haogatyp Feb 17, 2021
edbcf59
Fix: PHP-Exception when using the form for creating new documents.
haogatyp Feb 17, 2021
51a7651
Fix: Exception while saving a new document.
haogatyp Feb 17, 2021
ecdd295
Fix: Frontend form did not work without a fe user logged in.
haogatyp Feb 18, 2021
f53cb8d
Fix: Logged in fe users without being in the right user role could se…
haogatyp Feb 18, 2021
d158222
Fix: Make mandatory check and primary file mandatory check the defaul…
haogatyp Feb 18, 2021
ead4e3c
Fix: Rename db column virtual into virtual_type due to MySQL naming c…
haogatyp Feb 19, 2021
fc2d6e0
Allow configurations without using namespaces.
haogatyp Feb 19, 2021
dcb38f3
Added some missing translations.
haogatyp Feb 19, 2021
0595ac0
Fix: fis person id in case of no current user.
haogatyp Feb 23, 2021
1513f08
Fix: If internal format is not mods we need at least title and docume…
haogatyp Feb 23, 2021
965d729
Fix: missing new.
haogatyp Feb 24, 2021
11b0eb6
Fix: Upload of the XSLT file, needed to build the json data for the e…
haogatyp Feb 24, 2021
856c918
Remove default ElasticSearch XSLT file.
haogatyp Feb 25, 2021
ca65bd1
Fix: Wrong method to set a value.
haogatyp Feb 25, 2021
2837be3
Remove unwanted character from TYPOSCRIPT setup.
haogatyp Mar 2, 2021
30e6a44
Fix setters for boolean class variables, usage of boolval().
haogatyp Mar 2, 2021
b38700c
Fix: File link on document details page.
haogatyp Mar 2, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions public/typo3conf/LocalConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
],
'EXT' => [
'extConf' => [
'dpf' => 'a:11:{s:9:"swordHost";s:9:"localhost";s:9:"swordUser";s:4:"user";s:13:"swordPassword";s:8:"password";s:24:"swordCollectionNamespace";s:6:"qucosa";s:10:"fedoraHost";s:9:"localhost";s:10:"fedoraUser";s:4:"user";s:14:"fedoraPassword";s:8:"password";s:17:"elasticSearchHost";s:9:"localhost";s:17:"elasticSearchPort";s:4:"9200";s:15:"uploadDirectory";s:14:"uploads/tx_dpf";s:12:"uploadDomain";s:0:"";}',
'rsaauth' => 'a:1:{s:18:"temporaryDirectory";s:0:"";}',
'rte_ckeditor' => 'a:1:{s:15:"ckeditorVersion";s:6:"latest";}',
'saltedpasswords' => 'a:2:{s:3:"BE.";a:4:{s:21:"saltedPWHashingMethod";s:41:"TYPO3\\CMS\\Saltedpasswords\\Salt\\Pbkdf2Salt";s:11:"forceSalted";i:0;s:15:"onlyAuthService";i:0;s:12:"updatePasswd";i:1;}s:3:"FE.";a:5:{s:7:"enabled";i:1;s:21:"saltedPWHashingMethod";s:41:"TYPO3\\CMS\\Saltedpasswords\\Salt\\Pbkdf2Salt";s:11:"forceSalted";i:0;s:15:"onlyAuthService";i:0;s:12:"updatePasswd";i:1;}}',
Expand Down
255 changes: 216 additions & 39 deletions src/Classes/Configuration/ClientConfigurationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
class ClientConfigurationManager
{

/**
/**
* objectManager
*
* @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface
Expand Down Expand Up @@ -51,7 +51,7 @@ class ClientConfigurationManager
*
* @var \EWW\Dpf\Domain\Model\Client
*/
protected $client = NULL;
protected $client = null;

/**
* extensionConfiguration
Expand All @@ -65,34 +65,31 @@ public function __construct()
$objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class);
$clientRepository = $objectManager->get(ClientRepository::class);

if (TYPO3_MODE === 'BE')
{
$selectedPageId = (int) \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('id');
if ($selectedPageId)
{
if (TYPO3_MODE === 'BE') {
$selectedPageId = (int)\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('id');
if ($selectedPageId) {
$this->client = $clientRepository->findAll()->current();

$configurationManager = $objectManager->get(BackendConfigurationManager::class);
$settings = $configurationManager->getConfiguration(NULL,NULL);
$settings = $configurationManager->getConfiguration(null, null);
$this->settings = $settings; //['settings'];
}

}
else
{
} else {
$this->client = $clientRepository->findAll()->current();

$configurationManager = $objectManager->get(ConfigurationManager::class);
$this->settings = $configurationManager->getConfiguration(
\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS
);
$this->settings = $configurationManager->getConfiguration(
\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS
);

}

$this->extensionConfiguration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['dpf']);
}

public function setConfigurationPid($pid) {
public function setConfigurationPid($pid)
{
$objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class);
$clientRepository = $objectManager->get(ClientRepository::class);

Expand All @@ -105,11 +102,11 @@ public function setConfigurationPid($pid) {
*
* @var array
*/
public function getSetting($settingName, $extConfig = NULL)
public function getSetting($settingName, $extConfig = null)
{
$setting = NULL;
$setting = null;
if ($this->client) {
$setting = trim($this->client->{"get".ucfirst($settingName)}());
$setting = trim($this->client->{"get" . ucfirst($settingName)}());
}

// use global extConfig if client settings is empty
Expand All @@ -128,62 +125,242 @@ public function getOwnerId()

public function getSwordHost()
{
return $this->getSetting("swordHost","swordHost");
return $this->getSetting("swordHost", "swordHost");
}

public function getSwordUser()
public function getSwordUser()
{
return $this->getSetting("swordUser","swordUser");
return $this->getSetting("swordUser", "swordUser");
}

public function getSwordPassword()
public function getSwordPassword()
{
return $this->getSetting("swordPassword","swordPassword");
return $this->getSetting("swordPassword", "swordPassword");
}

public function getSwordCollectionNamespace()
public function getSwordCollectionNamespace()
{
return $this->getSetting("swordCollectionNamespace","swordCollectionNamespace");
return $this->getSetting("swordCollectionNamespace", "swordCollectionNamespace");
}

public function getFedoraHost()
public function getFedoraHost()
{
return $this->getSetting("fedoraHost","fedoraHost");
return $this->getSetting("fedoraHost", "fedoraHost");
}

public function getFedoraUser()
public function getFedoraUser()
{
return $this->getSetting("fedoraUser","fedoraUser");
return $this->getSetting("fedoraUser", "fedoraUser");
}

public function getFedoraPassword()
public function getFedoraPassword()
{
return $this->getSetting("fedoraPassword","fedoraPassword");
return $this->getSetting("fedoraPassword", "fedoraPassword");
}

public function getElasticSearchHost()
public function getElasticSearchHost()
{
return $this->getSetting("elasticSearchHost","elasticSearchHost");
return $this->getSetting("elasticSearchHost", "elasticSearchHost");
}

public function getElasticSearchPort()
public function getElasticSearchPort()
{
return $this->getSetting("elasticSearchPort","elasticSearchPort");
return $this->getSetting("elasticSearchPort", "elasticSearchPort");
}

public function getUploadDirectory()
public function getUploadDirectory()
{
return $this->getSetting("uploadDirectory","uploadDirectory");
return $this->getSetting("uploadDirectory", "uploadDirectory");
}

public function getUploadDomain()
public function getUploadDomain()
{
return $this->getSetting("uploadDomain","uploadDomain");
return $this->getSetting("uploadDomain", "uploadDomain");
}

public function getSuggestionFlashMessage()
{
return $this->getSetting("suggestionFlashmessage", "suggestionFlashmessage");
}

public function getFileXpath()
{
return $this->getSetting("fileXpath", "fileXpath");
}

public function getStateXpath()
{
return $this->getSetting("stateXpath", "stateXpath");
}

public function getTypeXpath()
{
return $this->getSetting("typeXpath", "typeXpath");
}

public function getTypeXpathInput()
{
return $this->getSetting("typeXpathInput", "typeXpathInput");
}

public function getUrnXpath()
{
return $this->getSetting("urnXpath", "urnXpath");
}

public function getQucosaUrnXpath()
{
return $this->getSetting("qucosaUrnXpath", "qucosaUrnXpath");
}

public function getDateXpath()
{
return $this->getSetting("dateXpath", "dateXpath");
}

public function getPublishingYearXpath()
{
return $this->getSetting("publishingYearXpath", "publishingYearXpath");
}

public function getNamespaces()
{
return $this->getSetting("namespaces", "namespaces");
}

public function getTitleXpath()
{
return $this->getSetting("titleXpath", "titleXpath");
}

public function getOriginalSourceTitleXpath()
{
return $this->getSetting("originalSourceTitleXpath", "originalSourceTitleXpath");
}

public function getProcessNumberXpath()
{
return $this->getSetting("processnumberXpath", "processnumberXpath");
}

public function getSubmitterNameXpath()
{
return $this->getSetting("submitterNameXpath", "submitterNameXpath");
}

public function getSubmitterEmailXpath()
{
return $this->getSetting("submitterEmailXpath", "submitterEmailXpath");
}

public function getSubmitterNoticeXpath()
{
return $this->getSetting("submitterNoticeXpath", "submitterNoticeXpath");
}

public function getCreatorXpath()
{
return $this->getSetting("creatorXpath", "creatorXpath");
}

public function getCreationDateXpath()
{
return $this->getSetting("creationDateXpath", "creationDateXpath");
}

public function getRepositoryCreationDateXpath()
{
return $this->getSetting("repositoryCreationDateXpath", "repositoryCreationDateXpath");
}

public function getRepositoryLastModDateXpath()
{
return $this->getSetting("repositoryLastModDateXpath", "repositoryLastModDateXpath");
}

public function getDepositLicenseXpath()
{
return $this->getSetting("depositLicenseXpath", "depositLicenseXpath");
}

public function getAllNotesXpath()
{
return $this->getSetting("allNotesXpath", "allNotesXpath");
}

public function getPrivateNotesXpath()
{
return $this->getSetting("privateNotesXpath", "privateNotesXpath");
}

public function getInputTransformation()
{
return $this->client->getInputTransformation()->current();
}

public function getOutputTransformation()
{
return $this->client->getOutputTransformation()->current();
}

public function getPersonXpath()
{
return $this->getSetting("personXpath", "personXpath");
}

public function getPersonFamilyXpath()
{
return $this->getSetting("personFamilyXpath", "personFamilyXpath");
}

public function getPersonGivenXpath()
{
return $this->getSetting("personGivenXpath", "personGivenXpath");
}

public function getPersonRoleXpath()
{
return $this->getSetting("personRoleXpath", "personRoleXpath");
}

public function getPersonFisIdentifierXpath()
{
return $this->getSetting("personFisIdentifierXpath", "personFisIdentifierXpath");
}

public function getPersonAffiliationXpath()
{
return $this->getSetting("personAffiliationXpath", "personAffiliationXpath");
}

public function getPersonAffiliationIdentifierXpath()
{
return $this->getSetting("personAffiliationIdentifierXpath", "personAffiliationIdentifierXpath");
}

public function getPersonAuthorRole()
{
return $this->getSetting("personAuthorRole", "personAuthorRole");
}

public function getPersonPublisherRole()
{
return $this->getSetting("personPublisherRole", "personPublisherRole");
}

public function getValidationXpath()
{
return $this->getSetting("validationXpath", "validationXpath");
}

public function fisIdXpath()
{
return $this->getSetting("fisIdXpath", "fisIdXpath");
}

public function getSourceDetailsXpaths()
{
return $this->getSetting("sourceDetailsXpaths", "sourceDetailsXpaths");
}

}
15 changes: 15 additions & 0 deletions src/Classes/Controller/AbstractController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\SignalSlot\Dispatcher;
use TYPO3\CMS\Core\Log\LogManager;


abstract class AbstractController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
{
Expand Down Expand Up @@ -59,6 +61,19 @@ abstract class AbstractController extends \TYPO3\CMS\Extbase\Mvc\Controller\Acti
*/
protected $session = null;

/**
* logger
*
* @var \TYPO3\CMS\Core\Log\Logger
*/
protected $logger = null;


public function __construct()
{
/** @var $logger \TYPO3\CMS\Core\Log\Logger */
$this->logger = GeneralUtility::makeInstance(LogManager::class)->getLogger(__CLASS__);
}

protected function initializeView(\TYPO3\CMS\Extbase\Mvc\View\ViewInterface $view)
{
Expand Down
Loading