From: Michael E. G. <ga...@ma...> - 2005-07-23 16:39:10
|
On Jul 22, 2005, at 11:26 PM, John Jones wrote: > > If you have a non-trivial selection from the Problem Collection=20 > popup=A0 you get the current behavior when you select view problems > If you select a non-trivial set definition file you get a list of=A0=20= > problems found in the set definition file > If you select non-trivial things from both menus you get the problem=A0= =20 > collection. > > The only set definition files you can see would be the ones at the=20 > top=A0 level of a directory, e.g. rochesterLibrary, unionLibrary, > or the courseTemplate,=A0=A0 etc. > > Any thoughts? > A couple.=A0 It seems that looking in set definition files is closer = to=20 > "=46rom this Course" than to "Local Problems" since it is essentially=20= > non-imported set definition files.=A0 But, I wouldn't put it with any = of=20 > the existing parts and instead make it a fourth standard option along=20= > with "Problem Library", "Local Problems", and "=46rom this Course".=A0=20= > Most people probably use a window which can fit 4 wide buttons, right? > This seems ok to me. I was trying to save vertical space by avoiding=20 another panel. However what you propose is a more intuitive interface. > A natural name might be "=46rom Set Definition Files", but knowing = what=20 > a set definition file means may not be clear to someone not familiar=20= > with webwork 1. > "Predefined sets" might be another name. It's hard to tell what will=20 be most natural. Those already using WeBWorK are tuned in to the name set definition files name, but with a bit of time they could adjust. =20 On the whole I think I prefer Set Definition Files since it makes clear=20= the association with a file of type .def that they can see in the File Manager. It=20 also agrees with the language in the Hmwk Sets Editor. > Files at the top of directories like rochesterLibrary, unionLibrary,=20= > etc. might need special treatment.=A0 If your name to the Rochester=20 > Library is called rochesterLibrary, then all of the paths accessing=20 > those files will start with rochesterLibrary.=A0 If another person = names=20 > the link Rochester, then none of those set definition files will=20 > work.=A0 So, by special treatment, I mean some sort of munging of the=20= > paths to account for this. > What we might do is this: if the file is =20 rochesterLibrary/setFoo.def the entries would be relative to the=20 directory the set definition file is in: hence an entry of set0/prob1.pg would be come =20 rochesterLibrary/set0/prob1.pg. would that work? > To fit what Nandor wanted, he may want more depth in the searching=20 > for the set definition files.=A0 For example, maybe he would want to=20= > have courses created with a symlink to a directory called Sets, which=20= > has subdirectories MAT_110, MAT_111, etc., each of which has his=20 > university's standard sets for those courses. > I want to be careful not to search too deeply, since if the libraries=20 get large this will significantly slow down the creation of the Library=20= browser page. I suggest that set definition files can only be used in the course templates directory and in any directory referred to in the $courseFiles{problibs} hash (in=20 global.conf). If someone wants to create "libraries" for MAT_110, MAT_111 and so=20 forth they can add an entry either to global.conf or to course.conf. I don't=20= think that is too big a burden for those interested in doing fancy customization of local sites. Take care, Mike > Anyway, those are the thoughts I had off the top of my head. > > John > |