Re: [greenstone-users] Tool for editing METADATA.XML

From Tomáš Fiala
DateWed, 24 Oct 2007 08:48:40 +0200
Subject Re: [greenstone-users] Tool for editing METADATA.XML
In-Reply-To (471C596C020000900000EE56-hermes-cwu-edu)
Hi Garvin, it works fine for me, many thanks for your help !

Sincerely,

Tomas

Gavin Spomer wrote / napísal(a):
> Hi Tomas,
>
> Sorry, I took a few days off. Getting stressed out.
>
> Here is a simple find and replace example. You need to type this when
> you are NOT in insert mode. This will replace ALL occurrences of the
> text "apples" with the text "oranges" for the entire file:
>
> :%s/apples/oranges/g
>
> Hit enter (return) after that. Explanation: The colon (:) means you are
> starting a command. The percent (%) means the following command will be
> applied to all lines in the file. The "s" means you want to do a
> substitution which is vi's "find and replace". Then you have the text
> you want to replace between /'s and then the text you wish to replace it
> with followed by another /. The g means replace ALL occurrences on each
> line.
>
> Let me know if this doesn't make sense. I'll be happy to give you some
> more examples.
>
> - Gavin
>
>
>>>> Tomáš Fiala <tomas.fiala@ulib.sk> 10/19/07 12:00 AM >>>
>>>>
> Hi Gavin,
>
> my workstation at work is windows, but our servers are linux so I can
> try to make the replacement there. It would be really nice if you could
> instruct me how to find and replace in vi (i know only basics as :q! ; u
>
> ; o ; :x). I tried it my self but i ware not able to copy the text from
> the source.txt file (where i have the data i want to add to
> metadata.xml) and paste it in metadata.xml search & replace function (i
> don?t want to rewrite it, because it is too long).
>
> Many thanks for your help.
>
> Sincerely,
>
> Tomas
>
> Gavin Spomer wrote / napísal(a):
>
>> Ah, I was under the impression your Greenstone Client and Server were
>> both on Windows. If you have access to a Linux machine of some sort
>>
> you
>
>> can use the vi editor. I can instruct you how to do "find and replace"
>> with vi.
>>
>> Again, any typo, no matter how small, might make Greenstone choke.
>>
>> - Gavin
>>
>>
>>
>>>>> <tomas.fiala@ulib.sk> 10/18/07 11:08 AM >>>
>>>>>
>>>>>
>> Maybe it would be better doing it with some commands under LINUX.
>>
>> Sincerely,
>>
>> Tomas
>>
>>
>>
>> On Štv, Október 18, 2007 3:04 pm, Arthur R. Belanger wrote:
>>
>>
>>> Sometimes wordpad works better. I have not tried it as I don't run
>>>
>>>
>> gsdl
>>
>>
>>> on a pc.
>>>
>>> Tomáš Fiala wrote:
>>>
>>>
>>>> Hello all,
>>>>
>>>> does anyone know a software which can edit metadata.xml ? I tried to
>>>> edit it in notepad, but after it greenstone writes "could not parse
>>>> metadata.xml."
>>>>
>>>> Thanks for any suggestions !
>>>>
>>>> Sincerely,
>>>>
>>>> Tomas Fiala
>>>>
>>>>
>>>>
>>>>
>>>>
> ------------------------------------------------------------------------
>
>>
>>
>>>> _______________________________________________
>>>> greenstone-users mailing list
>>>> greenstone-users@list.scms.waikato.ac.nz
>>>> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>>>>
>>>>
>>> --
>>> Arthur Belanger
>>> Medical Library System Manager
>>> ITS Academic Media & Technology
>>> Yale University
>>> PO Box 208065
>>> New Haven, CT 06520-8065
>>>
>>> (203) 785-6928
>>> (203) 737-2859, fax
>>>
>>> mailto:Arthur.Belanger@Yale.Edu
>>> http://www.yale.edu/its/about/amt
>>> http://info.med.yale.edu/library
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>>
> ------------------------------------------------------------------------
>
>> _______________________________________________
>> 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
>

--
Department of digitization
University library Bratislava
http://www.ulib.sk