@@ -, +, @@ --- installer/data/mysql/sysprefs.sql | 3 ++ .../prog/en/modules/admin/preferences/opac.pref | 15 ++++++ .../bootstrap/en/modules/opac-proxypage.tt | 40 +++++++++++++++ opac/opac-proxypage.pl | 54 ++++++++++++++++++++ 4 files changed, 112 insertions(+) create mode 100644 koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-proxypage.tt create mode 100755 opac/opac-proxypage.pl --- a/installer/data/mysql/sysprefs.sql +++ a/installer/data/mysql/sysprefs.sql @@ -344,6 +344,9 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('previousIssuesDefaultSortOrder','asc','asc|desc','Specify the sort order of Previous Issues on the circulation page','Choice'), ('printcirculationslips','1','','If ON, enable printing circulation receipts','YesNo'), ('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'), +('ProxyPageLocalIPs','',NULL,'Beginning of IP addresses considered as local (comma separated ex: "127.0.0,127.0.2")','Free'), +('ProxyPageContent','',NULL,'HTML content of the proxy page','TextArea'), +('ProxyPageTitle','',NULL,'Title of the proxy page (breadcrumb and header)','Free'), ('QueryAutoTruncate','1',NULL,'If ON, query truncation is enabled by default','YesNo'), ('QueryFuzzy','1',NULL,'If ON, enables fuzzy option for searches','YesNo'), ('QueryStemming','1',NULL,'If ON, enables query stemming','YesNo'), --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref @@ -601,6 +601,21 @@ OPAC: track: "Track" no: "Don't track" - links that patrons click on + Proxy page: + - + - "Access from IP addresses beginning with" + - pref: ProxyPageLocalIPs + - "do not need to be authenticated (comma separated - ex: '127.0.0,127.0.1')" + - + - "HTML content of your proxy page" + - pref: ProxyPageContent + type: textarea + class: HTML + - + - Use + - pref: ProxyPageTitle + class: long + - "as title of your proxy page (appears in the breadcrumb and on the top of the proxy page)" Shelf Browser: - --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-proxypage.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-proxypage.tt @@ -0,0 +1,40 @@ +[% USE Koha %] +[% USE KohaDates %] + +[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog[% IF ProxyPageTitle %] › [% ProxyPageTitle %][% END %] + +[% INCLUDE 'doc-head-close.inc' %] +[% BLOCK cssinclude %][% END %] + +
+[% INCLUDE 'masthead.inc' %] + +