[LON-CAPA-users] Meta data in the source code?

James Sullivan lon-capa-users@mail.lon-capa.org
Thu, 23 Nov 2006 16:24:43 -0500


Okay. So this seems to work. However, if there is some meta data already
present, uploading a new source file doesn't overwrite existing meta data.
Is there some way to force overwrite of the meta data from the parameters in
the source file?

Thanks,
Jay

-----Original Message-----
From: lon-capa-users-admin@mail.lon-capa.org
[mailto:lon-capa-users-admin@mail.lon-capa.org] On Behalf Of Gerd Kortemeyer
Sent: Friday, November 10, 2006 8:18 AM
To: lon-capa-users@mail.lon-capa.org
Subject: Re: [LON-CAPA-users] Meta data in the source code?

Hi,

On Nov 9, 2006, at 5:17 PM, James Sullivan wrote:

>
> Is there some way to build meta data into the source file for  
> problems?
>
> I have 700+ problems I would like to upload and if I could build the
> metadata into the file that would make the repository more easily
> searchable.

Yep, you can use the <meta>-tag inside the source code:

<problem>
<meta name="subject" content="Capacitance" />
<meta name="keywords" content="capacitance,capacitor,charge,current" />
<meta name="title" content="Discharging a Capacitor" />
<meta name="abstract" content="Time it takes to discharge a capacitor  
to a certain percentage of its initial charge" />
<startouttext />A capacitor of ...

On publication, the information is transfered to the meta-file.

- Gerd.


_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users