Bugzilla – Attachment 1537 Details for
Bug 3719
Create syspref to allow sites to rename OPAC Cart
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
main patch file
0001-Bug-3719-create-syspref-to-rename-OPAC-Cart-feature.patch (text/plain), 24.14 KB, created by
Chris Cormack
on 2010-02-03 18:38:00 UTC
(
hide
)
Description:
main patch file
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2010-02-03 18:38:00 UTC
Size:
24.14 KB
patch
obsolete
>From 5e2e03b7aed83216ba6f18236861e01be26cba08 Mon Sep 17 00:00:00 2001 >From: Jane Wagner <jwagner@ptfs.com> >Date: Thu, 22 Oct 2009 14:04:57 -0400 >Subject: [PATCH] Bug-3719-create-syspref-to-rename-OPAC-Cart-feature >Content-Type: text/plain; charset="utf-8" > >Allows libraries to set a syspref to rename the OPAC Cart feature from Cart >to something else, like Bookbag or Personal Shelf. The syspref defaults to >Cart, and if no text is entered, the code should also default to Cart. >--- > C4/Auth.pm | 3 +++ > admin/systempreferences.pl | 1 + > installer/data/mysql/en/mandatory/sysprefs.sql | 1 + > .../1-Obligatoire/unimarc_standard_systemprefs.sql | 1 + > .../ru-RU/mandatory/system_preferences_optimal.sql | 1 + > installer/data/mysql/updatedatabase.pl | 7 +++++++ > .../opac-tmpl/prog/en/includes/doc-head-close.inc | 16 ++++++++-------- > koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc | 2 +- > .../opac-tmpl/prog/en/modules/opac-ISBDdetail.tmpl | 2 +- > .../opac-tmpl/prog/en/modules/opac-MARCdetail.tmpl | 2 +- > .../opac-tmpl/prog/en/modules/opac-basket.tmpl | 6 +++--- > .../opac-tmpl/prog/en/modules/opac-detail.tmpl | 2 +- > .../prog/en/modules/opac-results-grouped.tmpl | 4 ++-- > .../opac-tmpl/prog/en/modules/opac-results.tmpl | 6 +++--- > .../prog/en/modules/opac-sendbasketform.tmpl | 8 ++++---- > 15 files changed, 38 insertions(+), 24 deletions(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 7574f9e..42b7c38 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -33,6 +33,7 @@ use POSIX qw/strftime/; > # use utf8; > use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $debug $ldap); > >+my $opacbookbagName = C4::Context->preference('opacbookbagName') || "Cart"; > BEGIN { > $VERSION = 3.02; # set version for version checking > $debug = $ENV{DEBUG} || 0 ; >@@ -365,6 +366,7 @@ sub get_template_and_user { > opaccolorstylesheet => "" . C4::Context->preference("opaccolorstylesheet"), > opacstylesheet => "" . C4::Context->preference("opacstylesheet"), > opacbookbag => "" . C4::Context->preference("opacbookbag"), >+ opacbookbagName => $opacbookbagName, > opaccredits => "" . C4::Context->preference("opaccredits"), > opacheader => "" . C4::Context->preference("opacheader"), > opaclanguagesdisplay => "" . C4::Context->preference("opaclanguagesdisplay"), >@@ -833,6 +835,7 @@ sub checkauth { > opaclanguagesdisplay => C4::Context->preference("opaclanguagesdisplay"), > opacuserjs => C4::Context->preference("opacuserjs"), > opacbookbag => "" . C4::Context->preference("opacbookbag"), >+ opacbookbagName => $opacbookbagName, > OpacCloud => C4::Context->preference("OpacCloud"), > OpacTopissue => C4::Context->preference("OpacTopissue"), > OpacAuthorities => C4::Context->preference("OpacAuthorities"), >diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl >index e96c109..da3d4f4 100755 >--- a/admin/systempreferences.pl >+++ b/admin/systempreferences.pl >@@ -328,6 +328,7 @@ $tabsysprefs{DisplayOPACiconsXSLT} = "OPAC"; > $tabsysprefs{SearchMyLibraryFirst} = "OPAC"; > $tabsysprefs{hidelostitems} = "OPAC"; > $tabsysprefs{opacbookbag} = "OPAC"; >+$tabsysprefs{opacbookbagName} = "OPAC"; > $tabsysprefs{OpacPasswordChange} = "OPAC"; > $tabsysprefs{opacreadinghistory} = "OPAC"; > $tabsysprefs{virtualshelves} = "OPAC"; >diff --git a/installer/data/mysql/en/mandatory/sysprefs.sql b/installer/data/mysql/en/mandatory/sysprefs.sql >index 6f60fa7..a5b386e 100644 >--- a/installer/data/mysql/en/mandatory/sysprefs.sql >+++ b/installer/data/mysql/en/mandatory/sysprefs.sql >@@ -262,3 +262,4 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES > INSERT INTO systempreferences (variable,value,options,explanation,type)VALUES('DisplayOPACiconsXSLT', '1', '', 'If ON, displays the format, audience, type icons in XSLT MARC21 results and display pages.', 'YesNo'); > INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('AllowAllMessageDeletion','0','Allow any Library to delete any message','','YesNo'); > INSERT INTO systempreferences (variable,value,explanation,options,type)VALUES('ShowPatronImageInWebBasedSelfCheck', '0', 'If ON, displays patron image when a patron uses web-based self-checkout', '', 'YesNo'); >+INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opacbookbagName','Cart','Allows libraries to define a different name for the OPAC Cart feature, such as Bookbag or Personal Shelf. If no name is defined, it will default to Cart.','70|10','Textarea'); >diff --git a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql >index bee360a..b6f3381 100644 >--- a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql >+++ b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql >@@ -261,3 +261,4 @@ INSERT INTO systempreferences (variable,value,options,explanation,type)VALUES('H > INSERT INTO systempreferences (variable,value,options,explanation,type)VALUES('DisplayOPACiconsXSLT', '1', '', 'Si activé, affiche le format, le type de public et les icônes de type en XSLT (MARC21)).', 'YesNo'); > INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('AllowAllMessageDeletion','0','Allow any Library to delete any message','','YesNo'); > INSERT INTO systempreferences (variable,value,explanation,options,type)VALUES('ShowPatronImageInWebBasedSelfCheck', '0', 'Si activé, affiche la photo de l''adhérent lors de l''utilisation de la console de prêt auto-contrôlé', '', 'YesNo'); >+INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opacbookbagName','Panier','Permet de renommer la fonctionnalité de Panier à l'OPAC, par exemple en Etagère Personnelle. Si vous n'utilisez par cette préférence système, le terme de Panier sera utilisé par défaut',t.'70|10','Textarea'); >diff --git a/installer/data/mysql/ru-RU/mandatory/system_preferences_optimal.sql b/installer/data/mysql/ru-RU/mandatory/system_preferences_optimal.sql >index 61318c0..168a549 100644 >--- a/installer/data/mysql/ru-RU/mandatory/system_preferences_optimal.sql >+++ b/installer/data/mysql/ru-RU/mandatory/system_preferences_optimal.sql >@@ -238,3 +238,4 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES(' > INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('MergeAuthoritiesOnUpdate', '1', 'if ON, Updating authorities will automatically updates biblios',NULL,'YesNo'); > INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('AllowNotForLoanOverride', '0', 'if ON, enables the librarian to choose when they want to check out a notForLoan regular item',NULL,'YesNo'); > INSERT INTO systempreferences (variable,value,options,explanation,type)VALUES('DisplayOPACiconsXSLT', '1', '', 'If ON, displays the format, audience, type icons in XSLT MARC21 results and display pages.', 'YesNo'); >+INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opacbookbagName','Cart','Allows libraries to define a different name for the OPAC Cart feature, such as Bookbag or Personal Shelf. If no name is defined, it will default to Cart.','70|10','Textarea'); >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 10c3451..1a926aa 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -2675,6 +2675,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { > SetVersion ($DBversion); > } > >+$DBversion = '3.01.00.062'; >+if (C4::Context->preference("Version") < TransformToNum($DBversion)) { >+ $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type)VALUES('opacbookbagName', 'Cart', 'Allows libraries to define a different name for the OPAC Cart feature, such as Bookbag or Personal Shelf. If no name is defined, it will default to Cart.', '70|10', 'Textarea')"); >+ print "Upgrade to $DBversion done ( Added system preference to rename OPAC cart feature)\n"; >+ SetVersion ($DBversion); >+} >+ > =item DropAllForeignKeys($table) > > Drop all foreign keys of the table $table >diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc b/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc >index 8b148ca..9a78f89 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc >+++ b/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc >@@ -41,16 +41,16 @@ > <!-- TMPL_IF NAME="TagsEnabled" --><script type="text/javascript" language="javascript" src="<!-- TMPL_VAR NAME="themelang" -->/js/tags.js"></script><!-- /TMPL_IF --> > <script type="text/javascript" language="javascript"> > //<![CDATA[ >- <!-- TMPL_IF NAME="opacbookbag" -->var MSG_BASKET_EMPTY = _("Your cart is currently empty"); >- var MSG_RECORD_IN_BASKET = _("This item is already in your cart"); >- var MSG_RECORD_ADDED = _("This item has been added to your cart"); >- var MSG_NRECORDS_ADDED = _(" item(s) added to your cart"); >- var MSG_NRECORDS_IN_BASKET = _("already in your cart"); >+ <!-- TMPL_IF NAME="opacbookbag" -->var MSG_BASKET_EMPTY = _("Your <TMPL_VAR NAME="opacbookbagName"> is currently empty"); >+ var MSG_RECORD_IN_BASKET = _("This item is already in your <TMPL_VAR NAME="opacbookbagName">"); >+ var MSG_RECORD_ADDED = _("This item has been added to your <TMPL_VAR NAME="opacbookbagName">"); >+ var MSG_NRECORDS_ADDED = _(" item(s) added to your <TMPL_VAR NAME="opacbookbagName">"); >+ var MSG_NRECORDS_IN_BASKET = _("already in your <TMPL_VAR NAME="opacbookbagName">"); > var MSG_NO_RECORD_SELECTED = _("No item was selected"); >- var MSG_NO_RECORD_ADDED = _("No item was added to your cart"); >- var MSG_CONFIRM_DEL_BASKET = _("Are you sure you want to empty your cart?"); >+ var MSG_NO_RECORD_ADDED = _("No item was added to your <TMPL_VAR NAME="opacbookbagName">"); >+ var MSG_CONFIRM_DEL_BASKET = _("Are you sure you want to empty your <TMPL_VAR NAME="opacbookbagName">?"); > var MSG_CONFIRM_DEL_RECORDS = _("Are you sure you want to remove the selected items?"); >- $("#cartDetails").ready(function(){ $("#cmspan").html("<a href=\"#\" id=\"cartmenulink\" class=\"\"><i><\/i><span><i><\/i><span><\/span><img src=\"/opac-tmpl/prog/images/cart.gif\" width=\"14\" height=\"14\" alt=\"\" border=\"0\" /> "+_("Cart")+"<span id=\"basketcount\"><\/span><\/span><\/a>"); }); <!-- /TMPL_IF --> >+ $("#cartDetails").ready(function(){ $("#cmspan").html("<a href=\"#\" id=\"cartmenulink\" class=\"\"><i><\/i><span><i><\/i><span><\/span><img src=\"/opac-tmpl/prog/images/cart.gif\" width=\"14\" height=\"14\" alt=\"\" border=\"0\" /> "+_("<TMPL_VAR NAME="opacbookbagName">")+"<span id=\"basketcount\"><\/span><\/span><\/a>"); }); <!-- /TMPL_IF --> > <!-- TMPL_IF NAME="OPACAmazonCoverImages" -->$(window).load(function() { > verify_images(); > });<!-- /TMPL_IF --> >diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc >index afe34d3..1143be8 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc >+++ b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc >@@ -94,7 +94,7 @@ > </div> > </div> > >-<!-- TMPL_IF NAME="opacbookbag" --><div id="cartDetails">Your cart is empty.</div><!-- /TMPL_IF --> >+<!-- TMPL_IF NAME="opacbookbag" --><div id="cartDetails">Your <TMPL_VAR NAME="opacbookbagName"> is empty.</div><!-- /TMPL_IF --> > > <!-- TMPL_IF NAME="virtualshelves" --> > <div id="listsmenu" class="yuimenu" style="display: none"> >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tmpl >index 85ac350..2291b9b 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tmpl >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tmpl >@@ -73,7 +73,7 @@ > <!-- /TMPL_IF --><!-- /TMPL_IF --> > <!-- /TMPL_IF --> > <!-- TMPL_IF NAME="opacbookbag" --><li><a class="addtocart" href="#" onclick="addRecord('<!-- TMPL_VAR NAME="biblionumber" -->'); return false;"> >- Add to Your Cart >+ Add to Your <TMPL_VAR NAME="opacbookbagName"> > </a></li><!-- /TMPL_IF --> > </ul> > >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tmpl >index 939fcfd..580aead 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tmpl >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tmpl >@@ -188,7 +188,7 @@ > <!-- /TMPL_IF --><!-- /TMPL_IF --> > <!-- /TMPL_IF --> > <!-- TMPL_IF NAME="opacbookbag" --><li><a class="addtocart" href="#" onclick="addRecord('<!-- TMPL_VAR NAME="biblionumber" -->'); return false;"> >- Add to Your Cart >+ Add to Your <TMPL_VAR NAME="opacbookbagName"> > </a></li><!-- /TMPL_IF --> > </ul> > >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tmpl >index a687d64..3be341d 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tmpl >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tmpl >@@ -1,5 +1,5 @@ > <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --> >-<!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog › Your Cart >+<!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog › Your <TMPL_VAR NAME="opacbookbagName"> > <!-- TMPL_IF NAME="print_basket" --></title> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> > <link rel="shortcut icon" href="<!-- TMPL_VAR NAME="themelang" -->/includes/favicon.ico" type="image/x-icon" /> >@@ -112,7 +112,7 @@ function tagAdded() { > <div id="doc" class="yui-t7"> > <div class="container"> > <!-- TMPL_UNLESS NAME="print_basket" --> >-<h1>Your Cart</h1> >+<h1>Your <TMPL_VAR NAME="opacbookbagName"></h1> > > <div id="toolbar"> > <ul> >@@ -356,7 +356,7 @@ function tagAdded() { > <!-- /TMPL_IF --> > > <!-- TMPL_IF NAME="print_basket" --> >-<a href="#back" class="screen"><< Back to Cart</a> >+<a href="#back" class="screen"><< Back to <TMPL_VAR NAME="opacbookbagName"></a> > <!-- TMPL_ELSE --> > <form name="myform" action="opac-basket.pl" method="get"> > <input type="hidden" name="records" id="records" /> >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 ea5f188..a5b91e5 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl >@@ -24,7 +24,7 @@ > });<!-- TMPL_IF NAME="GoogleJackets" --> > KOHA.Google.GetCoverFromIsbn();<!-- /TMPL_IF --><!-- TMPL_IF NAME="TagsEnabled" --> > $(".tagbutton").click(KOHA.Tags.add_tag_button);<!-- /TMPL_IF --> >- <!-- TMPL_IF NAME="opacbookbag" -->$("a.print").parent().after("<li><a class=\"addtocart\" href=\"#\" onclick=\"addRecord('"+$("input[name=bib]").val()+"'); return false;\">"+_("Add to Your Cart")+"<\/a><\/li>"); >+ <!-- TMPL_IF NAME="opacbookbag" -->$("a.print").parent().after("<li><a class=\"addtocart\" href=\"#\" onclick=\"addRecord('"+$("input[name=bib]").val()+"'); return false;\">"+_("Add to Your <TMPL_VAR NAME="opacbookbagName">")+"<\/a><\/li>"); > <!-- /TMPL_IF -->}); > > YAHOO.util.Event.onContentReady("furtherm", function () { >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results-grouped.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results-grouped.tmpl >index dd27de6..27bb1ce 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results-grouped.tmpl >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results-grouped.tmpl >@@ -21,7 +21,7 @@ $(document).ready(function(){ > }); > $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">Clear All</a>"); > $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">Select All</a>"); >- $("span.addto").html("<label for=\"addto\">Add to: </label><select name=\"addto\" id=\"addto\"><option value=\"\"></option><!-- TMPL_IF name="opacbookbag" --><option value=\"addtocart\">Cart</option><!-- /TMPL_IF --><!-- TMPL_IF NAME="virtualshelves" --><!-- TMPL_IF NAME="loggedinusername" --><optgroup label=\"Lists:\"><!-- TMPL_IF NAME="barshelves" --><!-- TMPL_LOOP NAME="barshelvesloop" --><!-- TMPL_IF EXPR="category == 1" --><option id=\"s<!-- TMPL_VAR NAME="shelfnumber" -->\" value=\"addtolist\"><!-- TMPL_VAR NAME="shelfname" --></option><!-- /TMPL_IF --><!-- /TMPL_LOOP --><!-- /TMPL_IF --><option value=\"newlist\">[ New List ]</option></optgroup><!-- TMPL_ELSE --><option value=\"newlist\">List</option><!-- /TMPL_IF --><!-- /TMPL_IF --></select> <input type=\"submit\" class=\"submit\" value=\"Save\" />"); >+ $("span.addto").html("<label for=\"addto\">Add to: </label><select name=\"addto\" id=\"addto\"><option value=\"\"></option><!-- TMPL_IF name="opacbookbag" --><option value=\"addtocart\"><TMPL_VAR NAME="opacbookbagName"></option><!-- /TMPL_IF --><!-- TMPL_IF NAME="virtualshelves" --><!-- TMPL_IF NAME="loggedinusername" --><optgroup label=\"Lists:\"><!-- TMPL_IF NAME="barshelves" --><!-- TMPL_LOOP NAME="barshelvesloop" --><!-- TMPL_IF EXPR="category == 1" --><option id=\"s<!-- TMPL_VAR NAME="shelfnumber" -->\" value=\"addtolist\"><!-- TMPL_VAR NAME="shelfname" --></option><!-- /TMPL_IF --><!-- /TMPL_LOOP --><!-- /TMPL_IF --><option value=\"newlist\">[ New List ]</option></optgroup><!-- TMPL_ELSE --><option value=\"newlist\">List</option><!-- /TMPL_IF --><!-- /TMPL_IF --></select> <input type=\"submit\" class=\"submit\" value=\"Save\" />"); > $("#addto").change(function(){ > cartList(); > }); >@@ -263,7 +263,7 @@ function highlightOn() { > <!-- /TMPL_UNLESS --> > <!-- /TMPL_IF --> > >- <!--TMPL_IF EXPR="opacbookbag || virtualshelves" --><input type="checkbox" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" title="Click to add to cart" /> <label for="bib<!-- TMPL_VAR NAME="biblionumber" -->"><!-- /TMPL_IF --><img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="ccode" -->" title="<!-- TMPL_VAR NAME="ccode" -->" /><!--TMPL_IF EXPR="opacbookbag || virtualshelves" --></label><!-- /TMPL_IF --> <!-- TMPL_IF name="classification" --> >+ <!--TMPL_IF EXPR="opacbookbag || virtualshelves" --><input type="checkbox" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" title="Click to add to <TMPL_VAR NAME="opacbookbagName">" /> <label for="bib<!-- TMPL_VAR NAME="biblionumber" -->"><!-- /TMPL_IF --><img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="ccode" -->" title="<!-- TMPL_VAR NAME="ccode" -->" /><!--TMPL_IF EXPR="opacbookbag || virtualshelves" --></label><!-- /TMPL_IF --> <!-- TMPL_IF name="classification" --> > <a href="/cgi-bin/koha/opac-search.pl?q=callnum:<!-- TMPL_VAR NAME="classification" ESCAPE="URL" -->"> > <!-- TMPL_VAR NAME="classification" --> > </a> >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl >index eb995f1..a40d6f5 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl >@@ -96,7 +96,7 @@ function highlightOn() { > $(document).ready(function(){ > $(".addtocart").show(); > var param1 = "<label for=\"addto\">"+_("Add to: ")+"<\/label><select name=\"addto\" id=\"addto\"><option value=\"\"><\/option>"; >- <!-- TMPL_IF name="opacbookbag" --> param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>"; >+ <!-- TMPL_IF name="opacbookbag" --> param1 += "<option value=\"addtocart\">"+_("<TMPL_VAR NAME="opacbookbagName">")+"<\/option>"; > <!-- /TMPL_IF --><!-- TMPL_IF NAME="virtualshelves" --><!-- TMPL_IF NAME="loggedinusername" --><!-- TMPL_IF NAME="addbarshelves" --> > param1 += "<optgroup label=\""+_("Your Lists:")+"\">";<!-- TMPL_LOOP NAME="addbarshelvesloop" --> > param1 += "<option id=\"s<!-- TMPL_VAR NAME="shelfnumber" -->\" value=\"addtolist\"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html"--><\/option>";<!-- /TMPL_LOOP --> >@@ -338,7 +338,7 @@ $(document).ready(function(){ > <tr> > <!-- /TMPL_UNLESS --> > >- <td class="select selectcol"><!--TMPL_IF EXPR="opacbookbag || virtualshelves" --><input type="checkbox" id="bib<!-- TMPL_VAR NAME="biblionumber" -->" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" title="Click to add to cart" /> <label for="bib<!-- TMPL_VAR NAME="biblionumber" -->"></label><!-- /TMPL_IF --></td> >+ <td class="select selectcol"><!--TMPL_IF EXPR="opacbookbag || virtualshelves" --><input type="checkbox" id="bib<!-- TMPL_VAR NAME="biblionumber" -->" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" title="Click to add to <TMPL_VAR NAME="opacbookbagName">" /> <label for="bib<!-- TMPL_VAR NAME="biblionumber" -->"></label><!-- /TMPL_IF --></td> > <td class="select selectcol"><!-- TMPL_VAR NAME="result_number" -->.</td> > > <!-- TMPL_UNLESS NAME="item-level_itypes" --> >@@ -469,7 +469,7 @@ $(document).ready(function(){ > > <!-- TMPL_IF NAME="opacuserlogin" --><!-- TMPL_IF NAME="loggedinusername" --><!-- TMPL_IF NAME="virtualshelves" --><a class="addtolist" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" onclick="Dopop('opac-addbybiblionumber.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->'); return false;">Save to Lists</a> > <!-- /TMPL_IF --><!-- /TMPL_IF --><!-- /TMPL_IF --> >- <!-- TMPL_IF NAME="opacbookbag" --><a class="addtocart" href="#" onclick="addRecord('<!-- TMPL_VAR NAME="biblionumber" -->'); return false;">Add to Cart</a><!-- /TMPL_IF --> >+ <!-- TMPL_IF NAME="opacbookbag" --><a class="addtocart" href="#" onclick="addRecord('<!-- TMPL_VAR NAME="biblionumber" -->'); return false;">Add to <TMPL_VAR NAME="opacbookbagName"></a><!-- /TMPL_IF --> > </span> > </td><td> > <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"> >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-sendbasketform.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-sendbasketform.tmpl >index 9caef3c..d32ab85 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-sendbasketform.tmpl >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-sendbasketform.tmpl >@@ -1,4 +1,4 @@ >-<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog › Sending Your Cart >+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog › Sending Your <TMPL_VAR NAME="opacbookbagName"> > <!-- TMPL_INCLUDE NAME="doc-head-close.inc" --> > </head> > <body style="padding: 1em;" id="sendbasket"> >@@ -6,11 +6,11 @@ > > <!-- TMPL_IF NAME="SENT" --> > <h3>Message Sent</h3> >- <p>The cart was sent to: <!-- TMPL_VAR NAME="email_add" --></p> >+ <p>The <TMPL_VAR NAME="opacbookbagName"> was sent to: <!-- TMPL_VAR NAME="email_add" --></p> > <p><a class="focus close" href="#">Close window</a></p> > <!-- /TMPL_IF --> > <!-- TMPL_IF NAME="error" --> >- <p>Problem sending the cart...</p> >+ <p>Problem sending the <TMPL_VAR NAME="opacbookbagName">...</p> > <!-- /TMPL_IF --> > > <!-- TMPL_ELSE --> >@@ -18,7 +18,7 @@ > <form action="<!-- TMPL_VAR NAME="url" -->" method="post"> > > <fieldset class="rows"> >-<legend>Sending your cart</legend> >+<legend>Sending your <TMPL_VAR NAME="opacbookbagName"></legend> > <ol> <li> > <label for="email_add">Email Address:</label> > <input type="text" id="email_add" name="email_add" size="43" class="focus" /> >-- >1.5.6.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 3719
:
1536
| 1537 |
1538