[greenstone-users] Error in Depositor

From SEAFDEC/AQD Library
DateMon Feb 22 21:52:28 2010
Subject [greenstone-users] Error in Depositor
In-Reply-To (4B81D79F-6080406-cs-waikato-ac-nz)
Hello Katherine, thank you for your response and it worked. What if the
number of repeatable fields is not constant? For example, one document
contains 3 authors while others have only one or two. Is there some sort of
javascript that we could use where during the "specify metadata stage",
there's a link that prompts, "Add another author?". I hope this is not very
complicated. It would be very useful for the rest of us who are using the
depositor module if we don't resort to copy paste the appropriate line from
the depositor metadata multiple times if some documents have only one
metadata.

Thanks and more power to you and the Greenstone team.

On Mon, Feb 22, 2010 at 9:02 AM, Katherine Don <kjdon@cs.waikato.ac.nz>wrote:

> Hi
>
> Yes. In GLI, you can specify which metadata from the specified metadata
> sets should be displayed in depositor.
> Then, this is written out to the collect.cfg file like:
>
> collectionmeta depositormetadata [l=en]
> "{"name":"dls.Title","label":"Title","tooltip":"dls.Title: The
> title of this resource.","type":"text"},
> {"name":"dls.Organization","label":"Organization","tooltip":"dls.Organization:
> The organization responsible for producing this
> resource.","type":"text"},
> {"name":"dls.Subject","label":"Subject","tooltip":"dls.Subject:
> The subject of this resource.","type":"text"},
> {"name":"dls.Keyword","label":"Keyword","tooltip":"dls.Keyword: A
> more specific indication of what the resource can be used
> for.","type":"text"},
> {"name":"dls.Language","label":"Language","tooltip":"dls.Language:
> The language of this resource.","type":"text"}"
>
> You can edit this by hand (make sure GLI does not have this collection
> open). Can repeat fields, just copy the appropriate line.
> You can add any fields you like here too.
>
> The name is the metadata element it will be saved to. The label and tooltip
> are what is displayed on the screen in depositor.
>
>
> Regards,
> Katherine
>
> SEAFDEC/AQD Library wrote:
>
> Dear Katherine,
>
> Thank you so much! It works. Follow up question, is it possible to add
> custom metadata and metadata with repeatable fields to the depositor module?
>
> On Mon, Feb 8, 2010 at 7:27 AM, Katherine Don <kjdon@cs.waikato.ac.nz>wrote:
>
>> Hi
>>
>> I have just tried this on windows XP. I get the same errors as you.
>> Recompiling the code seemed to make it work.
>> Our releases are compiled on Vista, so maybe there is some incompatibility
>> between versions??
>> I have put my XP library.cgi up at
>>
>> http://www.cs.waikato.ac.nz/~kjdon/greenstone/2.83-windows-library.cgi<http://www.cs.waikato.ac.nz/%7Ekjdon/greenstone/2.83-windows-library.cgi>
>>
>> Download this, and put in your cgi-bin. Rename to library.cgi.
>>
>> Does this work now??
>>
>> Also, I found that the add metadata page didn't work in IE, but it did in
>> Firefox. I have added a ticket about this so it should be fixed for next
>> release.
>>
>> Regards,
>> Katherine
>>
>>
>> Katherine Don wrote:
>>
>> I tried in Linux, so I will have to try on a windows machine and see if
>> its a windows bug (or just your bug).
>>
>> I assume the rest of your greenstone is working ok?
>>
>> I will not be able to get to this until next week (unless I miraculously
>> get time at home).
>>
>> Regards,
>> Katherine
>>
>> SEAFDEC/AQD Library wrote:
>>
>> Dear Katherine,
>>
>> I tried to add a new user that belongs to demo-collection-editor group,
>> but still when I click the depositor and got asked to select a collection (I
>> selected demo), I'm not asked for a password, it returned the same error
>> below. I tried this using windows 2003 and windows xp. error.txt contains
>> this messages:
>> database open failed on: C:Greenstoneetchistory.gdb
>> Warning: redefinition of Text[] on line 166 of
>> C:Greenstonemacrosrussian.dm
>> Warning: redefinition of Text[] on line 166 of
>> C:Greenstonemacrosrussian.dm
>>
>> I gave everyone permissions in error.txt, users.gdb and key.gdb.
>>
>> Am I missing something? My configuration for httpd.conf is:
>>
>> # Setting up the Apache webserver to work with Greenstone2
>> ScriptAlias /greenstone/cgi-bin "C:/Greenstone/cgi-bin"
>> <Directory "C:/Greenstone/cgi-bin">
>> Options None
>> Options +ExecCGI
>> AllowOverride None
>> </Directory>
>>
>> Alias /greenstone "C:/Greenstone"
>> <Directory "C:/Greenstone">
>> Options Indexes MultiViews FollowSymLinks
>> AllowOverride None
>> Order allow,deny
>> Allow from all
>> </Directory>
>>
>> <Directory "C:/Greenstone/cgi-bin">
>> Options +ExecCGI
>> </Directory>
>>
>> I added the +ExecCGI hoping that it will solve my "Premature end of script
>> headers" error.
>> Content of my apache access log:
>> 127.0.0.1 - - [03/Feb/2010:08:35:40 +0800] "GET
>> /greenstone/cgi-bin/library.cgi?e=p-00000-00---off-0--00-----0-10-0---0---0prompt-10---4-------0-0l--10-en-50---20-home---0--1-00-0-0-01-0-0utfZz-8-00&a=status&p=frameset
>> HTTP/1.1" 200 736
>> 127.0.0.1 - - [03/Feb/2010:08:35:41 +0800] "GET
>> /greenstone/cgi-bin/library.cgi?e=status-00000-00---off-0--00-----0-10-0---0---0prompt-10---4-------0-0l--10-en-50---20-frameset---0--1-00-0-0-01-0-0utfZz-8-00&a=status&p=select
>> HTTP/1.1" 200 4736
>> 127.0.0.1 - - [03/Feb/2010:08:35:41 +0800] "GET
>> /greenstone/cgi-bin/library.cgi?e=status-00000-00---off-0--00-----0-10-0---0---0prompt-10---4-------0-0l--10-en-50---20-frameset---0--1-00-0-0-01-0-0utfZz-8-00&a=status&p=welcome
>> HTTP/1.1" 200 3926
>> 127.0.0.1 - - [03/Feb/2010:08:35:45 +0800] "GET
>> /greenstone/cgi-bin/library.cgi?e=p-00000-00---off-0--00-----0-10-0---0---0prompt-10---4-------0-0l--10-en-50---20-home---0--1-00-0-0-01-0-0utfZz-8-00&a=depositor&p=select
>> HTTP/1.1" 200 3364
>> 127.0.0.1 - - [03/Feb/2010:08:35:50 +0800] "POST
>> /greenstone/cgi-bin/library.cgi HTTP/1.1" 500 541
>>
>> I didn't get this "Internal Server Error" using 2.81 and 2.82. Thanks in
>> advance and more power to you and the Greenstone team for this wonderful
>> software.
>>
>> Elvi
>>
>> On Wed, Feb 3, 2010 at 8:21 AM, Katherine Don <kjdon@cs.waikato.ac.nz>wrote:
>>
>>> Hi
>>>
>>> hmmm, not sure what is going wrong.
>>> I have just tried this. Installed 2.83 on linux machine. Added a new user
>>> with demo-collection-editor group.
>>>
>>> Went to depositor. Got asked to select a collection (only demo
>>> available), then asked for a password. My new user was allowed to add
>>> documents, but not the demo user.
>>> So all working for me.
>>>
>>> Do you get any errors in greenstone/etc/error.txt?
>>>
>>> Regards,
>>> Katherine
>>>
>>> SEAFDEC/AQD Library wrote:
>>>
>>> Dear All,
>>>
>>> I'm having trouble using depositor (Version 2.83). I enabled the
>>> depositor in main.cfg, created some groups and users. After I clicked the
>>> Depositor button, there is no page that prompt me to enter username and
>>> password, it goes directly to the page which asks me to select a collection.
>>> After I selected (any collection), the page returned this error, "
>>> Internal Server Error
>>>
>>> The server encountered an internal error or misconfiguration and was
>>> unable to complete your request.
>>>
>>> Please contact the server administrator,xxx @xxx.com and inform them of
>>> the time the error occurred, and anything you might have done that may have
>>> caused the error.
>>>
>>> More information about this error may be available in the server error
>>> log."
>>>
>>> I'm using apache as my webserver. Please help. I'm very excited to use
>>> the depositor because as what I have read from its release notes, you don't
>>> have to be on the "all-collections-editor" to add documents unlike versions
>>> 2.81 and 2.82. Too bad I can't get past the "please select a collection"
>>> page. My apache error log have these message "[Tue Feb 02 11:15:20 2010]
>>> [error] [client 127.0.0.1] Premature end of script headers: library.cgi,
>>> referer:
>>> http://localhost:8080/greenstone/cgi-bin/library.cgi?e=p-00000-00---off-0--00-----0-10-0---0---0prompt-10---4-------0-0l--10-en-50---20-home---0--1-00-0-0-01-0-0utfZz-8-00&a=depositor&p=select
>>> ".
>>>
>>> Thank you in advance and more power to the Greenstone team.
>>>
>>> --
>>> Elvi S. Nemiz
>>> Info. Asst., Library and Databank Services
>>> Aquaculture Department
>>> Southeast Asian Fisheries Development Center
>>> Tigbauan, Iloilo 5021
>>> PHILIPPINES
>>>
>>> ------------------------------
>>>
>>> _______________________________________________
>>> greenstone-users mailing listgreenstone-users@list.scms.waikato.ac.nzhttps://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>>>
>>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://list.scms.waikato.ac.nz/mailman/private/greenstone-users/attachments/20100222/4c5723ad/attachment-0001.html