From 1d4892cf1c5a7ce2d793b68d5a5ff8d66cb57b0e Mon Sep 17 00:00:00 2001 From: Christopher Hyde Date: Wed, 1 Apr 2009 14:03:20 -0400 Subject: [PATCH] Changes Added to existing LTFL code to give option of placing LTFL content in Tabs on OPAC details page modified: admin/systempreferences.pl modified: installer/data/mysql/en/mandatory/sysprefs.sql modified: koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl modified: opac/opac-detail.pl Signed-off-by: Galen Charlton --- admin/systempreferences.pl | 5 ++ .../data/mysql/en/mandatory/sysprefs.sql | 1 + .../prog/en/modules/opac-detail.tmpl | 58 +++++++++++++++++-- opac/opac-detail.pl | 11 ++++ 4 files changed, 69 insertions(+), 6 deletions(-) diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl index 40b4331b43..efc90e25e1 100755 --- a/admin/systempreferences.pl +++ b/admin/systempreferences.pl @@ -234,6 +234,11 @@ $tabsysprefs{BakerTaylorEnabled} = 'EnhancedContent'; $tabsysprefs{BakerTaylorPassword} = 'EnhancedContent'; $tabsysprefs{BakerTaylorUsername} = 'EnhancedContent'; +# Library Thing for Libraries +$tabsysprefs{LibraryThingforLibrariesId} = "EnhancedContent"; +$tabsysprefs{LibraryThingforLibrariesEnabled} = "EnhancedContent"; +$tabsysprefs{LibraryThingForLibrariesTabbedView} = "EnhancedContent"; + # Syndetics $tabsysprefs{SyndeticsClientCode} = 'EnhancedContent'; $tabsysprefs{SyndeticsEnabled} = 'EnhancedContent'; diff --git a/installer/data/mysql/en/mandatory/sysprefs.sql b/installer/data/mysql/en/mandatory/sysprefs.sql index ad5287fe69..be677874e6 100644 --- a/installer/data/mysql/en/mandatory/sysprefs.sql +++ b/installer/data/mysql/en/mandatory/sysprefs.sql @@ -233,3 +233,4 @@ 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'); diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl index ce25bc525e..48ae69ac8d 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl @@ -113,8 +113,8 @@ Physical details: - &rft.au=&rft.btitle=&rft.date=&rft.pages=&rft.isbn=&rft.aucorp=&rft.place=&rft.pub=&rft.edition=&rft.series=&rft.genre="> - + &rft.au=&rft.btitle= &rft.date=&rft.pages=&rft.isbn=&rft.aucorp=&rft.place=&rft.pub=&rft.edition=&rft.series=&rft.genre="> + ISBN: "> @@ -185,14 +185,27 @@ + + + + +
+
+ +Reviews from LibraryThing.com:
+
+ + +
- Tags: + Tags from this library: No tags for this title. + Tags from this library:
No tags from this library for this title.
@@ -247,11 +260,18 @@
  • #reviews">Reviews
  • +
  • #anotes">About the Author
  • + + +
  • #LFTLSimilarItems">Similar Items
  • +
  • #LTFLTagBrowse">Tag Browser
  • + +
  • #subscriptions">Subscriptions
  • @@ -260,7 +280,6 @@
  • #editions">Editions
  • #amazonreviews">Amazon Reviews
  • -
  • #babeltheque">Babelthèque
  • @@ -525,6 +544,30 @@
    + + + +
    +
    + + +
    + +
    +
    + + + + +
    @@ -621,7 +664,7 @@ -

    Sorry, there are no reviews available for this title. &store=books" target="_blank">Add your own review&store=books">Add your own review

    +

    Sorry, there are no reviews from this library available for this title. &store=books" target="_blank">Add your own review&store=books">Add your own review

    @@ -710,4 +753,7 @@ + + + diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 166d7d82c8..bbfc028833 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -357,6 +357,17 @@ if ( C4::Context->preference("SyndeticsEnabled") }; warn $@ if $@; } +# LibraryThingForLibraries +if( C4::Context->preference('LibraryThingForLibrariesEnabled') ) +{ + $template->param(LibraryThingForLibrariesID => +C4::Context->preference('LibraryThingForLibrariesID') ); +} +if( C4::Context->preference('LibraryThingForLibrariesEnabled') ) +{ + $template->param(LibraryThingForLibrariesTabbedView => +C4::Context->preference('LibraryThingForLibrariesTabbedView') ); +} # Babelthèque if ( C4::Context->preference("Babeltheque") ) { -- 2.39.5