Browse Source

Convert line delimiters to UNIX (LF)

pull/1/head
Sebastian Meyer 10 years ago
parent
commit
32a97638e7
  1. 22
      dlf/cli/class.tx_dlf_cli.php
  2. 22
      dlf/common/class.tx_dlf_format.php
  3. 16
      dlf/common/class.tx_dlf_mods.php
  4. 58
      dlf/common/class.tx_dlf_module.php
  5. 34
      dlf/common/class.tx_dlf_plugin.php
  6. 27
      dlf/common/class.tx_dlf_solr.php
  7. 9062
      dlf/doc/METS_Anwendungsprofil_2.0.xml
  8. 8935
      dlf/doc/METS_Application_Profile_2.0.xml
  9. 62
      dlf/ext_autoload.php
  10. 60
      dlf/ext_emconf.php
  11. 2
      dlf/ext_localconf.php
  12. 292
      dlf/ext_tables.php
  13. 308
      dlf/hooks/class.tx_dlf_em.php
  14. 16
      dlf/hooks/class.tx_dlf_hacks.php
  15. 52
      dlf/hooks/class.tx_dlf_tceforms.php
  16. 76
      dlf/hooks/class.tx_dlf_tcemain.php
  17. 590
      dlf/lib/ISO-639/iso-639-1.xml
  18. 1966
      dlf/lib/ISO-639/iso-639-2b.xml
  19. 190
      dlf/lib/OpenLayers/lib/Firebug/firebug.css
  20. 44
      dlf/lib/OpenLayers/lib/Firebug/firebug.html
  21. 1348
      dlf/lib/OpenLayers/lib/Firebug/firebug.js
  22. 18
      dlf/lib/OpenLayers/lib/Firebug/firebugx.js
  23. 656
      dlf/lib/OpenLayers/lib/OpenLayers.js
  24. 1354
      dlf/lib/OpenLayers/lib/OpenLayers/Ajax.js
  25. 1122
      dlf/lib/OpenLayers/lib/OpenLayers/BaseTypes.js
  26. 1360
      dlf/lib/OpenLayers/lib/OpenLayers/BaseTypes/Bounds.js
  27. 228
      dlf/lib/OpenLayers/lib/OpenLayers/BaseTypes/Class.js
  28. 492
      dlf/lib/OpenLayers/lib/OpenLayers/BaseTypes/Element.js
  29. 378
      dlf/lib/OpenLayers/lib/OpenLayers/BaseTypes/LonLat.js
  30. 248
      dlf/lib/OpenLayers/lib/OpenLayers/BaseTypes/Pixel.js
  31. 168
      dlf/lib/OpenLayers/lib/OpenLayers/BaseTypes/Size.js
  32. 490
      dlf/lib/OpenLayers/lib/OpenLayers/Console.js
  33. 712
      dlf/lib/OpenLayers/lib/OpenLayers/Control.js
  34. 330
      dlf/lib/OpenLayers/lib/OpenLayers/Control/ArgParser.js
  35. 192
      dlf/lib/OpenLayers/lib/OpenLayers/Control/Attribution.js
  36. 86
      dlf/lib/OpenLayers/lib/OpenLayers/Control/Button.js
  37. 604
      dlf/lib/OpenLayers/lib/OpenLayers/Control/DragFeature.js
  38. 186
      dlf/lib/OpenLayers/lib/OpenLayers/Control/DragPan.js
  39. 250
      dlf/lib/OpenLayers/lib/OpenLayers/Control/DrawFeature.js
  40. 124
      dlf/lib/OpenLayers/lib/OpenLayers/Control/EditingToolbar.js
  41. 1156
      dlf/lib/OpenLayers/lib/OpenLayers/Control/GetFeature.js
  42. 654
      dlf/lib/OpenLayers/lib/OpenLayers/Control/Graticule.js
  43. 254
      dlf/lib/OpenLayers/lib/OpenLayers/Control/KeyboardDefaults.js
  44. 1238
      dlf/lib/OpenLayers/lib/OpenLayers/Control/LayerSwitcher.js
  45. 1554
      dlf/lib/OpenLayers/lib/OpenLayers/Control/ModifyFeature.js
  46. 734
      dlf/lib/OpenLayers/lib/OpenLayers/Control/MouseDefaults.js
  47. 378
      dlf/lib/OpenLayers/lib/OpenLayers/Control/MousePosition.js
  48. 810
      dlf/lib/OpenLayers/lib/OpenLayers/Control/MouseToolbar.js
  49. 108
      dlf/lib/OpenLayers/lib/OpenLayers/Control/NavToolbar.js
  50. 604
      dlf/lib/OpenLayers/lib/OpenLayers/Control/Navigation.js
  51. 1420
      dlf/lib/OpenLayers/lib/OpenLayers/Control/OverviewMap.js
  52. 490
      dlf/lib/OpenLayers/lib/OpenLayers/Control/PanZoom.js
  53. 790
      dlf/lib/OpenLayers/lib/OpenLayers/Control/PanZoomBar.js
  54. 600
      dlf/lib/OpenLayers/lib/OpenLayers/Control/Panel.js
  55. 438
      dlf/lib/OpenLayers/lib/OpenLayers/Control/Permalink.js
  56. 154
      dlf/lib/OpenLayers/lib/OpenLayers/Control/Scale.js
  57. 1224
      dlf/lib/OpenLayers/lib/OpenLayers/Control/SelectFeature.js
  58. 1066
      dlf/lib/OpenLayers/lib/OpenLayers/Control/WMSGetFeatureInfo.js
  59. 188
      dlf/lib/OpenLayers/lib/OpenLayers/Control/ZoomBox.js
  60. 78
      dlf/lib/OpenLayers/lib/OpenLayers/Control/ZoomToMaxExtent.js
  61. 1708
      dlf/lib/OpenLayers/lib/OpenLayers/Events.js
  62. 452
      dlf/lib/OpenLayers/lib/OpenLayers/Feature.js
  63. 906
      dlf/lib/OpenLayers/lib/OpenLayers/Feature/Vector.js
  64. 158
      dlf/lib/OpenLayers/lib/OpenLayers/Feature/WFS.js
  65. 244
      dlf/lib/OpenLayers/lib/OpenLayers/Format.js
  66. 1826
      dlf/lib/OpenLayers/lib/OpenLayers/Format/GML.js
  67. 1430
      dlf/lib/OpenLayers/lib/OpenLayers/Format/GeoJSON.js
  68. 838
      dlf/lib/OpenLayers/lib/OpenLayers/Format/GeoRSS.js
  69. 776
      dlf/lib/OpenLayers/lib/OpenLayers/Format/JSON.js
  70. 2576
      dlf/lib/OpenLayers/lib/OpenLayers/Format/KML.js
  71. 912
      dlf/lib/OpenLayers/lib/OpenLayers/Format/OSM.js
  72. 260
      dlf/lib/OpenLayers/lib/OpenLayers/Format/SLD.js
  73. 520
      dlf/lib/OpenLayers/lib/OpenLayers/Format/SOSGetObservation.js
  74. 302
      dlf/lib/OpenLayers/lib/OpenLayers/Format/Text.js
  75. 438
      dlf/lib/OpenLayers/lib/OpenLayers/Format/WFS.js
  76. 148
      dlf/lib/OpenLayers/lib/OpenLayers/Format/WFSCapabilities.js
  77. 232
      dlf/lib/OpenLayers/lib/OpenLayers/Format/WFSCapabilities/v1.js
  78. 302
      dlf/lib/OpenLayers/lib/OpenLayers/Format/WFSCapabilities/v1_0_0.js
  79. 60
      dlf/lib/OpenLayers/lib/OpenLayers/Format/WFSCapabilities/v1_1_0.js
  80. 706
      dlf/lib/OpenLayers/lib/OpenLayers/Format/WKT.js
  81. 792
      dlf/lib/OpenLayers/lib/OpenLayers/Format/WMC.js
  82. 1636
      dlf/lib/OpenLayers/lib/OpenLayers/Format/WMC/v1.js
  83. 150
      dlf/lib/OpenLayers/lib/OpenLayers/Format/WMC/v1_0_0.js
  84. 252
      dlf/lib/OpenLayers/lib/OpenLayers/Format/WMC/v1_1_0.js
  85. 246
      dlf/lib/OpenLayers/lib/OpenLayers/Format/WMSCapabilities/v1_3.js
  86. 50
      dlf/lib/OpenLayers/lib/OpenLayers/Format/WMSCapabilities/v1_3_0.js
  87. 180
      dlf/lib/OpenLayers/lib/OpenLayers/Format/WMSDescribeLayer.js
  88. 196
      dlf/lib/OpenLayers/lib/OpenLayers/Format/WMSDescribeLayer/v1_1.js
  89. 566
      dlf/lib/OpenLayers/lib/OpenLayers/Format/WMSGetFeatureInfo.js
  90. 1760
      dlf/lib/OpenLayers/lib/OpenLayers/Format/XML.js
  91. 910
      dlf/lib/OpenLayers/lib/OpenLayers/Geometry.js
  92. 998
      dlf/lib/OpenLayers/lib/OpenLayers/Geometry/Collection.js
  93. 184
      dlf/lib/OpenLayers/lib/OpenLayers/Geometry/Curve.js
  94. 1102
      dlf/lib/OpenLayers/lib/OpenLayers/Geometry/LineString.js
  95. 832
      dlf/lib/OpenLayers/lib/OpenLayers/Geometry/LinearRing.js
  96. 522
      dlf/lib/OpenLayers/lib/OpenLayers/Geometry/MultiLineString.js
  97. 138
      dlf/lib/OpenLayers/lib/OpenLayers/Geometry/MultiPoint.js
  98. 90
      dlf/lib/OpenLayers/lib/OpenLayers/Geometry/MultiPolygon.js
  99. 564
      dlf/lib/OpenLayers/lib/OpenLayers/Geometry/Point.js
  100. 516
      dlf/lib/OpenLayers/lib/OpenLayers/Geometry/Polygon.js
  101. Some files were not shown because too many files have changed in this diff Show More

