Enrico Cervato | 1 Apr 2010 15:21

JSP toolkit check if document exist (chapter 2)

Hy guys,

I would need to check in a jsp page if a document exists or not. I
would not want to do it with a previous DASL query; I would like to do
it in the jsp page.

I found this very interesting old thread in your mailing list [1] and
I would like to know if it is actually possible to have something
similar to the following snippet working:

<c:set var="testdoc"
value="${repository.fetchDocument['content/e-overheid/home1.xml']}"/>

<c:if test="${empty testdoc }">
NULL
</c:if>

[1] http://old.nabble.com/JSP-toolkit-check-if-document-exist-td16538945.html#

--

-- 
Enrico Cervato - 0031 (0)615293346
Open Source Software Engineer
Sourcesense - making sense of Open Source: http://www.sourcesense.com
********************************************
Hippocms-dev: Hippo CMS 6 development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html

(Continue reading)

Dirkjan van Diepen | 1 Apr 2010 16:00

Re: JSP toolkit check if document exist (chapter 2)

Hi Enrico,

It should be possible to retrieve a document (and also content en metadata)
like this:
<c:set var="document"
value="${repository.fetchDocument['/content/path/to/document/document.xml']}"
/>

When the document is not available, an error will be thrown. It's possible
to catch the
fetch statement in a <c:catch> for example. Then it should be possible to
check for
an empty document.

Regards Dirkjan
********************************************
Hippocms-dev: Hippo CMS 6 development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html

Enrico Cervato | 1 Apr 2010 16:05

how to extract PDF text into property?

Hi everybody,

When performing a DASL query I am retrieving also some PDF's from my
binaries folder. I would like to provide to video also an extract from
the text in the PDF's. Is that possible?

In the extractors.xml of my repository I already set the PDFExtractor.
Reading the [1], my understanding that is not a real extractor, it is
more an indexer. Therefore it will index the text contained in the PDF
but it will not extract it as a property.

>From [2] it seems that it is not possible to extract the text from PDF's.

I think it should be possible to do it somehow ... can you give me
some suggestions?
Thank you very much for your attention!

[1] http://old.nabble.com/Help-with-PDFExtractor-td26808675.html
[2] http://old.nabble.com/Show-content-of-a-pdf-document-td18647758.html

--

-- 
Enrico Cervato - 0031 (0)615293346
Open Source Software Engineer
Sourcesense - making sense of Open Source: http://www.sourcesense.com
********************************************
Hippocms-dev: Hippo CMS 6 development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
(Continue reading)

Enrico Cervato | 1 Apr 2010 16:25

Re: JSP toolkit check if document exist (chapter 2)

Hi Dirkjan,

Thank you very much for the suggestion! I actually did not know of the
existence of the catch tag in the core JSTL. Good to know for the
future :-)

Handling the potential exception I manage to do what I wanted.

Regards,
Enrico

On Thu, Apr 1, 2010 at 4:00 PM, Dirkjan van Diepen
<d.vandiepen <at> onehippo.com> wrote:
> Hi Enrico,
>
> It should be possible to retrieve a document (and also content en metadata)
> like this:
> <c:set var="document"
> value="${repository.fetchDocument['/content/path/to/document/document.xml']}"
> />
>
> When the document is not available, an error will be thrown. It's possible
> to catch the
> fetch statement in a <c:catch> for example. Then it should be possible to
> check for
> an empty document.
>
> Regards Dirkjan
> ********************************************
> Hippocms-dev: Hippo CMS 6 development public mailinglist
(Continue reading)

Ard Schrijvers | 1 Apr 2010 21:41

Re: how to extract PDF text into property?

Hello Enrico,

I think you should try to hook in the pdf extractor just like the
property extractors. The problem with the normal pdf (and also xml
extractor) is that they take place *after* the save, where extractors
that set properties are before the save. It is unlucky that they both
are called extractors.

Anyways, I think you should dive into the property extractors, and see
if you can do something similar for pdf's. For me it has unfortunately
been to long to know this

Regards Ard

On Thu, Apr 1, 2010 at 4:05 PM, Enrico Cervato
<e.cervato <at> sourcesense.com> wrote:
> Hi everybody,
>
> When performing a DASL query I am retrieving also some PDF's from my
> binaries folder. I would like to provide to video also an extract from
> the text in the PDF's. Is that possible?
>
> In the extractors.xml of my repository I already set the PDFExtractor.
> Reading the [1], my understanding that is not a real extractor, it is
> more an indexer. Therefore it will index the text contained in the PDF
> but it will not extract it as a property.
>
> >From [2] it seems that it is not possible to extract the text from PDF's.
>
> I think it should be possible to do it somehow ... can you give me
(Continue reading)

