Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devel #100

Open
wants to merge 146 commits into
base: git-flow-conversion
Choose a base branch
from
Open

Devel #100

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
32b8c81
Restore PGProblemEditor (the first one ) it's original look and feel
mgage Jun 13, 2012
d8028c2
Merge branch 'master' of git://github.com/mgage/webwork2-dev into mgage
mgage Jun 24, 2012
8b53349
Merge branch 'master' of git://github.com/mgage/webwork2-dev into mgage
mgage Jun 25, 2012
3fcf54c
Merge branch 'master' of git://github.com/mgage/webwork2-dev into mgage
mgage Jun 26, 2012
602163d
Merge branch 'master' of git://github.com/mgage/webwork2-dev into mgage
mgage Jul 12, 2012
b8a1a6f
Merge branch 'master' of git://github.com/mgage/webwork2-dev into mgage
mgage Jul 26, 2012
53bd418
Merge branch 'subject_browse' into mgage
mgage Aug 7, 2012
fe4b5ad
Merge branch 'master' of git://github.com/mgage/webwork2-dev into mgage
mgage Aug 7, 2012
c027b20
Merge branch 'master' of git://github.com/mgage/webwork2-dev into mgage
mgage Aug 8, 2012
297df67
Merge branch 'master' of git://github.com/mgage/webwork2-dev into mgage
mgage Aug 8, 2012
bf29866
Merge branch 'master' of git://github.com/mgage/webwork2-dev into mgage
mgage Aug 8, 2012
71fdd5f
Merge branch 'master' of git://github.com/mgage/webwork2-dev into mgage
mgage Aug 8, 2012
1486fcb
Merge branch 'master' of git://github.com/mgage/webwork2-dev into mgage
mgage Aug 21, 2012
e18558e
Merge branch 'master' of git://github.com/mgage/webwork2-dev into mgage
mgage Aug 21, 2012
89580d7
Merge branch 'master' of git://github.com/mgage/webwork2-dev into mgage
mgage Aug 21, 2012
2e172c8
Fix (again) the check for the library version number
mgage Aug 21, 2012
20d9fb1
Change version number to 2.5.2.1
mgage Aug 22, 2012
4537d92
Update themes
mgage Aug 23, 2012
68e6eca
Update README's and LICENSE
mgage Aug 23, 2012
f2330e5
Preperation for merging to mgage
goehle Aug 28, 2012
c3ad79d
Merge branch 'ww2.5.1.1' into ww2.5.2
mgage Aug 28, 2012
7ce623a
Add back ProblemGrader.pm and ShowAnswers.pm -- files needed for the …
mgage Aug 28, 2012
7d6073d
Add remaining changes needed to enable essayQuestions
mgage Aug 28, 2012
b3331af
Merge branch 'ww2.5.2' of git://github.com/mgage/webwork2-dev into ww…
mgage Aug 28, 2012
4aecc88
Set version number to 2.5.2
mgage Aug 28, 2012
413c2df
Merge branch 'ww2.5.2' of git://github.com/mgage/webwork2-dev into ww…
mgage Aug 28, 2012
c4ec5ae
Insert changes to math2.css and math3.css
mgage Aug 28, 2012
5ff213d
Merge branch 'ww2.5.2' of https://github.com/openwebwork/webwork2-dev…
mgage Aug 29, 2012
c79900b
Fix out of place brace
mgage Aug 29, 2012
3100820
Merge commit '671bb8a200d37b84008585765fe4fabbf5f71de3' into ww2.5.2
mgage Aug 29, 2012
f82020a
Merge pull request #27 from mgage/ww2.5.2
mgage Aug 29, 2012
0fa1fbe
Merge pull request #16 from openwebwork/ww2.5.2
mgage Aug 30, 2012
92efd49
Be more careful about replacing _ with spaces in set names
mgage Aug 30, 2012
49ccdd4
Fixed files for merging.
goehle Aug 31, 2012
f8c7324
Bug fixes and minor upgrades to Essay Answers
goehle Aug 31, 2012
e42fd99
Fixed fast forward conflict
goehle Aug 31, 2012
2818290
Merge branch 'ww2.5.2' of https://github.com/mgage/webwork2-dev
goehle Aug 31, 2012
c25a0e9
Merge pull request #14 from goehle/master
mgage Sep 1, 2012
af13330
Link codemirror2 to htdocs/codemirror2
mgage Sep 5, 2012
54e1352
Fix bugs and improve error messages in SendMail.pm
mgage Sep 5, 2012
a7c565d
Comment out codemirror in themes math2 and math3
mgage Sep 5, 2012
e59c85c
Replace publish by visible in database fields
mgage Sep 5, 2012
217df55
Add a VERSION file for PG.
mgage Sep 7, 2012
e414514
Merge pull request #37 from mgage/ww2.5.2
mgage Sep 7, 2012
ce1ce34
Replace include() by require().
mgage Sep 8, 2012
45d53b3
Replace include() by require().
mgage Sep 8, 2012
792fddb
Merge pull request #39 from mgage/ww2.5.2
mgage Sep 8, 2012
215673a
updates from Bill Wheeler
whwheel Aug 10, 2012
fa753f0
Merge pull request #41 from mgage/ww2.5.2
mgage Sep 8, 2012
a8254ad
Allow admin course data tables and directories to be updated
mgage Sep 9, 2012
2b9bb42
Automatically create achievements directories.
mgage Sep 9, 2012
8499d0e
Merge branch 'ww2.5.2' of https://github.com/mgage/webwork2-dev into …
mgage Sep 9, 2012
08b306f
Merge pull request #45 from mgage/ww2.5.2
mgage Sep 10, 2012
46117fa
More bug fixes for Classlist editor. In addition, some preliminary v…
pstaabp Sep 19, 2012
4d11ae0
Preliminary rewrite of the Homework Set Editor
pstaabp Sep 20, 2012
1ed3da2
Fix undefined variable errors
goehle Sep 21, 2012
7d79715
Merge pull request #52 from mgage/ww2.5.2
mgage Sep 25, 2012
79f979a
Merge branch 'ww2.5.2' of https://github.com/mgage/webwork2-dev into …
mgage Sep 26, 2012
6633ff1
Restore missing lines around 1955 that fetch user problems for a sing…
mgage Sep 27, 2012
0fd5dde
Merge pull request #53 from mgage/ww2.5.2
mgage Sep 27, 2012
35d032b
Add more comments to configuration files
mgage Sep 27, 2012
c5fd9de
Merge branch 'ww2.5.2' of https://github.com/mgage/webwork2-dev into …
mgage Sep 27, 2012
7f2f0a6
moving around javascript files and breaking things
whytheplatypus Oct 11, 2012
3891581
Start on moving to amd javascript
whytheplatypus Oct 11, 2012
4b6bcb0
Initial code for a Homework Set Editor 3.
pstaabp Oct 12, 2012
50ae1d7
removing local dists.
pstaabp Oct 12, 2012
1a2b825
Merge commit '7c6c4d299e58735206d213c93b5e6bc6e05ed69d'
pstaabp Oct 12, 2012
29f10f1
Merge commit '1a2b82599047004142989fa47e8a0b53b44a4e88' into requirejs
whytheplatypus Oct 12, 2012
1c30b8e
Added ProblemSet.js and ProblemSetList.pm
pstaabp Oct 12, 2012
45fdc31
Merge commit '1c30b8e602670981c506a1e0f20327f239d11222' into requirejs
whytheplatypus Oct 12, 2012
0e2b071
update to get things working
whytheplatypus Oct 12, 2012
f8b8c63
A start with requirejs
whytheplatypus Oct 13, 2012
351f020
Merge branch 'ww2.5.2' of https://github.com/openwebwork/webwork2-dev…
mgage Oct 13, 2012
7fd5268
Bug fixes to the Hwk Editor 3
pstaabp Oct 13, 2012
07bfce0
requirejs working for library browser 3
whytheplatypus Oct 13, 2012
f059d75
Merge commit '7fd5268e1bf64c7cf25b1faf9fb27a95b5901c3c' into requirejs
whytheplatypus Oct 13, 2012
82bf4e4
Use Storable::nfreeze instead of freeze.
apizer Oct 13, 2012
f948f03
userlist3 working with requires
whytheplatypus Oct 13, 2012
df6432b
Merge pull request #61 from apizer/ww2.5.2
mgage Oct 13, 2012
4d5430f
removed base url, turns out it breaks things
whytheplatypus Oct 13, 2012
1f17b06
More bug fixes and features for Homework Set Editor.
pstaabp Oct 13, 2012
bca9838
Merge commit '1f17b0641b9047ecf139d0f46c366157c98c7078'
whytheplatypus Oct 13, 2012
e66182f
getting requires working with the new set editor
whytheplatypus Oct 13, 2012
f83ac72
More bug fixes
pstaabp Oct 13, 2012
9064abc
added jquery-ui-1.9.0
pstaabp Oct 13, 2012
a715a84
Merge commit 'f83ac7289010b7c81465d9cee36b5a91c4b72c5b'
whytheplatypus Oct 13, 2012
2a06833
fix for bootstrap
whytheplatypus Oct 13, 2012
b9c267b
Merge commit '2a06833578bc22a3dfec1d185ae12264ca626d7a'
pstaabp Oct 13, 2012
07dfbef
Changed the lbtwo.template
pstaabp Oct 13, 2012
9ebd84f
module views
whytheplatypus Oct 13, 2012
7f56344
Merge commit '07dfbefdd4d3d576c8f69d9710b9dfcce79f0032'
whytheplatypus Oct 13, 2012
0d087ce
moving main page to bootstrap
whytheplatypus Oct 13, 2012
aec5d2f
Merge commit 'df6432bbff5a9bae48381d1f96f826af54149f28'
whytheplatypus Oct 14, 2012
7584eff
requiers calendar view
whytheplatypus Oct 14, 2012
fd458e7
Added the feature that the help box on a page doesn't automatically o…
pstaabp Oct 14, 2012
4570651
added calendar to the front page
whytheplatypus Oct 14, 2012
8bbb2fe
Add color package to TeX for inline equation generation
mgage Oct 14, 2012
1e22908
Merge commit 'df6432bbff5a9bae48381d1f96f826af54149f28'
pstaabp Oct 14, 2012
a20ac98
A bug fix to bring back the Homework Editor 3.
pstaabp Oct 14, 2012
0e06d71
removing the PG_VERSION from the repository it shouldn't be there
whytheplatypus Oct 14, 2012
a000672
commit for merging with gage. Calendar on the front page, requirejs …
whytheplatypus Oct 14, 2012
fa57406
Merge pull request #19 from whytheplatypus/master
mgage Oct 14, 2012
d76f6de
Merge pull request #20 from whytheplatypus/master
mgage Oct 14, 2012
340defb
Add all of the updates from the WeBWorK::Fitchburg code camp
mgage Oct 15, 2012
a129390
Merge commit '0e06d71eff1c6bf0dde487d0f887f1d9f10e2860'
pstaabp Nov 3, 2012
50101d2
bug fixes to Homework Editor 3 and improved functionality including s…
pstaabp Nov 25, 2012
5038a64
Simple javascript for library browser 1.
jwj61 Nov 27, 2012
e8605d0
Beginnings of javascript in Library Browser 1, and starting to make a…
jwj61 Nov 27, 2012
49be88f
Merge branch 'master' of https://github.com/openwebwork/webwork2-dev
jwj61 Nov 27, 2012
d5a94fb
Continued Development of the Homework Editor (now named Homework Mana…
pstaabp Dec 5, 2012
fc99d86
Added functionality to Homework Manager Page (formally named homework…
pstaabp Dec 13, 2012
50d6699
Change the interface of Homework Manager to a pulldown list of views …
pstaabp Dec 15, 2012
91ad113
Added missing files from the previous commit
pstaabp Dec 15, 2012
44b22f3
Added files not be tracked and deleted old files to try to merge with…
pstaabp Dec 18, 2012
a687d9b
A few other files to get the old Library Browser working.
pstaabp Dec 18, 2012
e63486d
Another round of adding files to the index so that I can merge with w…
pstaabp Dec 18, 2012
722f105
Still trying to merge with ww2.5.2
pstaabp Dec 18, 2012
ef1ef21
Another attempt to merge with ww2.5.2
pstaabp Dec 18, 2012
670561c
Merge branch 'ww2.5.2'
pstaabp Dec 18, 2012
59b7769
Whitespace change only.
jwj61 Dec 19, 2012
e41699e
Adding javascript actions to original library browser. Some actions
jwj61 Dec 21, 2012
599f22d
Merge branch 'master' of https://github.com/openwebwork/webwork2-dev
jwj61 Dec 21, 2012
e8372c8
Fixing toggle for file path names in library browser 1.
jwj61 Dec 22, 2012
d2b8d99
Library browser 1 can now rerandomize problems by clicking on an icon.
jwj61 Dec 23, 2012
bcfe12b
More bug fixes and features for the Homework Manager. Features inclu…
pstaabp Dec 30, 2012
21dbaf1
Added the date picker files I forgot to add in the last commit. Also…
pstaabp Dec 30, 2012
e8e6e92
Progress on more like this feature
jwj61 Jan 1, 2013
e80252b
Merge pull request #21 from pstaabp/master
mgage Jan 1, 2013
e35a974
Put original library browser 1 back in as librarybrowsernojs, many
jwj61 Jan 15, 2013
d26089c
Merge branch 'master' of https://github.com/openwebwork/webwork2-dev
jwj61 Jan 15, 2013
173af46
Fixed bug when rerandomizing a problem in the library browser1 (a
jwj61 Jan 16, 2013
21e5bb4
Set default so no one can edit tags yet.
jwj61 Jan 16, 2013
a6be46a
Make new rerandomize icon typeset the mathematics in all modes
jwj61 Jan 18, 2013
d84b529
Merge branch 'master' of https://github.com/openwebwork/webwork2-dev
jwj61 Jan 18, 2013
f7a14cb
fixed dbsection typo already fixed by Paul Pearson
mgage Jan 25, 2013
6e17f82
updated mathjax
mgage Jan 25, 2013
b409acf
Merge branch 'ww2.5.1.1'
mgage Jan 25, 2013
fef1efd
add pointer to PG VERSION file
mgage Jan 26, 2013
1581dac
Merge branch 'ww2.5.1.3' of https://github.com/openwebwork/webwork2-d…
mgage Jan 27, 2013
be579c8
Correct typo involving $dh
mgage Jan 27, 2013
7f5d5e9
Merge branch 'master' of https://github.com/jwj61/webwork2-dev into f…
mgage Jan 27, 2013
0397ce4
Deleting file (accidentally added in a recent merge).
jwj61 Feb 2, 2013
83804d8
Fixing merge with devel branch.
jwj61 Feb 2, 2013
3d84acf
Merge pull request #86 from jwj61/devel
mgage Feb 2, 2013
b0eb522
removing local config that I screwed up
whytheplatypus Mar 9, 2013
edde686
added apache-config to ignore list
whytheplatypus Mar 9, 2013
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ htdocs/tmp/*
tmp/*
logs/*
conf/*.conf
conf/*apache-config
conf/*.apache2-config
htdocs/site_info.txt
bin/wwapache2ctl
webwork2.komodoproject
#courses.dist/*
node_modules
node_modules/*
WeBWorK.sublime-project
WeBWorK.sublime-workspace
4 changes: 1 addition & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
[submodule "htdocs/mathjax"]
path = htdocs/mathjax
url = https://github.com/mathjax/MathJax.git

3 changes: 2 additions & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$WW_VERSION ='2.5.1.3';
$WW_VERSION ='development';
$WW_COPYRIGHT_YEARS = '1996-2013';

1;
98 changes: 85 additions & 13 deletions bin/OPL-update
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ use DBI;
BEGIN {
die "WEBWORK_ROOT not found in environment.\n"
unless exists $ENV{WEBWORK_ROOT};
# Unused variable, but define it to avoid an error message.
$WeBWorK::Constants::WEBWORK_DIRECTORY = '';
}

### Data for creating the database tables
Expand All @@ -44,6 +46,8 @@ my %OPLtables = (
chapter => 'OPL_chapter',
section => 'OPL_section',
problem => 'OPL_problem',
morelt => 'OPL_morelt',
morelt_pgfile => 'OPL_morelt_pgfile',
pgfile_problem => 'OPL_pgfile_problem',
);

Expand All @@ -61,6 +65,8 @@ my %NPLtables = (
chapter => 'NPL-chapter',
section => 'NPL-section',
problem => 'NPL-problem',
morelt => 'NPL-morelt',
morelt_pgfile => 'NPL-morelt-pgfile',
pgfile_problem => 'NPL-pgfile-problem',
);

Expand Down Expand Up @@ -156,6 +162,7 @@ if($libraryVersion eq '2.5') {
institution tinyblob,
path_id int(15) NOT NULL,
filename varchar(255) NOT NULL,
morelt_id int(15),
PRIMARY KEY (pgfile_id)
'],
[$tables{keyword}, '
Expand Down Expand Up @@ -209,6 +216,19 @@ if($libraryVersion eq '2.5') {
KEY (section_id),
PRIMARY KEY (problem_id)
'],
[$tables{morelt}, '
morelt_id int(15) NOT NULL auto_increment,
name varchar(127) NOT NULL,
DBsection_id int(15),
leader int(15), # pgfile_id of the MLT leader
KEY (name),
PRIMARY KEY (morelt_id)
'],
[$tables{morelt_pgfile}, '
morelt_id int(15) DEFAULT 0 NOT NULL,
pgfile_id int(15) DEFAULT 0 NOT NULL,
PRIMARY KEY (morelt_id, pgfile_id)
'],
[$tables{pgfile_problem}, '
pgfile_id int(15) DEFAULT 0 NOT NULL,
problem_id int(15) DEFAULT 0 NOT NULL,
Expand Down Expand Up @@ -414,6 +434,7 @@ sub pgfiles {
my $name = $File::Find::name;
my ($subject, $chapter, $section, $date, $institution, $author, $text);
my ($edition, $textauthor, $textsection, $textproblem, $tagged);
my ($morelt, $morelt_leader);
%textinfo=();
my @textproblems = (-1);
if ($name =~ /swf$/) {
Expand All @@ -431,42 +452,54 @@ sub pgfiles {
$tagged = 0;
while (<IN>) {
SWITCH: {
if (/\bKEYWORDS\((.*)\)/i) {
if (/#.*\bKEYWORDS\((.*)\)/i) {
@keyword = keywordcleaner($1);
last SWITCH;
}
if (/\bDBsubject\s*\(\s*'?(.*?)'?\s*\)/) {
if (/#.*\bDBsubject\s*\(\s*'?(.*?)'?\s*\)/) {
$subject = $1;
$subject =~ s/'/\'/g;
last SWITCH;
}
if (/\bDBchapter\s*\(\s*'?(.*?)'?\s*\)/) {
if (/#.*\bDBchapter\s*\(\s*'?(.*?)'?\s*\)/) {
$chapter = $1;
$chapter =~ s/'/\'/g;
$tagged = 1;
last SWITCH;
}
if (/\bDBsection\s*\(\s*'?(.*?)'?\s*\)/) {
if (/#.*\bDBsection\s*\(\s*'?(.*?)'?\s*\)/) {
$section = $1;
$section =~ s/'/\'/g;
last SWITCH;
}
if (/\bDate\s*\(\s*'(.*?)'\s*\)/) {
if (/#.*\bDate\s*\(\s*'(.*?)'\s*\)/) {
$date = $1;
$date =~ s/'/\'/g;
last SWITCH;
}
if (/\bInstitution\s*\(\s*'(.*?)'\s*\)/) {
if (/#.*\bInstitution\s*\(\s*'(.*?)'\s*\)/) {
$institution = $1;
$institution =~ s/'/\'/g;
last SWITCH;
}
if (/\bAuthor\(\s*'?(.*?)'?\s*\)/) {
if (/#.*\bAuthor\(\s*'?(.*?)'?\s*\)/) {
$author = $1;
$author =~ s/'/\'/g;
last SWITCH;
}
if (/\bTitleText(\d+)\(\s*'?(.*?)'?\s*\)/) {
if (/#.*\bMLTleader\(\s*'?(.*?)'?\s*\)/) {
$morelt_leader = $1;
$morelt_leader =~ s/['"]//g;
$morelt_leader= ($morelt_leader =~ /\S/) ? 1 : 0;
last SWITCH;
}
if (/#.*\bMLT\(\s*'?(.*?)'?\s*\)/) {
$morelt = $1;
$morelt =~ s/'//g;
$morelt = lc($morelt);
last SWITCH;
}
if (/#.*\bTitleText(\d+)\(\s*'?(.*?)'?\s*\)/) {
$textno = $1;
$text = $2;
$text =~ s/'/\'/g;
Expand All @@ -476,7 +509,7 @@ sub pgfiles {
}
last SWITCH;
}
if (/\bEditionText(\d+)\(\s*'?(.*?)'?\s*\)/) {
if (/#.*\bEditionText(\d+)\(\s*'?(.*?)'?\s*\)/) {
$textno = $1;
$edition = $2;
$edition =~ s/'/\'/g;
Expand All @@ -486,7 +519,7 @@ sub pgfiles {
}
last SWITCH;
}
if (/\bAuthorText(\d+)\(\s*'?(.*?)'?\s*\)/) {
if (/#.*\bAuthorText(\d+)\(\s*'?(.*?)'?\s*\)/) {
$textno = $1;
$textauthor = $2;
$textauthor =~ s/'/\'/g;
Expand All @@ -496,7 +529,7 @@ sub pgfiles {
}
last SWITCH;
}
if (/\bSection(\d+)\(\s*'?(.*?)'?\s*\)/) {
if (/#.*\bSection(\d+)\(\s*'?(.*?)'?\s*\)/) {
$textno = $1;
$textsection = $2;
$textsection =~ s/'/\'/g;
Expand All @@ -513,7 +546,7 @@ sub pgfiles {
}
last SWITCH;
}
if (/\bProblem(\d+)\(\s*(.*?)\s*\)/) {
if (/#.*\bProblem(\d+)\(\s*(.*?)\s*\)/) {
$textno = $1;
$textproblem = $2;
$textproblem =~ s/\D/ /g;
Expand All @@ -537,6 +570,7 @@ sub pgfiles {
#
# kludge to fix the omission of a subject field
unless($subject) {
print "NO SUBJECT $name\n";
if ($text =~ /precalculus/i) {
$subject = "Precalculus";
} elsif ($text =~ /calculus/i) {
Expand Down Expand Up @@ -570,6 +604,10 @@ sub pgfiles {
# in that file.
#

# Fill in missing data with Misc. instead of blank
$chapter = 'Misc.' unless $chapter =~ /\S/;
$section = 'Misc.' unless $section =~ /\S/;

#selectrow_array returns first field of first row in scalar context or undef
# undef for failure also, $dbh->{RaiseError} = 1 should catch that case.
#
Expand Down Expand Up @@ -672,13 +710,47 @@ sub pgfiles {
\"$author_id\",
\"$institution\",
\"$path_id\",
\"$pgfile\"
\"$pgfile\",
\"\" # morelt_id filled in below
)"
);
dbug "INSERT INTO pgfile VALUES( \"\", \"$DBsection_id\", \"$author_id\", \"$institution\", \"$path_id\", \"$pgfile\", \"\" )\n";
$query = "SELECT pgfile_id FROM `$tables{pgfile}` WHERE filename = \"$pgfile\" and path_id=$path_id";
$pgfile_id = $dbh->selectrow_array($query);

# morelt table, and morelt_pgfile many-many table
if($morelt) {
$query = "SELECT morelt_id FROM `$tables{morelt}` WHERE name = \"$morelt\"";
$morelt_id = $dbh->selectrow_array($query);
if (!defined($morelt_id)) {
$dbh->do("INSERT INTO `$tables{morelt}`
VALUES(
\"\",
\"$morelt\",
\"$DBsection_id\",
\"\"
)");
dbug "INSERT INTO morelt VALUES( \"\", \"$morelt\", \"$pgfile_id\" )\n";
}
$morelt_id = $dbh->selectrow_array($query);
$dbh->do("UPDATE `$tables{pgfile}` SET
morelt_id = \"$morelt_id\"
WHERE pgfile_id = \"$pgfile_id\" "
);
dbug "UPDATE pgfile morelt_id for $pgfile_id to $morelt_id\n";
if($morelt_leader) {
$dbh->do("UPDATE `$tables{morelt}` SET
leader = \"$pgfile_id\"
WHERE morelt_id = \"$morelt_id\" "
);
dbug "UPDATE morelt leader for $morelt_id to $pgfile_id\n";
}
$dbh->do("INSERT INTO `$tables{morelt_pgfile}`
VALUES(\"$morelt_id\", \"$pgfile_id\")");
dbug "INSERT INTO `$tables{morelt_pgfile}`
VALUES($morelt_id, $pgfile_id)";
}

# keyword table, and problem_keyword many-many table
#
foreach my $keyword (@keyword) {
Expand Down
4 changes: 2 additions & 2 deletions conf/database.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ $dbLayouts{sql_single} = {
source => $database_dsn,
params => { %sqlParams,
tableOverride => "${courseName}_achievement"

},
},
past_answer => {
record => "WeBWorK::DB::Record::PastAnswer",
schema => "WeBWorK::DB::Schema::NewSQL::Std",
Expand All @@ -297,7 +298,6 @@ $dbLayouts{sql_single} = {
},
},


achievement_user => {
record => "WeBWorK::DB::Record::UserAchievement",
schema => "WeBWorK::DB::Schema::NewSQL::Std",
Expand Down
20 changes: 15 additions & 5 deletions conf/defaults.config
Original file line number Diff line number Diff line change
Expand Up @@ -472,14 +472,22 @@ my $achievementTablesExist = (defined ($dbLayouts{$dbLayoutName}{global_user_ach
################################################################################
# Problem library options
################################################################################
#
# The problemLibrary configuration data should now be set in localOverrides.conf

# For configuration instructions, see:
# http://webwork.maa.org/wiki/National_Problem_Library
# Set the location of the library in site.conf
# These values usually do not need to be edited.

# Problem Library version (currently version 2).
$problemLibrary{version} = "2";
# The directory containing the natinal problem library files.
# Set the root to "" if no problem
# library is installed. Use version 2.0 for the NPL and use the version 2.5 for the OPL.
# When changing from the NPL to the OPL it is important to change the version number
# because the names of the tables in the database have changed.

#RE-CONFIGURE problemLibrary values in localOverrides.conf
#################################################
$problemLibrary{root} ="/opt/webwork/libraries/webwork-open-problem-library/OpenProblemLibrary";
$problemLibrary{version} ="2.0"; # 2.0 for NPL, 2.5 for OPL
###########################################################

# Problem Library SQL database connection information
$problemLibrary_db = {
Expand Down Expand Up @@ -623,6 +631,7 @@ $authen{proctor_module} = "WeBWorK::Authen::Proctor";
edit_achievements => "professor",
create_and_delete_courses => "professor",
fix_course_databases => "professor",
modify_tags => undef,

##### Behavior of the interactive problem processor #####

Expand Down Expand Up @@ -1314,4 +1323,5 @@ A value such as 0.1 means 0.1 percent error is allowed.",


include("conf/localOverrides.conf");

1; #final line of the file to reassure perl that it was read properly.
21 changes: 17 additions & 4 deletions conf/localOverrides.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,20 @@ $webworkFiles{screenSnippets}{setHeader} = "$webworkDirs{conf}/snippets/


################################################################################
# National Problem Library
# National Problem Library / Open Problem Library
################################################################################


# For configuration instructions, see:
# http://webwork.maa.org/wiki/National_Problem_Library
# The directory containing the natinal problem library files. Set to "" if no problem
# library is installed.
$problemLibrary{root} ="/opt/webwork/libraries/NationalProblemLibrary";
# The directory containing the natinal problem library files.
# Set the root to "" if no problem
# library is installed. Use version 2.0 for the NPL and use the version 2.5 for the OPL.
# When changing from the NPL to the OPL it is important to change the version number
* because the names of the tables in the database have changed.

$problemLibrary{root} ="/opt/webwork/libraries/webwork-open-problem-library/OpenProblemLibrary";
$problemLibrary{version} ="2.5";

# Additional library buttons can be added to the Library Browser (SetMaker.pm)
# by adding the libraries you want to the following line. For each key=>value
Expand Down Expand Up @@ -152,9 +157,14 @@ $courseFiles{problibs} = {

# $permissionLevels{login} = "guest";


# The above code would give the permission to login to any user with permission
# level guest or higher.

$permissionLevels{dont_log_past_answers} = undef;
#$permissionLevels{record_set_version_answers_when_acting_as_student} = "professor";
#$permissionLevels{record_answers_when_acting_as_student} = "professor";

################################################################################
# PG subsystem options
################################################################################
Expand Down Expand Up @@ -246,15 +256,18 @@ $problemDefaults{max_attempts} = -1;
homeworkseteditor1 => 1,
# homeworkseteditor2 => 1,
#
# librarybrowsernojs => 1,
librarybrowser1 => 1,
# librarybrowser2 => 1,
# librarybrowser3 => 1,
#
pgproblemeditor1 => 1,
# pgproblemeditor2 => 1,
# pgproblemeditor3 => 1,

);


################################################################################
# Directory for temporary files
################################################################################
Expand Down
Loading