X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=installer%2Fhtml-template-to-template-toolkit.pl;h=e99b19530eea4915084ff11129fb3cffbf217628;hb=81937d1d790ed09bf8f28b25774e7416fc7c9f8c;hp=ce65e97d3d45426c0ada69917e97d3852e174419;hpb=96f7cfabca95612517f4dcf2ebc79fcc002ba569;p=koha.git diff --git a/installer/html-template-to-template-toolkit.pl b/installer/html-template-to-template-toolkit.pl index ce65e97d3d..e99b19530e 100755 --- a/installer/html-template-to-template-toolkit.pl +++ b/installer/html-template-to-template-toolkit.pl @@ -28,7 +28,12 @@ my $tmpl_in_dir = 'koha-tmpl'; my $tmpl_out_dir = 'koha-tt'; # template toolkit variables NOT to scope, in other words, variables that need to remain global (case sensitive) -my @globals = ("themelang"); +my @globals = ("themelang","JacketImages","OPACAmazonCoverImages","GoogleJackets","BakerTaylorEnabled", +"SyndeticsEnabled", "OpacRenewalAllowed", "item_level_itypes","noItemTypeImages", +"virtualshelves", "RequestOnOpac", "COinSinOPACResults", "OPACXSLTResultsDisplay", +"OPACItemsResultsDisplay", "LibraryThingForLibrariesID", "opacuserlogin", "TagsEnabled", +"TagsShowOnList", "TagsInputOnList","loggedinusername","AllowOnShelfHolds","opacbookbag", +"OPACAmazonEnabled", "SyndeticsCoverImages","using_https"); # Arguments: my $KOHA_ROOT; @@ -88,7 +93,7 @@ foreach my $file (@template_files) { $input_tmpl =~ s/"(\w+)\+"/"$1plus"/ig; $input_tmpl =~ s/"(\w+)\-"/"$1minus"/ig; $input_tmpl =~ s/"(\w+)!"/"$1exclamation"/ig; -# $input_tmpl =~ s/"(\w+),(\w+)"/"$1comma$2"/ig; #caused a problem in patron search + $input_tmpl =~ s/"(\w+),(\w+)"/"$1comma$2"/ig; #caused a problem in patron search $input_tmpl =~ s/NAME="mod"/NAME="modname"/ig; # handle 'naked' TMPL_VAR "parameter" by turning them into what they should be, TMPL_VAR NAME="parameter" $input_tmpl =~ s/TMPL_VAR\s+"(\w+)"/TMPL_VAR NAME="$1"/ig;