Re: [greenstone-users] DateList to date (not just Yaer Month)

From Michael Dewsnip
DateFri, 04 Aug 2006 09:58:45 +1200
Subject Re: [greenstone-users] DateList to date (not just Yaer Month)
In-Reply-To (!-!AAAAAAAAAAAYAAAAAAAAAGx9lIF2h4ZKo+W5s/mduYXCgAAAEAAAALg7g1H1V2lCqOjtvPAMIqUBAAAAAA==-lostsamoan-com)
Hi Colin,

>The data is presented now! I tried to add _use_hlist_for_ and now my data
>has disappeared again. My statement is:
>
>classifyGenericList -metadata
>dc.Type/dc.Identifier/dc.Relation/dc.Subject/dc.Title -sort_leaf_nodes_using
>dc.Title -buttonname "test list by date" -use_hlist_for dc.Type
>
>I also tried the metadata long version of dc.Resource Type.
>
>
Odd, because this works for me. Can you please send me (off list) one of
the doc.xml files in your collection "archives" directory, and I'll try
it here.

>I added some formatting to make sure there were elements to see:
>
>format CL4HList
>"[link][highlight][dc.Type][icon][ex.Title][/highlight][/link]"
>
>
The "[dc.Type]" doesn't actually mean anything in the HList context,
since [dc.Type] is document metadata, and what you are formatting is a
classifier "grouping" node. The only metadata you have access to in an
HList format statement is Title, which is the name of the "grouping"
node. (This HList stuff is confusing at first, but it makes sense if you
think about it).

Anyway, this is probably a GenericList bug that we'll fix if we can
reproduce the problem.

Regards,

Michael

>-----Original Message-----
>From: Michael Dewsnip [mailto:mdewsnip@cs.waikato.ac.nz]
>Sent: Thursday, 3 August 2006 9:45 AM
>To: admin@lostsamoan.com
>Cc: greenstone-users@list.scms.waikato.ac.nz
>Subject: Re: [greenstone-users] DateList to date (not just Yaer Month)
>
>Hi Colin,
>
>I think you'll need to use the internal (short) names of the metadata
>elements, rather than the display (full) names, ie. "dc.Type" instead of
>"dc.Resource Type".
>
>Try:
>
>classify GenericList -sort_leaf_nodes_using dc.Title -metadata
>"dc.Type/dc.Identifier/dc.Relation/dc.Subject/dc.Title" -buttonname
>"test list by date"
>
>Regards,
>
>Michael
>
>
>
>Lost Samoan (Corporate) wrote:
>
>
>
>>Thanks Katehrine,
>>
>>I used some spare elements in the metadata to create the Year, Month, Day
>>data. I can get some results with one metadata element (eg -metadata
>>dc.Resource Type) but when I use multiple metadata (eg -metadata
>>
>>
>dc.Resource
>
>
>>Type/dc.Title) I get zero results.
>>
>>My collect.cfg section is:
>>
>>buildtypemgpp
>>
>>#indexesdocument:text document:Title document:Source
>>indexesdc.Title dc.Description text dc.Creator
>>levelsdocument
>>defaultindex
>>
>>pluginGAPlug
>>pluginHTMLPlug -no_metadata -assoc_files
>>(?i).(gif|jpe?g|jpe|jpg|png|css|lit|wav|mp3|ram|wma|pdf)$ -block_exp
>>(?i).(gif|jpe?g|jpe|jpg|png|css|pdf|lit)$
>>pluginUnknownPlug -file_format pdf
>>pluginMP3Plug
>>pluginProCitePlug
>>pluginArcPlug
>>pluginRecPlug -use_metadata_files
>>
>>classifyDateList -nogroup -metadata dc.Date -sort dc.Date -bymonth
>>-buttonname "Publication Date"
>>classifyHierarchy -metadata dc.Subject -sort dc.Date -buttonname
>>section -reverse_sort -hfile Section.txt
>>
>>classifyAZCompactList -metadata dc.Language -sort dc.Title
>>-buttonname Language
>>
>>classifyGenericList -sort_leaf_nodes_using dc.Title -metadata
>>"dc.Resource Type/dc.Resource Identifier/dc.Relation/dc.Subject and
>>Keywords/dc.Title" -buttonname "test list by date"
>>
>>format HList "[link][highlight][ex.Title][/highlight][/link]"
>>
>>format DocumentText "[Text]"
>>
>>format DocumentButtons "Detach|Highlight"
>>
>>
>>I looked for more information on using multiple metadata in the GenericList
>>but it is sparse. I gather I am doing something fundamentally wrong?
>>
>>Thanks,
>>
>>Colin
>>
>>-----Original Message-----
>>From: Katherine Don [mailto:kjdon@cs.waikato.ac.nz]
>>Sent: Thursday, 27 July 2006 1:16 PM
>>To: admin@lostsamoan.com
>>Cc: greenstone-users@list.scms.waikato.ac.nz
>>Subject: Re: [greenstone-users] DateList to date (not just Yaer Month)
>>
>>Hi Colin
>>
>>Are you able to change your metadata?
>>The easiest way to do this would be to have individual Year Month Day
>>metadata, and then use
>>GenericList -metadata Year/Month/Day/Section/Story
>>or something like this.
>>
>>There is currently no "byday" option equivalent to "bymonth" for DateList.
>>
>>Regards,
>>Katherine
>>
>>Lost Samoan (Corporate) wrote:
>>
>>
>>
>>
>>>Greetings,
>>>
>>>
>>>
>>>Is there a way to have the DateList present by Year>Month>Date? I have
>>>newspapers that I wish to present by date (and then by section>story!).
>>>
>>>
>>>
>>>I read Michael Dewsnip's email of 10/09/2004 and tried to use the
>>>Heirarchy Classifier to do this, but end with only a hlist of the dates
>>>linked to the stories for that day. I also had a look at the demo
>>>collection, to find the "hfile" referenced in Michael's email, but it is
>>>not in the "etc" directory as suggested.
>>>
>>>
>>>
>>>I would think this has been done before, any thoughts please?
>>>
>>>
>>>
>>>Thank you
>>>
>>>
>>>
>>>**Colin J. Murfett**
>>>
>>>
>>>------------------------------------------------------------------------
>>>
>>>_______________________________________________
>>>greenstone-users mailing list
>>>greenstone-users@list.scms.waikato.ac.nz
>>>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>>>
>>>
>>>
>>>
>>
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>greenstone-users mailing list
>>greenstone-users@list.scms.waikato.ac.nz
>>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>>
>>
>>
>>
>
>
>
>
>