From b15a74c8d7168938d8dae28f8cc6709a110dccfc Mon Sep 17 00:00:00 2001 From: Christopher Hyde Date: Thu, 2 Apr 2009 10:50:35 -0400 Subject: [PATCH] Changes Made to further optimize and condense code, include code documentation, and fix hardcoded instead of syspref'd library thing id Signed-off-by: Galen Charlton --- installer/data/mysql/en/mandatory/sysprefs.sql | 4 +++- opac/opac-detail.pl | 13 ++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/installer/data/mysql/en/mandatory/sysprefs.sql b/installer/data/mysql/en/mandatory/sysprefs.sql index be677874e6..3c86a760ec 100644 --- a/installer/data/mysql/en/mandatory/sysprefs.sql +++ b/installer/data/mysql/en/mandatory/sysprefs.sql @@ -233,4 +233,6 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ( INSERT INTO `systempreferences` ( `variable` , `value` , `options` , `explanation` , `type` ) VALUES ( 'StaffSerialIssueDisplayCount', '3', '', 'Number of serial issues to display per subscription in the Staff client', 'Integer'); INSERT INTO `systempreferences` ( `variable` , `value` , `options` , `explanation` , `type` ) VALUES ( 'OPACSerialIssueDisplayCount', '3', '', 'Number of serial issues to display per subscription in the OPAC', 'Integer'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACShowCheckoutName','0','Displays in the OPAC the name of patron who has checked out the material. WARNING: Most sites should leave this off. It is intended for corporate or special sites which need to track who has the item.','','YesNo'); -INSERT INTO systempreferences (variable,value,explanation,options,type)VALUES('LibraryThingForLibrariesTabbedView','1','Put LibraryThingForLibraries Content in Tabs.','','YesNo'); +INSERT INTO systempreferences (variable,value,explanation,options,type)VALUES('LibraryThingForLibrariesID','','See:http://librarything.com/forlibraries/','','free'); +INSERT INTO systempreferences (variable,value,explanation,options,type)VALUES('LibraryThingForLibrariesEnabled','0','Enable or Disable Library Thing for Libraries Features','','YesNo'); +INSERT INTO systempreferences (variable,value,explanation,options,type)VALUES('LibraryThingForLibrariesTabbedView','0','Put LibraryThingForLibraries Content in Tabs.','','YesNo'); diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index bbfc028833..dd21abebc0 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -357,17 +357,16 @@ if ( C4::Context->preference("SyndeticsEnabled") }; warn $@ if $@; } -# LibraryThingForLibraries + +# LibraryThingForLibraries ID Code and Tabbed View Option if( C4::Context->preference('LibraryThingForLibrariesEnabled') ) { - $template->param(LibraryThingForLibrariesID => +$template->param(LibraryThingForLibrariesID => C4::Context->preference('LibraryThingForLibrariesID') ); -} -if( C4::Context->preference('LibraryThingForLibrariesEnabled') ) -{ - $template->param(LibraryThingForLibrariesTabbedView => +$template->param(LibraryThingForLibrariesTabbedView => C4::Context->preference('LibraryThingForLibrariesTabbedView') ); -} +} + # Babelthèque if ( C4::Context->preference("Babeltheque") ) { -- 2.39.5