22
dlf/cli/class.tx_dlf_cli.php

@ -1,6 +1,6 @@
<?php
/***************************************************************
* Copyright notice
* Copyright notice
*
* (c) 2012 Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* All rights reserved
@ -74,9 +74,9 @@ class tx_dlf_cli extends t3lib_cli {
// ...and save it to the database...
if (!$doc->save(intval($this->cli_args['-pid'][0]), intval($this->cli_args['-core'][0]))) {
$this->cli_echo('ERROR: Document '.$this->cli_args['-doc'][0].' not saved and indexed'.LF, TRUE);
exit (1);
$this->cli_echo('ERROR: Document '.$this->cli_args['-doc'][0].' not saved and indexed'.LF, TRUE);
exit (1);
}
@ -106,13 +106,13 @@ class tx_dlf_cli extends t3lib_cli {
// Set basic information about the script.
$this->cli_help = array (
'name' => 'Command Line Interface for Goobi.Presentation',
'synopsis' => '###OPTIONS###',
'description' => 'Currently the only task available is "index".'.LF.'Try "/PATH/TO/TYPO3/cli_dispatch.phpsh dlf index" to view more options.',
'examples' => '/PATH/TO/TYPO3/cli_dispatch.phpsh dlf TASK -ARG1=VALUE1 -ARG2=VALUE2',
'options' => '',
'license' => 'GNU GPL - free software!',
'author' => 'Sebastian Meyer <sebastian.meyer@slub-dresden.de>',
'name' => 'Command Line Interface for Goobi.Presentation',
'synopsis' => '###OPTIONS###',
'description' => 'Currently the only task available is "index".'.LF.'Try "/PATH/TO/TYPO3/cli_dispatch.phpsh dlf index" to view more options.',
'examples' => '/PATH/TO/TYPO3/cli_dispatch.phpsh dlf TASK -ARG1=VALUE1 -ARG2=VALUE2',
'options' => '',
'license' => 'GNU GPL - free software!',
'author' => 'Sebastian Meyer <sebastian.meyer@slub-dresden.de>',
);
// Run parent constructor.

22
dlf/common/class.tx_dlf_format.php

@ -1,6 +1,6 @@
<?php
/***************************************************************
* Copyright notice
* Copyright notice
*
* (c) 2011 Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* All rights reserved
@ -28,14 +28,14 @@
/**
* Interface 'tx_dlf_format' for the 'dlf' extension.
*
* @author Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* @copyright Copyright (c) 2011, Sebastian Meyer, SLUB Dresden
* @package TYPO3
* @subpackage tx_dlf
* @access public
* @abstract
*/
*
* @author Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* @copyright Copyright (c) 2011, Sebastian Meyer, SLUB Dresden
* @package TYPO3
* @subpackage tx_dlf
* @access public
* @abstract
*/
interface tx_dlf_format {
/**
@ -53,8 +53,8 @@ interface tx_dlf_format {
}
/* No xclasses for interfaces!
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dlf/common/class.tx_dlf_format.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dlf/common/class.tx_dlf_format.php']);
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dlf/common/class.tx_dlf_format.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dlf/common/class.tx_dlf_format.php']);
}
*/

16
dlf/common/class.tx_dlf_mods.php

@ -1,6 +1,6 @@
<?php
/***************************************************************
* Copyright notice
* Copyright notice
*
* (c) 2011 Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* All rights reserved
@ -28,13 +28,13 @@
/**
* Metadata format class 'tx_dlf_mods' for the 'dlf' extension.
*
* @author Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* @copyright Copyright (c) 2011, Sebastian Meyer, SLUB Dresden
* @package TYPO3
* @subpackage tx_dlf
* @access public
*/
*
* @author Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* @copyright Copyright (c) 2011, Sebastian Meyer, SLUB Dresden
* @package TYPO3
* @subpackage tx_dlf
* @access public
*/
class tx_dlf_mods implements tx_dlf_format {
/**

58
dlf/common/class.tx_dlf_module.php

@ -1,6 +1,6 @@
<?php
/***************************************************************
* Copyright notice
* Copyright notice
*
* (c) 2011 Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* All rights reserved
@ -28,14 +28,14 @@
/**
* Base class 'tx_dlf_module' for the 'dlf' extension.
*
* @author Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* @copyright Copyright (c) 2011, Sebastian Meyer, SLUB Dresden
* @package TYPO3
* @subpackage tx_dlf
* @access public
* @abstract
*/
*
* @author Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* @copyright Copyright (c) 2011, Sebastian Meyer, SLUB Dresden
* @package TYPO3
* @subpackage tx_dlf
* @access public
* @abstract
*/
abstract class tx_dlf_module extends t3lib_SCbase {
public $extKey = 'dlf';
@ -129,7 +129,7 @@ abstract class tx_dlf_module extends t3lib_SCbase {
$this->doc->bodyTagAdditions = 'class="ext-'.$this->extKey.'-modules"';
$this->doc->form = '<form action="" method="post" enctype="multipart/form-data">';
$this->doc->form = '<form action="" method="post" enctype="multipart/form-data">';
$this->data = t3lib_div::_GPmerged($this->prefixId);
@ -147,13 +147,13 @@ abstract class tx_dlf_module extends t3lib_SCbase {
// Set $this->MOD_MENU array here or leave empty.
/* Example code:
$this->MOD_MENU = array (
'function' => array (
'1' => $GLOBALS['LANG']->getLL('function1'),
'2' => $GLOBALS['LANG']->getLL('function2'),
'3' => $GLOBALS['LANG']->getLL('function3'),
)
); */
$this->MOD_MENU = array (
'function' => array (
'1' => $GLOBALS['LANG']->getLL('function1'),
'2' => $GLOBALS['LANG']->getLL('function2'),
'3' => $GLOBALS['LANG']->getLL('function3'),
)
); */
}
@ -179,19 +179,19 @@ abstract class tx_dlf_module extends t3lib_SCbase {
// Add Javascript for function menu.
$this->doc->JScode .= '
<script type="text/javascript">
script_ended = 0;
function jumpToUrl(URL) {
document.location = URL;
}
</script>
';
<script type="text/javascript">
script_ended = 0;
function jumpToUrl(URL) {
document.location = URL;
}
</script>
';
// Add Javascript for convenient module switch.
$this->doc->postCode .= '
<script type="text/javascript">
script_ended = 1;
</script>
<script type="text/javascript">
script_ended = 1;
</script>
';
// Render output.
@ -233,8 +233,8 @@ abstract class tx_dlf_module extends t3lib_SCbase {
}
/* No xclasses for abstract classes!
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dlf/common/class.tx_dlf_module.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dlf/common/class.tx_dlf_module.php']);
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dlf/common/class.tx_dlf_module.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dlf/common/class.tx_dlf_module.php']);
}
*/

34
dlf/common/class.tx_dlf_plugin.php

@ -1,6 +1,6 @@
<?php
/***************************************************************
* Copyright notice
* Copyright notice
*
* (c) 2011 Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* All rights reserved
@ -28,14 +28,14 @@
/**
* Base class 'tx_dlf_plugin' for the 'dlf' extension.
*
* @author Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* @copyright Copyright (c) 2011, Sebastian Meyer, SLUB Dresden
* @package TYPO3
* @subpackage tx_dlf
* @access public
* @abstract
*/
*
* @author Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* @copyright Copyright (c) 2011, Sebastian Meyer, SLUB Dresden
* @package TYPO3
* @subpackage tx_dlf
* @access public
* @abstract
*/
abstract class tx_dlf_plugin extends tslib_pibase {
public $extKey = 'dlf';
@ -170,12 +170,12 @@ abstract class tx_dlf_plugin extends tslib_pibase {
// Get UID of document with given record identifier.
$result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
'tx_dlf_documents.uid',
'tx_dlf_documents',
'tx_dlf_documents.record_id='.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->piVars['recordId'], 'tx_dlf_documents').tx_dlf_helper::whereClause('tx_dlf_documents'),
'',
'',
'1'
'tx_dlf_documents.uid',
'tx_dlf_documents',
'tx_dlf_documents.record_id='.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->piVars['recordId'], 'tx_dlf_documents').tx_dlf_helper::whereClause('tx_dlf_documents'),
'',
'',
'1'
);
if ($GLOBALS['TYPO3_DB']->sql_num_rows($result) == 1) {
@ -304,8 +304,8 @@ abstract class tx_dlf_plugin extends tslib_pibase {
}
/* No xclasses for abstract classes!
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dlf/common/class.tx_dlf_plugin.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dlf/common/class.tx_dlf_plugin.php']);
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dlf/common/class.tx_dlf_plugin.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dlf/common/class.tx_dlf_plugin.php']);
}
*/

27
dlf/common/class.tx_dlf_solr.php

@ -1,6 +1,6 @@
<?php
/***************************************************************
* Copyright notice
* Copyright notice
*
* (c) 2011 Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* All rights reserved
@ -24,18 +24,18 @@
// TODO: Clean up and reduce code duplication. Consider switching to Solarium.
/**
* [CLASS/FUNCTION INDEX of SCRIPT]
*/
*/
/**
* Solr class 'tx_dlf_solr' for the 'dlf' extension.
*
* @author Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* @author Henrik Lochmann <dev@mentalmotive.com>
* @copyright Copyright (c) 2011, Sebastian Meyer, SLUB Dresden
* @package TYPO3
* @subpackage tx_dlf
* @access public
*/
*
* @author Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* @author Henrik Lochmann <dev@mentalmotive.com>
* @copyright Copyright (c) 2011, Sebastian Meyer, SLUB Dresden
* @package TYPO3
* @subpackage tx_dlf
* @access public
*/
class tx_dlf_solr {
/**
@ -185,13 +185,14 @@ class tx_dlf_solr {
*
* @access protected
*/
protected function __construct() {}
protected function __construct() {
}
}
/* No xclasses for static classes!
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dlf/common/class.tx_dlf_solr.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dlf/common/class.tx_dlf_solr.php']);
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dlf/common/class.tx_dlf_solr.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dlf/common/class.tx_dlf_solr.php']);
}
*/

9062
dlf/doc/METS_Anwendungsprofil_2.0.xml

File diff suppressed because it is too large Load Diff

8935
dlf/doc/METS_Application_Profile_2.0.xml

File diff suppressed because it is too large Load Diff

62
dlf/ext_autoload.php

@ -1,6 +1,6 @@
<?php
/***************************************************************
* Copyright notice
* Copyright notice
*
* (c) 2011 Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* All rights reserved
@ -25,36 +25,36 @@
$extensionPath = t3lib_extMgm::extPath('dlf');
return array (
'tx_dlf_cli' => $extensionPath.'cli/class.tx_dlf_cli.php',
'tx_dlf_document' => $extensionPath.'common/class.tx_dlf_document.php',
'tx_dlf_format' => $extensionPath.'common/class.tx_dlf_format.php',
'tx_dlf_helper' => $extensionPath.'common/class.tx_dlf_helper.php',
'tx_dlf_indexing' => $extensionPath.'common/class.tx_dlf_indexing.php',
'tx_dlf_list' => $extensionPath.'common/class.tx_dlf_list.php',
'tx_dlf_mods' => $extensionPath.'common/class.tx_dlf_mods.php',
'tx_dlf_module' => $extensionPath.'common/class.tx_dlf_module.php',
'tx_dlf_plugin' => $extensionPath.'common/class.tx_dlf_plugin.php',
'tx_dlf_solr' => $extensionPath.'common/class.tx_dlf_solr.php',
'tx_dlf_em' => $extensionPath.'hooks/class.tx_dlf_em.php',
'tx_dlf_hacks' => $extensionPath.'hooks/class.tx_dlf_hacks.php',
'tx_dlf_tceforms' => $extensionPath.'hooks/class.tx_dlf_tceforms.php',
'tx_dlf_tcemain' => $extensionPath.'hooks/class.tx_dlf_tcemain.php',
'tx_dlf_modIndexing' => $extensionPath.'modules/indexing/index.php',
'tx_dlf_modNewclient' => $extensionPath.'modules/newclient/index.php',
'tx_dlf_collection' => $extensionPath.'plugins/collection/class.tx_dlf_collection.php',
'tx_dlf_feeds' => $extensionPath.'plugins/feeds/class.tx_dlf_feeds.php',
'tx_dlf_listview' => $extensionPath.'plugins/listview/class.tx_dlf_listview.php',
'tx_dlf_metadata' => $extensionPath.'plugins/metadata/class.tx_dlf_metadata.php',
'tx_dlf_navigation' => $extensionPath.'plugins/navigation/class.tx_dlf_navigation.php',
'tx_dlf_oai' => $extensionPath.'plugins/oai/class.tx_dlf_oai.php',
'tx_dlf_pageview' => $extensionPath.'plugins/pageview/class.tx_dlf_pageview.php',
'tx_dlf_search' => $extensionPath.'plugins/search/class.tx_dlf_search.php',
'tx_dlf_search_suggest' => $extensionPath.'plugins/search/class.tx_dlf_search_suggest.php',
'tx_dlf_statistics' => $extensionPath.'plugins/statistics/class.tx_dlf_statistics.php',
'tx_dlf_toc' => $extensionPath.'plugins/toc/class.tx_dlf_toc.php',
'tx_dlf_toolbox' => $extensionPath.'plugins/toolbox/class.tx_dlf_toolbox.php',
'tx_dlf_toolsDfgviewer' => $extensionPath.'plugins/toolbox/tools/dfgviewer/class.tx_dlf_toolsDfgviewer.php',
'tx_dlf_toolsPdf' => $extensionPath.'plugins/toolbox/tools/pdf/class.tx_dlf_toolsPdf.php'
'tx_dlf_cli' => $extensionPath.'cli/class.tx_dlf_cli.php',
'tx_dlf_document' => $extensionPath.'common/class.tx_dlf_document.php',
'tx_dlf_format' => $extensionPath.'common/class.tx_dlf_format.php',
'tx_dlf_helper' => $extensionPath.'common/class.tx_dlf_helper.php',
'tx_dlf_indexing' => $extensionPath.'common/class.tx_dlf_indexing.php',
'tx_dlf_list' => $extensionPath.'common/class.tx_dlf_list.php',
'tx_dlf_mods' => $extensionPath.'common/class.tx_dlf_mods.php',
'tx_dlf_module' => $extensionPath.'common/class.tx_dlf_module.php',
'tx_dlf_plugin' => $extensionPath.'common/class.tx_dlf_plugin.php',
'tx_dlf_solr' => $extensionPath.'common/class.tx_dlf_solr.php',
'tx_dlf_em' => $extensionPath.'hooks/class.tx_dlf_em.php',
'tx_dlf_hacks' => $extensionPath.'hooks/class.tx_dlf_hacks.php',
'tx_dlf_tceforms' => $extensionPath.'hooks/class.tx_dlf_tceforms.php',
'tx_dlf_tcemain' => $extensionPath.'hooks/class.tx_dlf_tcemain.php',
'tx_dlf_modIndexing' => $extensionPath.'modules/indexing/index.php',
'tx_dlf_modNewclient' => $extensionPath.'modules/newclient/index.php',
'tx_dlf_collection' => $extensionPath.'plugins/collection/class.tx_dlf_collection.php',
'tx_dlf_feeds' => $extensionPath.'plugins/feeds/class.tx_dlf_feeds.php',
'tx_dlf_listview' => $extensionPath.'plugins/listview/class.tx_dlf_listview.php',
'tx_dlf_metadata' => $extensionPath.'plugins/metadata/class.tx_dlf_metadata.php',
'tx_dlf_navigation' => $extensionPath.'plugins/navigation/class.tx_dlf_navigation.php',
'tx_dlf_oai' => $extensionPath.'plugins/oai/class.tx_dlf_oai.php',
'tx_dlf_pageview' => $extensionPath.'plugins/pageview/class.tx_dlf_pageview.php',
'tx_dlf_search' => $extensionPath.'plugins/search/class.tx_dlf_search.php',
'tx_dlf_search_suggest' => $extensionPath.'plugins/search/class.tx_dlf_search_suggest.php',
'tx_dlf_statistics' => $extensionPath.'plugins/statistics/class.tx_dlf_statistics.php',
'tx_dlf_toc' => $extensionPath.'plugins/toc/class.tx_dlf_toc.php',
'tx_dlf_toolbox' => $extensionPath.'plugins/toolbox/class.tx_dlf_toolbox.php',
'tx_dlf_toolsDfgviewer' => $extensionPath.'plugins/toolbox/tools/dfgviewer/class.tx_dlf_toolsDfgviewer.php',
'tx_dlf_toolsPdf' => $extensionPath.'plugins/toolbox/tools/pdf/class.tx_dlf_toolsPdf.php'
);
?>

60
dlf/ext_emconf.php

@ -1,6 +1,6 @@
<?php
/***************************************************************
* Copyright notice
* Copyright notice
*
* (c) 2011 Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* All rights reserved
@ -23,36 +23,36 @@
***************************************************************/
$EM_CONF[$_EXTKEY] = array(
'title' => 'Goobi.Presentation',
'description' => 'Base plugins, modules, services and API of the Digital Library Framework. It is part of the community-based Goobi Digitization Suite.',
'category' => 'fe',
'author' => 'Sebastian Meyer',
'author_email' => 'sebastian.meyer@slub-dresden.de',
'author_company' => '<br /><a href="http://www.slub-dresden.de/en/" target="_blank">Saxon State and University Library Dresden</a><br /><a href="https://launchpad.net/goobi" target="_blank">The Goobi Community</a>',
'shy' => '',
'priority' => '',
'module' => '',
'state' => 'stable',
'internal' => '',
'uploadfolder' => TRUE,
'createDirs' => '',
'modify_tables' => '',
'clearCacheOnLoad' => FALSE,
'lockType' => '',
'version' => '1.1.1',
'constraints' => array(
'depends' => array(
'php' => '5.3.0-',
'typo3' => '4.5.0-',
'title' => 'Goobi.Presentation',
'description' => 'Base plugins, modules, services and API of the Digital Library Framework. It is part of the community-based Goobi Digitization Suite.',
'category' => 'fe',
'author' => 'Sebastian Meyer',
'author_email' => 'sebastian.meyer@slub-dresden.de',
'author_company' => '<br /><a href="http://www.slub-dresden.de/en/" target="_blank">Saxon State and University Library Dresden</a><br /><a href="https://launchpad.net/goobi" target="_blank">The Goobi Community</a>',
'shy' => '',
'priority' => '',
'module' => '',
'state' => 'stable',
'internal' => '',
'uploadfolder' => TRUE,
'createDirs' => '',
'modify_tables' => '',
'clearCacheOnLoad' => FALSE,
'lockType' => '',
'version' => '1.1.1',
'constraints' => array(
'depends' => array(
'php' => '5.3.0-',
'typo3' => '4.5.0-',
),
'conflicts' => array(
),
'suggests' => array(
'realurl' => '',
't3jquery' => '2.1.2-',
),
),
'conflicts' => array(
),
'suggests' => array(
'realurl' => '',
't3jquery' => '2.1.2-',
),
),
'_md5_values_when_last_written' => '',
'_md5_values_when_last_written' => '',
);
?>

2
dlf/ext_localconf.php

@ -1,6 +1,6 @@
<?php
/***************************************************************
* Copyright notice
* Copyright notice
*
* (c) 2011 Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* All rights reserved

292
dlf/ext_tables.php

@ -1,6 +1,6 @@
<?php
/***************************************************************
* Copyright notice
* Copyright notice
*
* (c) 2011 Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* All rights reserved
@ -26,173 +26,173 @@ if (!defined ('TYPO3_MODE')) die ('Access denied.');
// Register database tables.
$TCA['tx_dlf_documents'] = array (
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents',
'label' => 'title',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'default_sortby' => 'ORDER BY title_sorting',
'delete' => 'deleted',
'enablecolumns' => array (
'disabled' => 'hidden',
'fe_group' => 'fe_group',
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents',
'label' => 'title',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'default_sortby' => 'ORDER BY title_sorting',
'delete' => 'deleted',
'enablecolumns' => array (
'disabled' => 'hidden',
'fe_group' => 'fe_group',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'res/icons/txdlfdocuments.png',
'rootLevel' => 0,
'dividers2tabs' => 2,
'searchFields' => 'title,volume,author,year,place,uid,prod_id,location,oai_id,opac_id,union_id,urn',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'res/icons/txdlfdocuments.png',
'rootLevel' => 0,
'dividers2tabs' => 2,
'searchFields' => 'title,volume,author,year,place,uid,prod_id,location,oai_id,opac_id,union_id,urn',
),
'feInterface' => array (
'fe_admin_fieldList' => '',
)
'feInterface' => array (
'fe_admin_fieldList' => '',
)
);
$TCA['tx_dlf_structures'] = array (
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_structures',
'label' => 'label',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'default_sortby' => 'ORDER BY label',
'delete' => 'deleted',
'enablecolumns' => array (
'disabled' => 'hidden',
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_structures',
'label' => 'label',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'default_sortby' => 'ORDER BY label',
'delete' => 'deleted',
'enablecolumns' => array (
'disabled' => 'hidden',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'res/icons/txdlfstructures.png',
'rootLevel' => 0,
'dividers2tabs' => 2,
'searchFields' => 'label,index_name,oai_name',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'res/icons/txdlfstructures.png',
'rootLevel' => 0,
'dividers2tabs' => 2,
'searchFields' => 'label,index_name,oai_name',
),
'feInterface' => array (
'fe_admin_fieldList' => '',
)
'feInterface' => array (
'fe_admin_fieldList' => '',
)
);
$TCA['tx_dlf_metadata'] = array (
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata',
'label' => 'label',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'sortby' => 'sorting',
'delete' => 'deleted',
'enablecolumns' => array (
'disabled' => 'hidden',
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata',
'label' => 'label',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'sortby' => 'sorting',
'delete' => 'deleted',
'enablecolumns' => array (
'disabled' => 'hidden',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'res/icons/txdlfmetadata.png',
'rootLevel' => 0,
'dividers2tabs' => 2,
'searchFields' => 'label,index_name,encoding,xpath,xpath_sorting,default',
'requestUpdate' => 'is_sortable',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'res/icons/txdlfmetadata.png',
'rootLevel' => 0,
'dividers2tabs' => 2,
'searchFields' => 'label,index_name,encoding,xpath,xpath_sorting,default',
'requestUpdate' => 'is_sortable',
),
'feInterface' => array (
'fe_admin_fieldList' => '',
)
'feInterface' => array (
'fe_admin_fieldList' => '',
)
);
$TCA['tx_dlf_formats'] = array (
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats',
'label' => 'type',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'default_sortby' => 'ORDER BY type',
'delete' => 'deleted',
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'res/icons/txdlfformats.png',
'rootLevel' => 1,
'dividers2tabs' => 2,
'searchFields' => 'type,class',
),
'feInterface' => array (
'fe_admin_fieldList' => '',
)
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats',
'label' => 'type',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'default_sortby' => 'ORDER BY type',
'delete' => 'deleted',
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'res/icons/txdlfformats.png',
'rootLevel' => 1,
'dividers2tabs' => 2,
'searchFields' => 'type,class',
),
'feInterface' => array (
'fe_admin_fieldList' => '',
)
);
$TCA['tx_dlf_solrcores'] = array (
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_solrcores',
'label' => 'label',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'default_sortby' => 'ORDER BY label',
'delete' => 'deleted',
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'res/icons/txdlfsolrcores.png',
'rootLevel' => -1,
'adminOnly' => 1,
'dividers2tabs' => 2,
'searchFields' => 'label,index_name',
),
'feInterface' => array (
'fe_admin_fieldList' => '',
)
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_solrcores',
'label' => 'label',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'default_sortby' => 'ORDER BY label',
'delete' => 'deleted',
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'res/icons/txdlfsolrcores.png',
'rootLevel' => -1,
'adminOnly' => 1,
'dividers2tabs' => 2,
'searchFields' => 'label,index_name',
),
'feInterface' => array (
'fe_admin_fieldList' => '',
)
);
$TCA['tx_dlf_collections'] = array (
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections',
'label' => 'label',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'fe_cruser_id' => 'fe_cruser_id',
'fe_admin_lock' => 'fe_admin_lock',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'default_sortby' => 'ORDER BY label',
'delete' => 'deleted',
'enablecolumns' => array (
'disabled' => 'hidden',
'fe_group' => 'fe_group',
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections',
'label' => 'label',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'fe_cruser_id' => 'fe_cruser_id',
'fe_admin_lock' => 'fe_admin_lock',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'default_sortby' => 'ORDER BY label',
'delete' => 'deleted',
'enablecolumns' => array (
'disabled' => 'hidden',
'fe_group' => 'fe_group',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'res/icons/txdlfcollections.png',
'rootLevel' => 0,
'dividers2tabs' => 2,
'searchFields' => 'label,index_name,oai_name,fe_cruser_id',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'res/icons/txdlfcollections.png',
'rootLevel' => 0,
'dividers2tabs' => 2,
'searchFields' => 'label,index_name,oai_name,fe_cruser_id',
),
'feInterface' => array (
'fe_admin_fieldList' => 'label,description,documents',
)
'feInterface' => array (
'fe_admin_fieldList' => 'label,description,documents',
)
);
$TCA['tx_dlf_libraries'] = array (
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries',
'label' => 'label',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'default_sortby' => 'ORDER BY label',
'delete' => 'deleted',
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'res/icons/txdlflibraries.png',
'rootLevel' => 0,
'dividers2tabs' => 2,
'searchFields' => 'label,website,contact',
),
'feInterface' => array (
'fe_admin_fieldList' => '',
)
'ctrl' => array (
'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries',
'label' => 'label',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'default_sortby' => 'ORDER BY label',
'delete' => 'deleted',
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'res/icons/txdlflibraries.png',
'rootLevel' => 0,
'dividers2tabs' => 2,
'searchFields' => 'label,website,contact',
),
'feInterface' => array (
'fe_admin_fieldList' => '',
)
);
// Register static typoscript.

308
dlf/hooks/class.tx_dlf_em.php

@ -1,6 +1,6 @@
<?php
/***************************************************************
* Copyright notice
* Copyright notice
*
* (c) 2011 Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* All rights reserved
@ -28,13 +28,13 @@
/**
* Hooks and helper for the extension manager.
*
* @author Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* @copyright Copyright (c) 2011, Sebastian Meyer, SLUB Dresden
* @package TYPO3
* @subpackage tx_dlf
* @access public
*/
*
* @author Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* @copyright Copyright (c) 2011, Sebastian Meyer, SLUB Dresden
* @package TYPO3
* @subpackage tx_dlf
* @access public
*/
class tx_dlf_em {
/**
@ -84,10 +84,10 @@ class tx_dlf_em {
$url = 'http://'.$host.':'.$port.'/'.$path.'admin/cores';
$context = stream_context_create(array (
'http' => array (
'method' => 'GET',
'user_agent' => (!empty($conf['useragent']) ? $conf['useragent'] : ini_get('user_agent'))
)
'http' => array (
'method' => 'GET',
'user_agent' => (!empty($conf['useragent']) ? $conf['useragent'] : ini_get('user_agent'))
)
));
// Try to connect to Solr server.
@ -101,11 +101,11 @@ class tx_dlf_em {
if (is_array($status)) {
$message = t3lib_div::makeInstance(
't3lib_FlashMessage',
sprintf($GLOBALS['LANG']->getLL('solr.status'), (string) $status[0]),
$GLOBALS['LANG']->getLL('solr.connected'),
($status[0] == 0 ? t3lib_FlashMessage::OK : t3lib_FlashMessage::WARNING),
FALSE
't3lib_FlashMessage',
sprintf($GLOBALS['LANG']->getLL('solr.status'), (string) $status[0]),
$GLOBALS['LANG']->getLL('solr.connected'),
($status[0] == 0 ? t3lib_FlashMessage::OK : t3lib_FlashMessage::WARNING),
FALSE
);
$this->content .= $message->render();
@ -117,11 +117,11 @@ class tx_dlf_em {
}
$message = t3lib_div::makeInstance(
't3lib_FlashMessage',
sprintf($GLOBALS['LANG']->getLL('solr.error'), $url),
$GLOBALS['LANG']->getLL('solr.notConnected'),
t3lib_FlashMessage::WARNING,
FALSE
't3lib_FlashMessage',
sprintf($GLOBALS['LANG']->getLL('solr.error'), $url),
$GLOBALS['LANG']->getLL('solr.notConnected'),
t3lib_FlashMessage::WARNING,
FALSE
);
$this->content .= $message->render();
@ -147,9 +147,9 @@ class tx_dlf_em {
// Check if user "_cli_dlf" exists, is no admin and is not disabled.
$result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
'uid,admin,usergroup',
'be_users',
'username='.$GLOBALS['TYPO3_DB']->fullQuoteStr('_cli_dlf', 'be_users').t3lib_BEfunc::deleteClause('be_users')
'uid,admin,usergroup',
'be_users',
'username='.$GLOBALS['TYPO3_DB']->fullQuoteStr('_cli_dlf', 'be_users').t3lib_BEfunc::deleteClause('be_users')
);
if ($GLOBALS['TYPO3_DB']->sql_num_rows($result) > 0) {
@ -161,24 +161,24 @@ class tx_dlf_em {
// Check if user is not disabled.
$_result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
'1',
'be_users',
'uid='.intval($resArray['uid']).t3lib_BEfunc::BEenableFields('be_users')
'1',
'be_users',
'uid='.intval($resArray['uid']).t3lib_BEfunc::BEenableFields('be_users')
);
// Check if user is configured properly.
if (count(array_diff(array ($groupUid), $resArray['usergroup'])) == 0
&& !$resArray['admin']
&& $GLOBALS['TYPO3_DB']->sql_num_rows($_result) > 0) {
&& !$resArray['admin']
&& $GLOBALS['TYPO3_DB']->sql_num_rows($_result) > 0) {
$usrUid = $resArray['uid'];
$message = t3lib_div::makeInstance(
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.usrOkayMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.usrOkay'),
t3lib_FlashMessage::OK,
FALSE
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.usrOkayMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.usrOkay'),
t3lib_FlashMessage::OK,
FALSE
);
} else {
@ -190,11 +190,11 @@ class tx_dlf_em {
// Try to configure user.
$data['be_users'][$resArray['uid']] = array (
'admin' => 0,
'usergroup' => implode(',', $_usergroup),
$GLOBALS['TCA']['be_users']['ctrl']['enablecolumns']['disabled'] => 0,
$GLOBALS['TCA']['be_users']['ctrl']['enablecolumns']['starttime'] => 0,
$GLOBALS['TCA']['be_users']['ctrl']['enablecolumns']['endtime'] => 0
'admin' => 0,
'usergroup' => implode(',', $_usergroup),
$GLOBALS['TCA']['be_users']['ctrl']['enablecolumns']['disabled'] => 0,
$GLOBALS['TCA']['be_users']['ctrl']['enablecolumns']['starttime'] => 0,
$GLOBALS['TCA']['be_users']['ctrl']['enablecolumns']['endtime'] => 0
);
tx_dlf_helper::processDB($data);
@ -205,21 +205,21 @@ class tx_dlf_em {
$usrUid = $resArray['uid'];
$message = t3lib_div::makeInstance(
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.usrConfiguredMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.usrConfigured'),
t3lib_FlashMessage::INFO,
FALSE
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.usrConfiguredMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.usrConfigured'),
t3lib_FlashMessage::INFO,
FALSE
);
} else {
$message = t3lib_div::makeInstance(
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.usrNotConfiguredMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.usrNotConfigured'),
t3lib_FlashMessage::ERROR,
FALSE
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.usrNotConfiguredMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.usrNotConfigured'),
t3lib_FlashMessage::ERROR,
FALSE
);
}
@ -227,11 +227,11 @@ class tx_dlf_em {
} else {
$message = t3lib_div::makeInstance(
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.usrNotConfiguredMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.usrNotConfigured'),
t3lib_FlashMessage::ERROR,
FALSE
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.usrNotConfiguredMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.usrNotConfigured'),
t3lib_FlashMessage::ERROR,
FALSE
);
}
@ -246,11 +246,11 @@ class tx_dlf_em {
$_tempUid = uniqid('NEW');
$data['be_users'][$_tempUid] = array (
'pid' => 0,
'username' => '_cli_dlf',
'password' => md5($_tempUid),
'realName' => $GLOBALS['LANG']->getLL('cliUserGroup.usrRealName'),
'usergroup' => intval($groupUid)
'pid' => 0,
'username' => '_cli_dlf',
'password' => md5($_tempUid),
'realName' => $GLOBALS['LANG']->getLL('cliUserGroup.usrRealName'),
'usergroup' => intval($groupUid)
);
$_substUid = tx_dlf_helper::processDB($data);
@ -261,21 +261,21 @@ class tx_dlf_em {
$usrUid = $_substUid[$_tempUid];
$message = t3lib_div::makeInstance(
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.usrCreatedMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.usrCreated'),
t3lib_FlashMessage::INFO,
FALSE
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.usrCreatedMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.usrCreated'),
t3lib_FlashMessage::INFO,
FALSE
);
} else {
$message = t3lib_div::makeInstance(
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.usrNotCreatedMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.usrNotCreated'),
t3lib_FlashMessage::ERROR,
FALSE
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.usrNotCreatedMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.usrNotCreated'),
t3lib_FlashMessage::ERROR,
FALSE
);
}
@ -283,11 +283,11 @@ class tx_dlf_em {
} else {
$message = t3lib_div::makeInstance(
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.usrNotCreatedMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.usrNotCreated'),
t3lib_FlashMessage::ERROR,
FALSE
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.usrNotCreatedMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.usrNotCreated'),
t3lib_FlashMessage::ERROR,
FALSE
);
}
@ -319,21 +319,21 @@ class tx_dlf_em {
if (empty($settings)) {
$settings = array (
'non_exclude_fields' => array (),
'tables_select' => array (
'tx_dlf_documents',
'tx_dlf_collections',
'tx_dlf_libraries',
'tx_dlf_structures',
'tx_dlf_metadata',
'tx_dlf_formats',
'tx_dlf_solrcores'
),
'tables_modify' => array (
'tx_dlf_documents',
'tx_dlf_collections',
'tx_dlf_libraries'
)
'non_exclude_fields' => array (),
'tables_select' => array (
'tx_dlf_documents',
'tx_dlf_collections',
'tx_dlf_libraries',
'tx_dlf_structures',
'tx_dlf_metadata',
'tx_dlf_formats',
'tx_dlf_solrcores'
),
'tables_modify' => array (
'tx_dlf_documents',
'tx_dlf_collections',
'tx_dlf_libraries'
)
);
// Set allowed exclude fields.
@ -357,9 +357,9 @@ class tx_dlf_em {
// Check if group "_cli_dlf" exists and is not disabled.
$result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
'uid,non_exclude_fields,tables_select,tables_modify,inc_access_lists,'.$GLOBALS['TCA']['be_groups']['ctrl']['enablecolumns']['disabled'],
'be_groups',
'title='.$GLOBALS['TYPO3_DB']->fullQuoteStr('_cli_dlf', 'be_groups').t3lib_BEfunc::deleteClause('be_groups')
'uid,non_exclude_fields,tables_select,tables_modify,inc_access_lists,'.$GLOBALS['TCA']['be_groups']['ctrl']['enablecolumns']['disabled'],
'be_groups',
'title='.$GLOBALS['TYPO3_DB']->fullQuoteStr('_cli_dlf', 'be_groups').t3lib_BEfunc::deleteClause('be_groups')
);
if ($GLOBALS['TYPO3_DB']->sql_num_rows($result) > 0) {
@ -375,19 +375,19 @@ class tx_dlf_em {
// Check if usergroup is configured properly.
if (count(array_diff($settings['non_exclude_fields'], $resArray['non_exclude_fields'])) == 0
&& count(array_diff($settings['tables_select'], $resArray['tables_select'])) == 0
&& count(array_diff($settings['tables_modify'], $resArray['tables_modify'])) == 0
&& $resArray['inc_access_lists'] == 1
&& $resArray[$GLOBALS['TCA']['be_groups']['ctrl']['enablecolumns']['disabled']] == 0) {
&& count(array_diff($settings['tables_select'], $resArray['tables_select'])) == 0
&& count(array_diff($settings['tables_modify'], $resArray['tables_modify'])) == 0
&& $resArray['inc_access_lists'] == 1
&& $resArray[$GLOBALS['TCA']['be_groups']['ctrl']['enablecolumns']['disabled']] == 0) {
$grpUid = $resArray['uid'];
$message = t3lib_div::makeInstance(
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.grpOkayMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.grpOkay'),
t3lib_FlashMessage::OK,
FALSE
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.grpOkayMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.grpOkay'),
t3lib_FlashMessage::OK,
FALSE
);
} else {
@ -403,11 +403,11 @@ class tx_dlf_em {
// Try to configure usergroup.
$data['be_groups'][$resArray['uid']] = array (
'non_exclude_fields' => implode(',', $_non_exclude_fields),
'tables_select' => implode(',', $_tables_select),
'tables_modify' => implode(',', $_tables_modify),
'inc_access_lists' => 1,
$GLOBALS['TCA']['be_groups']['ctrl']['enablecolumns']['disabled'] => 0
'non_exclude_fields' => implode(',', $_non_exclude_fields),
'tables_select' => implode(',', $_tables_select),
'tables_modify' => implode(',', $_tables_modify),
'inc_access_lists' => 1,
$GLOBALS['TCA']['be_groups']['ctrl']['enablecolumns']['disabled'] => 0
);
tx_dlf_helper::processDB($data);
@ -418,21 +418,21 @@ class tx_dlf_em {
$grpUid = $resArray['uid'];
$message = t3lib_div::makeInstance(
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.grpConfiguredMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.grpConfigured'),
t3lib_FlashMessage::INFO,
FALSE
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.grpConfiguredMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.grpConfigured'),
t3lib_FlashMessage::INFO,
FALSE
);
} else {
$message = t3lib_div::makeInstance(
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.grpNotConfiguredMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.grpNotConfigured'),
t3lib_FlashMessage::ERROR,
FALSE
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.grpNotConfiguredMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.grpNotConfigured'),
t3lib_FlashMessage::ERROR,
FALSE
);
}
@ -440,11 +440,11 @@ class tx_dlf_em {
} else {
$message = t3lib_div::makeInstance(
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.grpNotConfiguredMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.grpNotConfigured'),
t3lib_FlashMessage::ERROR,
FALSE
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.grpNotConfiguredMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.grpNotConfigured'),
t3lib_FlashMessage::ERROR,
FALSE
);
}
@ -459,13 +459,13 @@ class tx_dlf_em {
$_tempUid = uniqid('NEW');
$data['be_groups'][$_tempUid] = array (
'pid' => 0,
'title' => '_cli_dlf',
'description' => $GLOBALS['LANG']->getLL('cliUserGroup.grpDescription'),
'non_exclude_fields' => implode(',', $settings['non_exclude_fields']),
'tables_select' => implode(',', $settings['tables_select']),
'tables_modify' => implode(',', $settings['tables_modify']),
'inc_access_lists' => 1
'pid' => 0,
'title' => '_cli_dlf',
'description' => $GLOBALS['LANG']->getLL('cliUserGroup.grpDescription'),
'non_exclude_fields' => implode(',', $settings['non_exclude_fields']),
'tables_select' => implode(',', $settings['tables_select']),
'tables_modify' => implode(',', $settings['tables_modify']),
'inc_access_lists' => 1
);
$_substUid = tx_dlf_helper::processDB($data);
@ -476,21 +476,21 @@ class tx_dlf_em {
$grpUid = $_substUid[$_tempUid];
$message = t3lib_div::makeInstance(
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.grpCreatedMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.grpCreated'),
t3lib_FlashMessage::INFO,
FALSE
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.grpCreatedMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.grpCreated'),
t3lib_FlashMessage::INFO,
FALSE
);
} else {
$message = t3lib_div::makeInstance(
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.grpNotCreatedMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.grpNotCreated'),
t3lib_FlashMessage::ERROR,
FALSE
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.grpNotCreatedMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.grpNotCreated'),
t3lib_FlashMessage::ERROR,
FALSE
);
}
@ -498,11 +498,11 @@ class tx_dlf_em {
} else {
$message = t3lib_div::makeInstance(
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.grpNotCreatedMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.grpNotCreated'),
t3lib_FlashMessage::ERROR,
FALSE
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.grpNotCreatedMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.grpNotCreated'),
t3lib_FlashMessage::ERROR,
FALSE
);
}
@ -549,21 +549,21 @@ class tx_dlf_em {
if (is_executable(PATH_typo3.'cli_dispatch.phpsh')) {
$message = t3lib_div::makeInstance(
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.cliOkayMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.cliOkay'),
t3lib_FlashMessage::OK,
FALSE
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.cliOkayMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.cliOkay'),
t3lib_FlashMessage::OK,
FALSE
);
} else {
$message = t3lib_div::makeInstance(
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.cliNotOkayMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.cliNotOkay'),
t3lib_FlashMessage::ERROR,
FALSE
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('cliUserGroup.cliNotOkayMsg'),
$GLOBALS['LANG']->getLL('cliUserGroup.cliNotOkay'),
t3lib_FlashMessage::ERROR,
FALSE
);
}

16
dlf/hooks/class.tx_dlf_hacks.php

@ -1,6 +1,6 @@
<?php
/***************************************************************
* Copyright notice
* Copyright notice
*
* (c) 2011 Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* All rights reserved
@ -28,13 +28,13 @@
/**
* Hooks and hacks for Goobi.Production.
*
* @author Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* @copyright Copyright (c) 2011, Sebastian Meyer, SLUB Dresden
* @package TYPO3
* @subpackage tx_dlf
* @access public
*/
*
* @author Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* @copyright Copyright (c) 2011, Sebastian Meyer, SLUB Dresden
* @package TYPO3
* @subpackage tx_dlf
* @access public
*/
class tx_dlf_hacks {
/**

52
dlf/hooks/class.tx_dlf_tceforms.php

@ -1,6 +1,6 @@
<?php
/***************************************************************
* Copyright notice
* Copyright notice
*
* (c) 2011 Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* All rights reserved
@ -28,13 +28,13 @@
/**
* Hooks and helper for the 't3lib_TCEforms' library.
*
* @author Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* @copyright Copyright (c) 2011, Sebastian Meyer, SLUB Dresden
* @package TYPO3
* @subpackage tx_dlf
* @access public
*/
*
* @author Sebastian Meyer <sebastian.meyer@slub-dresden.de>
* @copyright Copyright (c) 2011, Sebastian Meyer, SLUB Dresden
* @package TYPO3
* @subpackage tx_dlf
* @access public
*/
class tx_dlf_tceforms {
/**
@ -68,12 +68,12 @@ class tx_dlf_tceforms {
if ($pages > 0) {
$result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
'label,uid',
'tx_dlf_collections',
'pid='.intval($pages).' AND (sys_language_uid IN (-1,0) OR l18n_parent=0)'.tx_dlf_helper::whereClause('tx_dlf_collections'),
'',
'label',
''
'label,uid',
'tx_dlf_collections',