## Installation

by Kim Boone -
Number of replies: 2
I have webwork 2.7 and ubuntu 12.04 up and running on a new server.  On our old server the instuctions for adding a button for a library worked but on the new server it does not.  The NPL button is showing but when I try to add a button per the instuctions it does not work.  I have it configured the same as the old server.

Anyone have any ideas?

# 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
# in the list, if a directory (or link to a directory) with name 'key' appears
# in the templates directory, then a button with name 'value' will be placed at
# the top of the problem browser.  (No button will appear if there is no
# directory or link with the given name in the templates directory.)  For
# example,
#
#     $courseFiles{problibs} = {rochester => "Rochester", asu => "ASU"}; # # would add two buttons, one for the Rochester library and one for the ASU # library, provided templates/rochester and templates/asu exists either as # subdirectories or links to other directories. The "NPL Directory" button # activated below gives access to all the sub directories in the National # Problem Library. #$courseFiles{problibs}    = {
Library          => "NPL Directory",
#       rochesterLibrary => "Rochester",
#       asuLibrary       => "Arizona State",
# 	dcdsLibrary      => "Detroit CDS",
# 	dartmouthLibrary => "Dartmouth",
# 	indianaLibrary   => "Indiana",
# 	osuLibrary       => "Ohio State",
#	capaLibrary      => "CAPA",
#	ucsbLibrary        => "UCSB"
};

by John Jones -
I have not tested this, but I think that you would also need to make symbolic links in the templates directory, such as (from a course templates directory)

ln -s Library/Dartmouth dartmouthLibrary

would then allow you to uncomment the Dartmouth line and have the button function properly.

John

by Danny Glin -
You can avoid the need for symbolic links by quoting subdirectories in the config file.

I notice that in the code snippet that Kim posted, everything but the top entry (NPL directory) is commented out.  You would need to remove the # symbol at the beginning of a line for that entry to become active.

Here is the entry from my localOverrides.conf file, which is working in WW2.7:

\$courseFiles{problibs}    = {
Library             => "NPL Directory",
"Library/Rochester" => "Rochester",
"Library/Rogawski"  => "Rogawski 2e",
"Library/UCalgary"  => "University of Calgary",
"Library/CollegeOfIdaho" => "College of Idaho",
CAPA             => "CAPA",
};

Note that a couple of these are directories that are not part of the OPL, but have been copied into the OPL directory so that they can be indexed by topic.

Danny