From 2c297b5e1cc12e197c0eea262da2483bcdec0191 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 29 Mar 2016 07:59:20 +0200 Subject: [PATCH 01/10] take out javascript from html (Closes #253) --- styles/bootstrap/application.js | 3 +++ views/bootstrap/class.Bootstrap.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/styles/bootstrap/application.js b/styles/bootstrap/application.js index bd0da6354..220e326ed 100644 --- a/styles/bootstrap/application.js +++ b/styles/bootstrap/application.js @@ -382,6 +382,9 @@ $(document).ready( function() { }); }); + $('button.history-back').on('click', function(event) { + window.history.back(); + }); }); function onAddClipboard(ev) { /* {{{ */ diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 90580d2ee..7082cae33 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -1195,7 +1195,7 @@ $('#clearfilename').click(function(ev) { print "

".getMLText('error')."!

"; print htmlspecialchars($error); print ""; - print "
"; + print "
"; $this->contentEnd(); $this->htmlEndPage(); From 8ac0a99e09eb4f5bed658402cdf5d8b0fa38c3a4 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 29 Mar 2016 08:03:08 +0200 Subject: [PATCH 02/10] take out last empty line (Closes: #252, #254) causes a header to be send to early --- views/bootstrap/class.Search.php | 1 - 1 file changed, 1 deletion(-) diff --git a/views/bootstrap/class.Search.php b/views/bootstrap/class.Search.php index 7d0ebf530..023c2d0e6 100644 --- a/views/bootstrap/class.Search.php +++ b/views/bootstrap/class.Search.php @@ -628,4 +628,3 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style { } /* }}} */ } ?> - From ae1afe4c23e96c11ab5f8148665c41a829f26033 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 29 Mar 2016 08:12:20 +0200 Subject: [PATCH 03/10] set micro sec. of stream_select() to 200000 reduces cpu load if timeout was set to 0 --- SeedDMS_Lucene/Lucene/IndexedDocument.php | 2 +- SeedDMS_Preview/Preview/Previewer.php | 2 +- SeedDMS_SQLiteFTS/SQLiteFTS/IndexedDocument.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SeedDMS_Lucene/Lucene/IndexedDocument.php b/SeedDMS_Lucene/Lucene/IndexedDocument.php index c9d5c6a1e..2a90a39b1 100644 --- a/SeedDMS_Lucene/Lucene/IndexedDocument.php +++ b/SeedDMS_Lucene/Lucene/IndexedDocument.php @@ -42,7 +42,7 @@ class SeedDMS_Lucene_IndexedDocument extends Zend_Search_Lucene_Document { do { $timeleft = $timeout - time(); $read = array($pipes[1]); - stream_select($read, $write = NULL, $exeptions = NULL, $timeleft, NULL); + stream_select($read, $write = NULL, $exeptions = NULL, $timeleft, 200000); if (!empty($read)) { $output .= fread($pipes[1], 8192); diff --git a/SeedDMS_Preview/Preview/Previewer.php b/SeedDMS_Preview/Preview/Previewer.php index cc493c588..33160489f 100644 --- a/SeedDMS_Preview/Preview/Previewer.php +++ b/SeedDMS_Preview/Preview/Previewer.php @@ -75,7 +75,7 @@ class SeedDMS_Preview_Previewer { do { $timeleft = $timeout - time(); $read = array($pipes[1]); - stream_select($read, $write = NULL, $exeptions = NULL, $timeleft, NULL); + stream_select($read, $write = NULL, $exeptions = NULL, $timeleft, 200000); if (!empty($read)) { $output .= fread($pipes[1], 8192); diff --git a/SeedDMS_SQLiteFTS/SQLiteFTS/IndexedDocument.php b/SeedDMS_SQLiteFTS/SQLiteFTS/IndexedDocument.php index d28e254d0..5228570ca 100644 --- a/SeedDMS_SQLiteFTS/SQLiteFTS/IndexedDocument.php +++ b/SeedDMS_SQLiteFTS/SQLiteFTS/IndexedDocument.php @@ -47,7 +47,7 @@ class SeedDMS_SQLiteFTS_IndexedDocument extends SeedDMS_SQLiteFTS_Document { do { $timeleft = $timeout - time(); $read = array($pipes[1]); - stream_select($read, $write = NULL, $exeptions = NULL, $timeleft, NULL); + stream_select($read, $write = NULL, $exeptions = NULL, $timeleft, 200000); if (!empty($read)) { $output .= fread($pipes[1], 8192); From 634b9e86c420b0cdc74b24daac970dd914c659a0 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 29 Mar 2016 08:13:22 +0200 Subject: [PATCH 04/10] start new version 1.1.8 --- SeedDMS_Lucene/package.xml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/SeedDMS_Lucene/package.xml b/SeedDMS_Lucene/package.xml index b7dee2403..c37770104 100644 --- a/SeedDMS_Lucene/package.xml +++ b/SeedDMS_Lucene/package.xml @@ -11,10 +11,10 @@ uwe@steinmann.cx yes - 2016-02-01 - + 2016-03-29 + - 1.1.7 + 1.1.8 1.1.7 @@ -23,7 +23,7 @@ GPL License -add command for indexing postѕcript files +set last parameter of stream_select() to 200000 micro sec. in case the timeout in sec. is set to 0 @@ -202,5 +202,21 @@ declare SeeDMS_Lucene_Indexer::open() static run external commands with a timeout + + 2016-02-01 + + + 1.1.7 + 1.1.7 + + + stable + stable + + GPL License + +add command for indexing postѕcript files + + From 2bef65d6ff35f1fa55f59b2cd26489a756c849eb Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 29 Mar 2016 08:13:56 +0200 Subject: [PATCH 05/10] start new version 1.1.7 --- SeedDMS_Preview/package.xml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/SeedDMS_Preview/package.xml b/SeedDMS_Preview/package.xml index 3bf524a76..f2d964f76 100644 --- a/SeedDMS_Preview/package.xml +++ b/SeedDMS_Preview/package.xml @@ -11,11 +11,11 @@ uwe@steinmann.cx yes - 2016-03-08 - + 2016-03-29 + - 1.1.6 - 1.1.6 + 1.1.7 + 1.1.7 stable @@ -23,7 +23,7 @@ GPL License -check if object passed to createPreview(), hasPreview() is not null +set last parameter of stream_select() to 200000 micro sec. in case the timeout in sec. is set to 0 @@ -164,5 +164,21 @@ add method getFilesize() timeout for external commands can be passed to contructor of SeedDMS_Preview_Previewer + + 2016-03-08 + + + 1.1.6 + 1.1.6 + + + stable + stable + + GPL License + +check if object passed to createPreview(), hasPreview() is not null + + From da21b07a157445de36ae5d32513397cad6005a3b Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 29 Mar 2016 08:14:13 +0200 Subject: [PATCH 06/10] start new version 1.0.5 --- SeedDMS_SQLiteFTS/package.xml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/SeedDMS_SQLiteFTS/package.xml b/SeedDMS_SQLiteFTS/package.xml index 4425ba1ea..c55c1ced0 100644 --- a/SeedDMS_SQLiteFTS/package.xml +++ b/SeedDMS_SQLiteFTS/package.xml @@ -11,10 +11,10 @@ uwe@steinmann.cx yes - 2016-03-15 - + 2016-03-29 + - 1.0.4 + 1.0.5 1.0.1 @@ -23,7 +23,7 @@ GPL License -make it work with sqlite3 < 3.8.0 +set last parameter of stream_select() to 200000 micro sec. in case the timeout in sec. is set to 0 @@ -130,5 +130,21 @@ check if index exists before removing it when creating a new one add command for indexing postѕcript files + + 2016-03-15 + + + 1.0.4 + 1.0.1 + + + stable + stable + + GPL License + +make it work with sqlite3 < 3.8.0 + + From 24f300e8d5ee39b4187c8a6b9ebef5cf506898c1 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 29 Mar 2016 08:14:31 +0200 Subject: [PATCH 07/10] add changelog for 4.3.26 --- CHANGELOG | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 6b5d37625..e18236380 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,10 @@ +-------------------------------------------------------------------------------- + Changes in version 4.3.26 +-------------------------------------------------------------------------------- +- move some left over javascript from html code into application.js (Closes #253) +- take out last empty line from view/bootstrap/class.Search.php which causes a + header to be send to early (Closes: #252, #254) + -------------------------------------------------------------------------------- Changes in version 4.3.25 -------------------------------------------------------------------------------- From ebb53440dfc7364df3ab7345c8a0060b846bd83b Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 29 Mar 2016 08:32:32 +0200 Subject: [PATCH 08/10] remove some old code, mark code as deprecated --- views/bootstrap/class.Bootstrap.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 7082cae33..5f7187a2d 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -958,6 +958,10 @@ function folderSelected(id, name) {