From 275d5ee24c327f309fc3f11d09ee741f446e508f Mon Sep 17 00:00:00 2001 From: kados Date: Tue, 11 Jul 2006 14:06:57 +0000 Subject: [PATCH] sync with rel_2_2 and some minor updates --- .../opac-tmpl/npl/en/includes/catsearch.js | 4 +- .../opac-tmpl/npl/en/includes/livesearch.js | 8 +- koha-tmpl/opac-tmpl/npl/en/includes/main.js | 3 +- .../opac-tmpl/npl/en/includes/masthead.inc | 19 +- .../opac-tmpl/npl/en/includes/navigation.inc | 5 +- .../npl/en/includes/opac-colors.npl.css | 20 +- .../npl/en/includes/opac-colors.smfpl.css | 6 + .../opac-tmpl/npl/en/includes/opac-layout.css | 46 +++- .../npl/en/includes/opac-layout.smfpl.css | 33 +++ .../opac-tmpl/npl/en/opac-MARCdetail.tmpl | 20 +- .../opac-tmpl/npl/en/opac-catalogue-home.tmpl | 226 ++++++++++++++++++ koha-tmpl/opac-tmpl/npl/en/opac-cql.tmpl | 53 ++++ koha-tmpl/opac-tmpl/npl/en/opac-detail.tmpl | 6 +- .../opac-tmpl/npl/en/opac-dictionary.tmpl | 3 + koha-tmpl/opac-tmpl/npl/en/opac-main.tmpl | 2 +- koha-tmpl/opac-tmpl/npl/en/opac-results.tmpl | 182 +++++++++----- .../opac-tmpl/npl/en/opac-searchresults.tmpl | 2 +- koha-tmpl/opac-tmpl/npl/en/opac-user.tmpl | 2 +- .../opac-tmpl/npl/en/opac-zoomsearch.tmpl | 95 +++++--- 19 files changed, 595 insertions(+), 140 deletions(-) create mode 100644 koha-tmpl/opac-tmpl/npl/en/opac-catalogue-home.tmpl create mode 100644 koha-tmpl/opac-tmpl/npl/en/opac-cql.tmpl diff --git a/koha-tmpl/opac-tmpl/npl/en/includes/catsearch.js b/koha-tmpl/opac-tmpl/npl/en/includes/catsearch.js index bb2cffe9bd..b3c32f2436 100644 --- a/koha-tmpl/opac-tmpl/npl/en/includes/catsearch.js +++ b/koha-tmpl/opac-tmpl/npl/en/includes/catsearch.js @@ -1,12 +1,12 @@ function hideSearchsTypes() { - document.getElementById('cql').style.display = 'none'; + document.getElementById('simple').style.display = 'none'; document.getElementById('advanced').style.display = 'none'; document.getElementById('power').style.display = 'none'; document.getElementById('proximity').style.display = 'none'; } function resetButtonsColors() { - document.getElementById('cql_formButton').className = 'off'; + document.getElementById('simple_formButton').className = 'off'; document.getElementById('advanced_formButton').className = 'off'; document.getElementById('power_formButton').className = 'off'; document.getElementById('proximity_formButton').className = 'off'; diff --git a/koha-tmpl/opac-tmpl/npl/en/includes/livesearch.js b/koha-tmpl/opac-tmpl/npl/en/includes/livesearch.js index 87229810f9..41062bb150 100644 --- a/koha-tmpl/opac-tmpl/npl/en/includes/livesearch.js +++ b/koha-tmpl/opac-tmpl/npl/en/includes/livesearch.js @@ -118,11 +118,11 @@ function liveSearchDoSearch() { if (typeof liveSearchParams == "undefined") { liveSearchParams = ""; } - if (liveSearchLast != document.forms.searchform.cql_query.value) { + if (liveSearchLast != document.forms.searchform.ccl_query.value) { if (liveSearchReq && liveSearchReq.readyState < 4) { liveSearchReq.abort(); } - if ( document.forms.searchform.cql_query.value == "") { + if ( document.forms.searchform.ccl_query.value == "") { liveSearchHide(); return false; } @@ -132,8 +132,8 @@ function liveSearchDoSearch() { liveSearchReq = new ActiveXObject("Microsoft.XMLHTTP"); } liveSearchReq.onreadystatechange= liveSearchProcessReqChange; - liveSearchReq.open("GET", liveSearchRoot + "/cgi-bin/koha/livesearch.pl?cql_query=" + document.forms.searchform.cql_query.value + liveSearchParams); - liveSearchLast = document.forms.searchform.cql_query.value; + liveSearchReq.open("GET", liveSearchRoot + "/cgi-bin/koha/livesearch.pl?ccl_query=" + document.forms.searchform.ccl_query.value + liveSearchParams); + liveSearchLast = document.forms.searchform.ccl_query.value; liveSearchReq.send(null); } } diff --git a/koha-tmpl/opac-tmpl/npl/en/includes/main.js b/koha-tmpl/opac-tmpl/npl/en/includes/main.js index 2a8b6c934c..3d568183d7 100644 --- a/koha-tmpl/opac-tmpl/npl/en/includes/main.js +++ b/koha-tmpl/opac-tmpl/npl/en/includes/main.js @@ -5,5 +5,6 @@ window.onload=kohajs; // check to see if functions exist before loading them function kohajs() { if ( typeof window.verify_images == "function" ) verify_images(); +// if ( typeof window.liveSearchInit == "function" ) liveSearchInit(); + if ( typeof window.runLSPrep == "function" ) runLSPrep(); } - diff --git a/koha-tmpl/opac-tmpl/npl/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/npl/en/includes/masthead.inc index 3962a10f51..90f8d31178 100644 --- a/koha-tmpl/opac-tmpl/npl/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/npl/en/includes/masthead.inc @@ -1,14 +1,15 @@

<!-- TMPL_VAR NAME=" src="" />Library Catalog Search

- +