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

(-)a/C4/Auth.pm (+3 lines)
Lines 33-38 use POSIX qw/strftime/; Link Here
33
# use utf8;
33
# use utf8;
34
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $debug $ldap);
34
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $debug $ldap);
35
35
36
my $opacbookbagName =  C4::Context->preference('opacbookbagName') || "Cart";
36
BEGIN {
37
BEGIN {
37
    $VERSION = 3.02;        # set version for version checking
38
    $VERSION = 3.02;        # set version for version checking
38
    $debug = $ENV{DEBUG} || 0 ;
39
    $debug = $ENV{DEBUG} || 0 ;
Lines 365-370 sub get_template_and_user { Link Here
365
            opaccolorstylesheet       => "" . C4::Context->preference("opaccolorstylesheet"),
366
            opaccolorstylesheet       => "" . C4::Context->preference("opaccolorstylesheet"),
366
            opacstylesheet            => "" . C4::Context->preference("opacstylesheet"),
367
            opacstylesheet            => "" . C4::Context->preference("opacstylesheet"),
367
            opacbookbag               => "" . C4::Context->preference("opacbookbag"),
368
            opacbookbag               => "" . C4::Context->preference("opacbookbag"),
369
            opacbookbagName            =>  $opacbookbagName,
368
            opaccredits               => "" . C4::Context->preference("opaccredits"),
370
            opaccredits               => "" . C4::Context->preference("opaccredits"),
369
            opacheader                => "" . C4::Context->preference("opacheader"),
371
            opacheader                => "" . C4::Context->preference("opacheader"),
370
            opaclanguagesdisplay      => "" . C4::Context->preference("opaclanguagesdisplay"),
372
            opaclanguagesdisplay      => "" . C4::Context->preference("opaclanguagesdisplay"),
Lines 833-838 sub checkauth { Link Here
833
        opaclanguagesdisplay => C4::Context->preference("opaclanguagesdisplay"),
835
        opaclanguagesdisplay => C4::Context->preference("opaclanguagesdisplay"),
834
        opacuserjs           => C4::Context->preference("opacuserjs"),
836
        opacuserjs           => C4::Context->preference("opacuserjs"),
835
        opacbookbag          => "" . C4::Context->preference("opacbookbag"),
837
        opacbookbag          => "" . C4::Context->preference("opacbookbag"),
838
        opacbookbagName      => $opacbookbagName,
836
        OpacCloud            => C4::Context->preference("OpacCloud"),
839
        OpacCloud            => C4::Context->preference("OpacCloud"),
837
        OpacTopissue         => C4::Context->preference("OpacTopissue"),
840
        OpacTopissue         => C4::Context->preference("OpacTopissue"),
838
        OpacAuthorities      => C4::Context->preference("OpacAuthorities"),
841
        OpacAuthorities      => C4::Context->preference("OpacAuthorities"),
(-)a/admin/systempreferences.pl (+1 lines)
Lines 328-333 $tabsysprefs{DisplayOPACiconsXSLT} = "OPAC"; Link Here
328
$tabsysprefs{SearchMyLibraryFirst} = "OPAC";
328
$tabsysprefs{SearchMyLibraryFirst} = "OPAC";
329
$tabsysprefs{hidelostitems}        = "OPAC";
329
$tabsysprefs{hidelostitems}        = "OPAC";
330
$tabsysprefs{opacbookbag}          = "OPAC";
330
$tabsysprefs{opacbookbag}          = "OPAC";
331
$tabsysprefs{opacbookbagName}          = "OPAC";
331
$tabsysprefs{OpacPasswordChange}   = "OPAC";
332
$tabsysprefs{OpacPasswordChange}   = "OPAC";
332
$tabsysprefs{opacreadinghistory}   = "OPAC";
333
$tabsysprefs{opacreadinghistory}   = "OPAC";
333
$tabsysprefs{virtualshelves}       = "OPAC";
334
$tabsysprefs{virtualshelves}       = "OPAC";
(-)a/installer/data/mysql/en/mandatory/sysprefs.sql (+1 lines)
Lines 262-264 INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES Link Here
262
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');
262
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');
263
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('AllowAllMessageDeletion','0','Allow any Library to delete any message','','YesNo');
263
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('AllowAllMessageDeletion','0','Allow any Library to delete any message','','YesNo');
264
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');
264
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');
265
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');
(-)a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql (+1 lines)
Lines 261-263 INSERT INTO systempreferences (variable,value,options,explanation,type)VALUES('H Link Here
261
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');
261
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');
262
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('AllowAllMessageDeletion','0','Allow any Library to delete any message','','YesNo');
262
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('AllowAllMessageDeletion','0','Allow any Library to delete any message','','YesNo');
263
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');
263
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');
264
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');
(-)a/installer/data/mysql/ru-RU/mandatory/system_preferences_optimal.sql (+1 lines)
Lines 238-240 INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES(' Link Here
238
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('MergeAuthoritiesOnUpdate', '1', 'if ON, Updating authorities will automatically updates biblios',NULL,'YesNo');
238
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('MergeAuthoritiesOnUpdate', '1', 'if ON, Updating authorities will automatically updates biblios',NULL,'YesNo');
239
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');
239
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');
240
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');
240
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');
241
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');
(-)a/installer/data/mysql/updatedatabase.pl (+7 lines)
Lines 2675-2680 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
2675
    SetVersion ($DBversion);
2675
    SetVersion ($DBversion);
2676
}
2676
}
2677
2677
2678
$DBversion = '3.01.00.062';
2679
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
2680
    $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')");
2681
	print "Upgrade to $DBversion done ( Added system preference to rename OPAC cart feature)\n";
2682
    SetVersion ($DBversion);
2683
}
2684
2678
=item DropAllForeignKeys($table)
2685
=item DropAllForeignKeys($table)
2679
2686
2680
  Drop all foreign keys of the table $table
2687
  Drop all foreign keys of the table $table
(-)a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc (-8 / +8 lines)
Lines 41-56 Link Here
41
<!-- TMPL_IF NAME="TagsEnabled" --><script type="text/javascript" language="javascript" src="<!-- TMPL_VAR NAME="themelang" -->/js/tags.js"></script><!-- /TMPL_IF -->
41
<!-- TMPL_IF NAME="TagsEnabled" --><script type="text/javascript" language="javascript" src="<!-- TMPL_VAR NAME="themelang" -->/js/tags.js"></script><!-- /TMPL_IF -->
42
<script type="text/javascript" language="javascript">
42
<script type="text/javascript" language="javascript">
43
	//<![CDATA[
43
	//<![CDATA[
44
    <!-- TMPL_IF NAME="opacbookbag" -->var MSG_BASKET_EMPTY = _("Your cart is currently empty");
44
    <!-- TMPL_IF NAME="opacbookbag" -->var MSG_BASKET_EMPTY = _("Your <TMPL_VAR NAME="opacbookbagName"> is currently empty");
45
    var MSG_RECORD_IN_BASKET = _("This item is already in your cart");
45
    var MSG_RECORD_IN_BASKET = _("This item is already in your <TMPL_VAR NAME="opacbookbagName">");
46
    var MSG_RECORD_ADDED = _("This item has been added to your cart");
46
    var MSG_RECORD_ADDED = _("This item has been added to your <TMPL_VAR NAME="opacbookbagName">");
47
    var MSG_NRECORDS_ADDED = _(" item(s) added to your cart");
47
    var MSG_NRECORDS_ADDED = _(" item(s) added to your <TMPL_VAR NAME="opacbookbagName">");
48
    var MSG_NRECORDS_IN_BASKET = _("already in your cart");
48
    var MSG_NRECORDS_IN_BASKET = _("already in your <TMPL_VAR NAME="opacbookbagName">");
49
    var MSG_NO_RECORD_SELECTED = _("No item was selected");
49
    var MSG_NO_RECORD_SELECTED = _("No item was selected");
50
    var MSG_NO_RECORD_ADDED = _("No item was added to your cart");
50
    var MSG_NO_RECORD_ADDED = _("No item was added to your <TMPL_VAR NAME="opacbookbagName">");
51
    var MSG_CONFIRM_DEL_BASKET = _("Are you sure you want to empty your cart?");
51
    var MSG_CONFIRM_DEL_BASKET = _("Are you sure you want to empty your <TMPL_VAR NAME="opacbookbagName">?");
52
    var MSG_CONFIRM_DEL_RECORDS = _("Are you sure you want to remove the selected items?");
52
    var MSG_CONFIRM_DEL_RECORDS = _("Are you sure you want to remove the selected items?");
53
	$("#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 -->
53
	$("#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 -->
54
	<!-- TMPL_IF NAME="OPACAmazonCoverImages" -->$(window).load(function() {
54
	<!-- TMPL_IF NAME="OPACAmazonCoverImages" -->$(window).load(function() {
55
		 	verify_images();
55
		 	verify_images();
56
		 });<!-- /TMPL_IF -->
56
		 });<!-- /TMPL_IF -->
(-)a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc (-1 / +1 lines)
Lines 94-100 Link Here
94
 </div>
94
 </div>
95
</div>
95
</div>
96
96
97
<!-- TMPL_IF NAME="opacbookbag" --><div id="cartDetails">Your cart is empty.</div><!-- /TMPL_IF -->
97
<!-- TMPL_IF NAME="opacbookbag" --><div id="cartDetails">Your <TMPL_VAR NAME="opacbookbagName"> is empty.</div><!-- /TMPL_IF -->
98
98
99
<!-- TMPL_IF NAME="virtualshelves" -->
99
<!-- TMPL_IF NAME="virtualshelves" -->
100
<div id="listsmenu" class="yuimenu" style="display: none">
100
<div id="listsmenu" class="yuimenu" style="display: none">
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tmpl (-1 / +1 lines)
Lines 73-79 Link Here
73
    <!-- /TMPL_IF --><!-- /TMPL_IF -->
73
    <!-- /TMPL_IF --><!-- /TMPL_IF -->
74
<!-- /TMPL_IF -->
74
<!-- /TMPL_IF -->
75
        <!-- TMPL_IF NAME="opacbookbag" --><li><a class="addtocart" href="#" onclick="addRecord('<!-- TMPL_VAR NAME="biblionumber" -->'); return false;">
75
        <!-- TMPL_IF NAME="opacbookbag" --><li><a class="addtocart" href="#" onclick="addRecord('<!-- TMPL_VAR NAME="biblionumber" -->'); return false;">
76
            Add to Your Cart
76
            Add to Your <TMPL_VAR NAME="opacbookbagName">
77
        </a></li><!-- /TMPL_IF -->
77
        </a></li><!-- /TMPL_IF -->
78
</ul>
78
</ul>
79
79
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tmpl (-1 / +1 lines)
Lines 188-194 Link Here
188
    <!-- /TMPL_IF --><!-- /TMPL_IF -->
188
    <!-- /TMPL_IF --><!-- /TMPL_IF -->
189
<!-- /TMPL_IF -->
189
<!-- /TMPL_IF -->
190
        <!-- TMPL_IF NAME="opacbookbag" --><li><a class="addtocart" href="#" onclick="addRecord('<!-- TMPL_VAR NAME="biblionumber" -->'); return false;">
190
        <!-- TMPL_IF NAME="opacbookbag" --><li><a class="addtocart" href="#" onclick="addRecord('<!-- TMPL_VAR NAME="biblionumber" -->'); return false;">
191
            Add to Your Cart
191
            Add to Your <TMPL_VAR NAME="opacbookbagName">
192
        </a></li><!-- /TMPL_IF -->
192
        </a></li><!-- /TMPL_IF -->
193
</ul>
193
</ul>
194
194
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tmpl (-3 / +3 lines)
Lines 1-5 Link Here
1
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
1
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2
<!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo; Your Cart
2
<!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo; Your <TMPL_VAR NAME="opacbookbagName">
3
    <!-- TMPL_IF NAME="print_basket" --></title>
3
    <!-- TMPL_IF NAME="print_basket" --></title>
4
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
<link rel="shortcut icon" href="<!-- TMPL_VAR NAME="themelang" -->/includes/favicon.ico" type="image/x-icon" />
5
<link rel="shortcut icon" href="<!-- TMPL_VAR NAME="themelang" -->/includes/favicon.ico" type="image/x-icon" />
Lines 112-118 function tagAdded() { Link Here
112
<div id="doc" class="yui-t7">
112
<div id="doc" class="yui-t7">
113
<div class="container">
113
<div class="container">
114
<!-- TMPL_UNLESS NAME="print_basket" -->
114
<!-- TMPL_UNLESS NAME="print_basket" -->
115
<h1>Your Cart</h1>
115
<h1>Your <TMPL_VAR NAME="opacbookbagName"></h1>
116
116
117
<div id="toolbar">
117
<div id="toolbar">
118
<ul>
118
<ul>
Lines 356-362 function tagAdded() { Link Here
356
<!-- /TMPL_IF -->
356
<!-- /TMPL_IF -->
357
357
358
<!-- TMPL_IF NAME="print_basket" -->
358
<!-- TMPL_IF NAME="print_basket" -->
359
<a href="#back" class="screen">&lt;&lt; Back to Cart</a>
359
<a href="#back" class="screen">&lt;&lt; Back to <TMPL_VAR NAME="opacbookbagName"></a>
360
<!-- TMPL_ELSE -->
360
<!-- TMPL_ELSE -->
361
<form name="myform" action="opac-basket.pl" method="get">
361
<form name="myform" action="opac-basket.pl" method="get">
362
    <input type="hidden" name="records" id="records" />
362
    <input type="hidden" name="records" id="records" />
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl (-1 / +1 lines)
Lines 24-30 Link Here
24
        });<!-- TMPL_IF NAME="GoogleJackets" -->
24
        });<!-- TMPL_IF NAME="GoogleJackets" -->
25
        KOHA.Google.GetCoverFromIsbn();<!-- /TMPL_IF --><!-- TMPL_IF NAME="TagsEnabled" -->
25
        KOHA.Google.GetCoverFromIsbn();<!-- /TMPL_IF --><!-- TMPL_IF NAME="TagsEnabled" -->
26
        $(".tagbutton").click(KOHA.Tags.add_tag_button);<!-- /TMPL_IF -->
26
        $(".tagbutton").click(KOHA.Tags.add_tag_button);<!-- /TMPL_IF -->
27
		<!-- 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>");
27
		<!-- 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>");
28
<!-- /TMPL_IF -->});
28
<!-- /TMPL_IF -->});
29
29
30
YAHOO.util.Event.onContentReady("furtherm", function () {
30
YAHOO.util.Event.onContentReady("furtherm", function () {
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results-grouped.tmpl (-2 / +2 lines)
Lines 21-27 $(document).ready(function(){ Link Here
21
    });
21
    });
22
	$("span.clearall").html("<a id=\"CheckNone\" href=\"#\">Clear All</a>");
22
	$("span.clearall").html("<a id=\"CheckNone\" href=\"#\">Clear All</a>");
23
	$("span.checkall").html("<a id=\"CheckAll\" href=\"#\">Select All</a>");
23
	$("span.checkall").html("<a id=\"CheckAll\" href=\"#\">Select All</a>");
24
	$("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\" />");
24
	$("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\" />");
25
	$("#addto").change(function(){
25
	$("#addto").change(function(){
26
		cartList();
26
		cartList();
27
	});
27
	});
Lines 263-269 function highlightOn() { Link Here
263
					<!-- /TMPL_UNLESS -->
263
					<!-- /TMPL_UNLESS -->
264
				<!-- /TMPL_IF -->
264
				<!-- /TMPL_IF -->
265
265
266
				<!--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" -->
266
				<!--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" -->
267
                                    <a href="/cgi-bin/koha/opac-search.pl?q=callnum:<!-- TMPL_VAR NAME="classification" ESCAPE="URL" -->">
267
                                    <a href="/cgi-bin/koha/opac-search.pl?q=callnum:<!-- TMPL_VAR NAME="classification" ESCAPE="URL" -->">
268
                                        <!-- TMPL_VAR NAME="classification" -->
268
                                        <!-- TMPL_VAR NAME="classification" -->
269
                                    </a>
269
                                    </a>
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl (-3 / +3 lines)
Lines 96-102 function highlightOn() { Link Here
96
$(document).ready(function(){
96
$(document).ready(function(){
97
	$(".addtocart").show();
97
	$(".addtocart").show();
98
	var param1 = "<label for=\"addto\">"+_("Add to: ")+"<\/label><select name=\"addto\" id=\"addto\"><option value=\"\"><\/option>";
98
	var param1 = "<label for=\"addto\">"+_("Add to: ")+"<\/label><select name=\"addto\" id=\"addto\"><option value=\"\"><\/option>";
99
	<!-- TMPL_IF name="opacbookbag" -->	param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>";
99
	<!-- TMPL_IF name="opacbookbag" -->	param1 += "<option value=\"addtocart\">"+_("<TMPL_VAR NAME="opacbookbagName">")+"<\/option>";
100
	<!-- /TMPL_IF --><!-- TMPL_IF NAME="virtualshelves" --><!-- TMPL_IF NAME="loggedinusername" --><!-- TMPL_IF NAME="addbarshelves" -->
100
	<!-- /TMPL_IF --><!-- TMPL_IF NAME="virtualshelves" --><!-- TMPL_IF NAME="loggedinusername" --><!-- TMPL_IF NAME="addbarshelves" -->
101
	param1 += "<optgroup label=\""+_("Your Lists:")+"\">";<!-- TMPL_LOOP NAME="addbarshelvesloop" -->
101
	param1 += "<optgroup label=\""+_("Your Lists:")+"\">";<!-- TMPL_LOOP NAME="addbarshelvesloop" -->
102
	param1 += "<option id=\"s<!-- TMPL_VAR NAME="shelfnumber" -->\" value=\"addtolist\"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html"--><\/option>";<!-- /TMPL_LOOP -->
102
	param1 += "<option id=\"s<!-- TMPL_VAR NAME="shelfnumber" -->\" value=\"addtolist\"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html"--><\/option>";<!-- /TMPL_LOOP -->
Lines 338-344 $(document).ready(function(){ Link Here
338
                <tr>
338
                <tr>
339
            <!-- /TMPL_UNLESS -->
339
            <!-- /TMPL_UNLESS -->
340
340
341
                <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>
341
                <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>
342
                <td class="select selectcol"><!-- TMPL_VAR NAME="result_number" -->.</td>
342
                <td class="select selectcol"><!-- TMPL_VAR NAME="result_number" -->.</td>
343
343
344
				<!-- TMPL_UNLESS NAME="item-level_itypes" -->
344
				<!-- TMPL_UNLESS NAME="item-level_itypes" -->
Lines 469-475 $(document).ready(function(){ Link Here
469
469
470
				<!-- 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>
470
				<!-- 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>
471
    			<!-- /TMPL_IF --><!-- /TMPL_IF --><!-- /TMPL_IF -->
471
    			<!-- /TMPL_IF --><!-- /TMPL_IF --><!-- /TMPL_IF -->
472
        		<!-- TMPL_IF NAME="opacbookbag" --><a class="addtocart" href="#" onclick="addRecord('<!-- TMPL_VAR NAME="biblionumber" -->'); return false;">Add to Cart</a><!-- /TMPL_IF -->
472
        		<!-- 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 -->
473
				</span>
473
				</span>
474
				</td><td>
474
				</td><td>
475
					<a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
475
					<a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-sendbasketform.tmpl (-5 / +4 lines)
Lines 1-4 Link Here
1
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo;  Sending Your Cart
1
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo;  Sending Your <TMPL_VAR NAME="opacbookbagName">
2
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
2
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3
</head>
3
</head>
4
<body style="padding: 1em;" id="sendbasket">
4
<body style="padding: 1em;" id="sendbasket">
Lines 6-16 Link Here
6
6
7
	<!-- TMPL_IF NAME="SENT" -->
7
	<!-- TMPL_IF NAME="SENT" -->
8
		<h3>Message Sent</h3>
8
		<h3>Message Sent</h3>
9
	    <p>The cart was sent to: <!-- TMPL_VAR NAME="email_add" --></p>
9
	    <p>The <TMPL_VAR NAME="opacbookbagName"> was sent to: <!-- TMPL_VAR NAME="email_add" --></p>
10
		<p><a class="focus close" href="#">Close window</a></p>
10
		<p><a class="focus close" href="#">Close window</a></p>
11
	<!-- /TMPL_IF  -->
11
	<!-- /TMPL_IF  -->
12
	<!-- TMPL_IF NAME="error" -->
12
	<!-- TMPL_IF NAME="error" -->
13
	<p>Problem sending the cart...</p>
13
	<p>Problem sending the <TMPL_VAR NAME="opacbookbagName">...</p>
14
	<!-- /TMPL_IF -->
14
	<!-- /TMPL_IF -->
15
	
15
	
16
<!-- TMPL_ELSE -->
16
<!-- TMPL_ELSE -->
Lines 18-24 Link Here
18
<form action="<!-- TMPL_VAR NAME="url" -->" method="post">
18
<form action="<!-- TMPL_VAR NAME="url" -->" method="post">
19
19
20
<fieldset class="rows"> 
20
<fieldset class="rows"> 
21
<legend>Sending your cart</legend>
21
<legend>Sending your <TMPL_VAR NAME="opacbookbagName"></legend>
22
<ol>   <li>
22
<ol>   <li>
23
        <label for="email_add">Email Address:</label>
23
        <label for="email_add">Email Address:</label>
24
        <input type="text" id="email_add" name="email_add" size="43" class="focus" />
24
        <input type="text" id="email_add" name="email_add" size="43" class="focus" />
25
- 

Return to bug 3719