Bugzilla – Attachment 1538 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]
second part of the patch
0002-Bug-3719-update-replace-Oct-22-patch-to-modify-an.patch (text/plain), 2.26 KB, created by
Chris Cormack
on 2010-02-03 18:38:00 UTC
(
hide
)
Description:
second part of the patch
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2010-02-03 18:38:00 UTC
Size:
2.26 KB
patch
obsolete
>From 28ec7cfe27e3581de35f9d9237abf8092acc029a Mon Sep 17 00:00:00 2001 >From: Jane Wagner <jwagner@ptfs.com> >Date: Fri, 23 Oct 2009 14:19:02 -0400 >Subject: [PATCH] Bug 3719 update -- replace Oct 22 patch to modify another place >Content-Type: text/plain; charset="utf-8" > >Modifies another place where the syspref text needs to be substituted >for the hardcoded Cart label. >--- > .../opac-tmpl/prog/en/includes/doc-head-close.inc | 1 + > koha-tmpl/opac-tmpl/prog/en/js/basket.js | 4 ++-- > 2 files changed, 3 insertions(+), 2 deletions(-) > >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 9a78f89..149d3a8 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 >@@ -42,6 +42,7 @@ > <script type="text/javascript" language="javascript"> > //<![CDATA[ > <!-- TMPL_IF NAME="opacbookbag" -->var MSG_BASKET_EMPTY = _("Your <TMPL_VAR NAME="opacbookbagName"> is currently empty"); >+ var BASKET_NAME = "<!-- TMPL_VAR NAME="opacbookbagName" -->"; > 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">"); >diff --git a/koha-tmpl/opac-tmpl/prog/en/js/basket.js b/koha-tmpl/opac-tmpl/prog/en/js/basket.js >index 70da7df..6489044 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/js/basket.js >+++ b/koha-tmpl/opac-tmpl/prog/en/js/basket.js >@@ -374,10 +374,10 @@ function showLess() { > function updateBasket(updated_value,target) { > if(target){ > target.$('#basketcount').html("<span>"+updated_value+"</span>"); >- target.$('#cartDetails').html(_("Your cart contains ")+updated_value+_(" items")); >+ target.$('#cartDetails').html(_("Your "+BASKET_NAME+" contains ")+updated_value+_(" items")); > } else { > $('#basketcount').html("<span>"+updated_value+"</span>"); >- $('#cartDetails').html(_("Your cart contains ")+updated_value+_(" items")); >+ $('#cartDetails').html(_("Your "+BASKET_NAME+" contains ")+updated_value+_(" items")); > } > var basketcount = updated_value; > } >-- >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