Enrico Cervato | 6 Apr 2010 15:47

Re: how to extract PDF text into property?

Hi Ard,

Thank you very much for your answer.

Only to be a 100% clear about the situation ... my understanding is
that there is no PDF (real) extractor for hippo CMS 6 at the moment.
So if I wanted to implement what I need I should write the extractor
myself. Does that correspond to the truth?

Thank you,
-- 
Enrico Cervato - 0031 (0)615293346
Open Source Software Engineer
Sourcesense - making sense of Open Source: http://www.sourcesense.com

On Thu, Apr 1, 2010 at 9:41 PM, Ard Schrijvers
<a.schrijvers <at> onehippo.com> wrote:
> Hello Enrico,
>
> I think you should try to hook in the pdf extractor just like the
> property extractors. The problem with the normal pdf (and also xml
> extractor) is that they take place *after* the save, where extractors
> that set properties are before the save. It is unlucky that they both
> are called extractors.
>
> Anyways, I think you should dive into the property extractors, and see
> if you can do something similar for pdf's. For me it has unfortunately
> been to long to know this
>
> Regards Ard
(Continue reading)

Ard Schrijvers | 6 Apr 2010 16:38

Re: how to extract PDF text into property?

there is a pdf extractor, but this one only runs during indexing, and
not for storing a property as you seem to want

Regards Ard

On Tue, Apr 6, 2010 at 3:47 PM, Enrico Cervato
<e.cervato <at> sourcesense.com> wrote:
> Hi Ard,
>
> Thank you very much for your answer.
>
> Only to be a 100% clear about the situation ... my understanding is
> that there is no PDF (real) extractor for hippo CMS 6 at the moment.
> So if I wanted to implement what I need I should write the extractor
> myself. Does that correspond to the truth?
>
> Thank you,
> --
> Enrico Cervato - 0031 (0)615293346
> Open Source Software Engineer
> Sourcesense - making sense of Open Source: http://www.sourcesense.com
>
>
>
>
> On Thu, Apr 1, 2010 at 9:41 PM, Ard Schrijvers
> <a.schrijvers <at> onehippo.com> wrote:
>> Hello Enrico,
>>
>> I think you should try to hook in the pdf extractor just like the
(Continue reading)

Wouter Zelle | 7 Apr 2010 10:47
Picon

Expanding the folderview

Hi,

I would like to expand the folderview by default. Currently users always
have to open a folder and then another folder inside that one. We would like
to get rid of those extra clicks. Perhaps by firing one or more events after
initialization? I have trouble finding the proper spot to make these
changes.

Regards,

Wouter Zelle
********************************************
Hippocms-dev: Hippo CMS 6 development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html

Jasha Joachimsthal | 23 Apr 2010 15:21
Gravatar

[ANN] Hippo CMS v6.05.10 released

We've created a new release of Hippo CMS 6, version 6.05.10

It contains two new features
- The sorting behaviour can differ when you change the index (order) of
documents
- The (default) ReviewedActions workflow supports renaming a file (and it's
URI)

Patches were applied for Italian translations.

For more information see [1]

The source code is available under the Apache Source License 2.0 from
our public SVN repository:
http://svn.hippocms.org/repos/hippo/hippo-cms/tags/Release-CMS-v6_05_10/

Kudos to all who helped to make the Hippo CMS 6 even better!

The Hippo CMS 6 development team

[1]
http://wiki.onehippo.com/display/CMS/Hippo+CMS+v6.05.09+to+v6.05.10+upgrade+path
********************************************
Hippocms-dev: Hippo CMS 6 development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html

(Continue reading)

Jeroen Reijn | 23 Apr 2010 16:34

Re: [ANN] Hippo CMS v6.05.10 released

Thanks Jasha!

Great work!

Jeroen

On Fri, Apr 23, 2010 at 3:21 PM, Jasha Joachimsthal <
j.joachimsthal <at> onehippo.com> wrote:

> We've created a new release of Hippo CMS 6, version 6.05.10
>
> It contains two new features
> - The sorting behaviour can differ when you change the index (order) of
> documents
> - The (default) ReviewedActions workflow supports renaming a file (and it's
> URI)
>
> Patches were applied for Italian translations.
>
> For more information see [1]
>
> The source code is available under the Apache Source License 2.0 from
> our public SVN repository:
> http://svn.hippocms.org/repos/hippo/hippo-cms/tags/Release-CMS-v6_05_10/
>
> Kudos to all who helped to make the Hippo CMS 6 even better!
>
>
> The Hippo CMS 6 development team
>
(Continue reading)


Gmane