View | Details | Raw Unified | Return to bug 5010
Collapse All | Expand All

(-)a/basket/sendbasket.pl (-4 / +1 lines)
Lines 100-109 if ( $email_add ) { Link Here
100
        push( @results, $dat );
100
        push( @results, $dat );
101
    }
101
    }
102
102
103
  my $protocol = C4::Context->preference('PublicCatalogUsesSSL') ? "https://" : "http://";
103
    $template2->param( OPACBaseURL => C4::Context->preference('OPACBaseURL') );
104
  if (C4::Context->preference('OPACBaseURL')){
105
        $template2->param( OPACBaseURL =>  $protocol . C4::Context->preference('OPACBaseURL') );
106
  }
107
104
108
    my $resultsarray = \@results;
105
    my $resultsarray = \@results;
109
    $template2->param(
106
    $template2->param(
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 253-258 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
253
('OPACPatronDetails','1','','If OFF the patron details tab in the OPAC is disabled.','YesNo'),
253
('OPACPatronDetails','1','','If OFF the patron details tab in the OPAC is disabled.','YesNo'),
254
('OPACpatronimages','0',NULL,'Enable patron images in the OPAC','YesNo'),
254
('OPACpatronimages','0',NULL,'Enable patron images in the OPAC','YesNo'),
255
('OpacPrivacy','0',NULL,'if ON, allows patrons to define their privacy rules (reading history)','YesNo'),
255
('OpacPrivacy','0',NULL,'if ON, allows patrons to define their privacy rules (reading history)','YesNo'),
256
('OpacProtocol','http://','http://|https://','Public catalog/OPAC uses SSL','Choice'),
256
('OpacPublic','1',NULL,'Turn on/off public OPAC','YesNo'),
257
('OpacPublic','1',NULL,'Turn on/off public OPAC','YesNo'),
257
('opacreadinghistory','1','','If ON, enables display of Patron Circulation History in OPAC','YesNo'),
258
('opacreadinghistory','1','','If ON, enables display of Patron Circulation History in OPAC','YesNo'),
258
('OpacRenewalAllowed','0',NULL,'If ON, users can renew their issues directly from their OPAC account','YesNo'),
259
('OpacRenewalAllowed','0',NULL,'If ON, users can renew their issues directly from their OPAC account','YesNo'),
Lines 306-312 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
306
('previousIssuesDefaultSortOrder','asc','asc|desc','Specify the sort order of Previous Issues on the circulation page','Choice'),
307
('previousIssuesDefaultSortOrder','asc','asc|desc','Specify the sort order of Previous Issues on the circulation page','Choice'),
307
('printcirculationslips','1','','If ON, enable printing circulation receipts','YesNo'),
308
('printcirculationslips','1','','If ON, enable printing circulation receipts','YesNo'),
308
('PrintNoticesMaxLines','0','','If greater than 0, sets the maximum number of lines an overdue notice will print. If the number of items is greater than this number, the notice will end with a warning asking the borrower to check their online account for a full list of overdue items.','Integer'),
309
('PrintNoticesMaxLines','0','','If greater than 0, sets the maximum number of lines an overdue notice will print. If the number of items is greater than this number, the notice will end with a warning asking the borrower to check their online account for a full list of overdue items.','Integer'),
309
('PublicCatalogUsesSSL',0,'','Public catalog/OPAC uses SSL','YesNo'),
310
('QueryAutoTruncate','1',NULL,'If ON, query truncation is enabled by default','YesNo'),
310
('QueryAutoTruncate','1',NULL,'If ON, query truncation is enabled by default','YesNo'),
311
('QueryFuzzy','1',NULL,'If ON, enables fuzzy option for searches','YesNo'),
311
('QueryFuzzy','1',NULL,'If ON, enables fuzzy option for searches','YesNo'),
312
('QueryStemming','1',NULL,'If ON, enables query stemming','YesNo'),
312
('QueryStemming','1',NULL,'If ON, enables query stemming','YesNo'),
(-)a/installer/data/mysql/updatedatabase.pl (-2 / +2 lines)
Lines 8110-8117 if(CheckVersion($DBversion)) { Link Here
8110
$DBversion = "3.15.00.XXX";
8110
$DBversion = "3.15.00.XXX";
8111
if ( CheckVersion($DBversion) ) {
8111
if ( CheckVersion($DBversion) ) {
8112
    $dbh->do(q{INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
8112
    $dbh->do(q{INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
8113
        ('PublicCatalogUsesSSL',0,'','Public catalog/OPAC uses SSL','YesNo');});
8113
        ('OpacProtocol','http://','http://|https://','Public catalog/OPAC uses SSL','Choice');});
8114
    print "Upgrade to $DBversion done (Bug 5010: Add PublicCatalogUsesSSL system preference)\n";
8114
    print "Upgrade to $DBversion done (Bug 5010: Add OpacProtocol system preference)\n";
8115
    SetVersion($DBversion);
8115
    SetVersion($DBversion);
8116
}
8116
}
8117
8117
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-3 / +3 lines)
Lines 447-456 OPAC: Link Here
447
            - patrons to select their branch on the OPAC or show branch names with callnumbers.
447
            - patrons to select their branch on the OPAC or show branch names with callnumbers.
448
        -
448
        -
449
            - The public catalog
449
            - The public catalog
450
            - pref: PublicCatalogUsesSSL
450
            - pref: OpacProtocol
451
              choices:
451
              choices:
452
                  yes: uses
452
                  "https://": uses
453
                  no: "doesn't use"
453
                  "http://": "doesn't use"
454
            - SSL.
454
            - SSL.
455
        -
455
        -
456
            - pref: SearchMyLibraryFirst
456
            - pref: SearchMyLibraryFirst
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt (-2 / +2 lines)
Lines 1-4 Link Here
1
<SUBJECT>
1
[%- USE Koha -%]<SUBJECT>
2
Your cart
2
Your cart
3
<END_SUBJECT>
3
<END_SUBJECT>
4
4
Lines 134-140 Your cart Link Here
134
134
135
            [% IF ( OPACBaseURL ) %]
135
            [% IF ( OPACBaseURL ) %]
136
            <p>
136
            <p>
137
                In online catalog: [% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% BIBLIO_RESULT.biblionumber %]
137
                In online catalog: [% Koha.Preference( 'OPACProtocol' ) %][% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% BIBLIO_RESULT.biblionumber %]
138
            </p>
138
            </p>
139
            [% END %]
139
            [% END %]
140
            [% IF ( BIBLIO_RESULT.ITEM_RESULTS.size ) %]
140
            [% IF ( BIBLIO_RESULT.ITEM_RESULTS.size ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt (-2 / +2 lines)
Lines 1-4 Link Here
1
<SUBJECT>
1
[%- USE Koha -%]<SUBJECT>
2
Your List : [% shelfname %]
2
Your List : [% shelfname %]
3
<END_SUBJECT>
3
<END_SUBJECT>
4
4
Lines 35-41 Classification: [% BIBLIO_RESULT.classification %][% END %][% IF ( BIBLIO_RESULT Link Here
35
LCCN: [% BIBLIO_RESULT.lccn %][% END %][% IF ( BIBLIO_RESULT.url ) %]
35
LCCN: [% BIBLIO_RESULT.lccn %][% END %][% IF ( BIBLIO_RESULT.url ) %]
36
URL : [% BIBLIO_RESULT.url %][% END %][% IF ( OPACBaseURL ) %]
36
URL : [% BIBLIO_RESULT.url %][% END %][% IF ( OPACBaseURL ) %]
37
In the online catalog:
37
In the online catalog:
38
    [% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% BIBLIO_RESULT.biblionumber |url %][% END %]
38
    [% Koha.Preference( 'OPACProtocol' ) %][% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% BIBLIO_RESULT.biblionumber |url %][% END %]
39
Items : [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
39
Items : [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
40
    [% ITEM_RESULT.branchname %] [% ITEM_RESULT.location %] [% IF ( ITEM_RESULT.itemcallnumber ) %]([% ITEM_RESULT.itemcallnumber %])[% END %] [% ITEM_RESULT.barcode %][% END %]
40
    [% ITEM_RESULT.branchname %] [% ITEM_RESULT.location %] [% IF ( ITEM_RESULT.itemcallnumber ) %]([% ITEM_RESULT.itemcallnumber %])[% END %] [% ITEM_RESULT.barcode %][% END %]
41
41
(-)a/opac/opac-sendshelf.pl (+4 lines)
Lines 107-112 if ( $email ) { Link Here
107
107
108
    my $user = GetMember(borrowernumber => $borrowernumber);
108
    my $user = GetMember(borrowernumber => $borrowernumber);
109
109
110
    if (C4::Context->preference('OPACBaseURL')){
111
          $template2->param( OPACBaseURL => C4::Context->preference('OPACBaseURL') );
112
    }
113
110
    $template2->param(
114
    $template2->param(
111
        BIBLIO_RESULTS => \@results,
115
        BIBLIO_RESULTS => \@results,
112
        email_sender   => $email_from,
116
        email_sender   => $email_from,
(-)a/virtualshelves/sendshelf.pl (-5 / +1 lines)
Lines 100-109 if ( $email ) { Link Here
100
        push( @results, $dat );
100
        push( @results, $dat );
101
    }
101
    }
102
102
103
  my $protocol = C4::Context->preference('PublicCatalogUsesSSL') ? "https://" : "http://";
103
    $template2->param( OPACBaseURL => C4::Context->preference('OPACBaseURL') );
104
  if (C4::Context->preference('OPACBaseURL')){
105
        $template2->param( OPACBaseURL => $protocol . C4::Context->preference('OPACBaseURL') );
106
  }
107
104
108
    $template2->param(
105
    $template2->param(
109
        BIBLIO_RESULTS => \@results,
106
        BIBLIO_RESULTS => \@results,
110
- 

Return to bug 5010