Browse Source

Make unhiding of hidden documents configurable

tags/v1.2.0
Sebastian Meyer 10 years ago
parent
commit
42d4765858
  1. 12
      dlf/common/class.tx_dlf_document.php
  2. 3
      dlf/ext_conf_template.txt
  3. 6
      dlf/locallang.xml

12
dlf/common/class.tx_dlf_document.php

@ -1395,6 +1395,8 @@ final class tx_dlf_document {
// Fill data array.
$data['tx_dlf_documents'][$this->uid] = array (
'pid' => $pid,
$GLOBALS['TCA']['tx_dlf_documents']['ctrl']['enablecolumns']['starttime'] => 0,
$GLOBALS['TCA']['tx_dlf_documents']['ctrl']['enablecolumns']['endtime'] => 0,
'prod_id' => $metadata['prod_id'][0],
'record_id' => $metadata['record_id'][0],
'opac_id' => $metadata['opac_id'][0],
@ -1418,12 +1420,22 @@ final class tx_dlf_document {
'status' => 0,
);
// Set location.
if ($location) {
$data['tx_dlf_documents'][$this->uid]['location'] = $location;
}
// Unhide hidden documents.
$conf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$this->extKey]);
if (!empty($conf['unhideOnIndex'])) {
$data['tx_dlf_documents'][$this->uid][$GLOBALS['TCA']['tx_dlf_documents']['ctrl']['enablecolumns']['disabled']] = 0;
}
// Process data.
$newIds = tx_dlf_helper::processDB($data);

3
dlf/ext_conf_template.txt

@ -10,6 +10,9 @@ useragent = Goobi.Presentation
# cat=Basic; type=boolean; label=LLL:EXT:dlf/locallang.xml:config.caching
caching = 0
# cat=Basic; type=boolean; label=LLL:EXT:dlf/locallang.xml:config.unhideOnIndex
unhideOnIndex = 0
# cat=Files; type=string; label=LLL:EXT:dlf/locallang.xml:config.fileGrps
fileGrps = MIN,DEFAULT,MAX

6
dlf/locallang.xml

@ -119,9 +119,10 @@
<label index="config.cliUserGroup">CLI user/group</label>
<label index="config.makeCliUserGroup">Create and configure CLI user/group automatically?: (default is "FALSE")</label>
<label index="config.useragent">DLF User-Agent: (default is "Goobi.Presentation")</label>
<label index="config.caching">Cache parsed METS files: caching improves performance a little bit but can result in a very large "fe_session_data" table (default is "FALSE")</label>
<label index="config.unhideOnIndex">Unhide hidden documents when re-indexing?: (default is "FALSE")</label>
<label index="config.fileGrps">METS fileGrps: comma-separated list of @USE attribute values in ascending order (default is "MIN,DEFAULT,MAX")</label>
<label index="config.fileGrpThumbs">Thumbnail fileGrp: @USE attribute value (default is "THUMBS")</label>
<label index="config.caching">Cache parsed METS files: caching improves performance a little bit but can result in a very large "fe_session_data" table (default is "FALSE")</label>
<label index="config.solrConnect">Solr Connection</label>
<label index="config.solrHost">Solr Server Host: (default is "localhost")</label>
<label index="config.solrPort">Solr Server Port: (default is "8180")</label>
@ -273,9 +274,10 @@
<label index="config.cliUserGroup">CLI Benutzer/Gruppe</label>
<label index="config.makeCliUserGroup">CLI Benutzer/Gruppe automatisch anlegen?: (Standard ist "FALSE")</label>
<label index="config.useragent">DLF User-Agent: (Standard ist "Goobi.Presentation")</label>
<label index="config.caching">Eingelesene METS Dateien zwischenspeichern: Dies kann die Geschwindigkeit geringfügig verbessern, führt aber zu einer sehr großen "fe_session_data" Tabelle (Standard ist "FALSE")</label>
<label index="config.unhideOnIndex">Ausgeblendete Dokumente beim Re-Indexieren wieder einblenden?: (Standard ist "FALSE")</label>
<label index="config.fileGrps">METS fileGrps: Komma-getrennte Liste von @USE Attributwerten in aufsteigender Reihenfolge (Standard ist "MIN,DEFAULT,MAX")</label>
<label index="config.fileGrpThumbs">Vorschau fileGrp: @USE Attributwert der Vorschaubilder (Standard ist "THUMBS")</label>
<label index="config.caching">Eingelesene METS Dateien zwischenspeichern: Dies kann die Geschwindigkeit geringfügig verbessern, führt aber zu einer sehr großen "fe_session_data" Tabelle (Standard ist "FALSE")</label>
<label index="config.solrConnect">Solr Verbindung</label>
<label index="config.solrHost">Solr Server Host: (Standard ist "localhost")</label>
<label index="config.solrPort">Solr Server Port: (Standard ist "8180")</label>

Loading…
Cancel
Save