Commit Graph
119 Commits
Author SHA1 Message Date
Ashish Vijaywargiya 54bb3ef632 On production systems you can't suppress Debug.log( message by the use of debug.properties file. It is always good to use Debug.* statements that are having log level setup in debug.properties file. The real problem comes with Debug.log( statement when you are printing any list or map object that contains so many records(or data) in it. Here I am changing all the occurrence of Debug.log( with Debug.logInfo(, Debug.logError( or Debug.logWarning( so that we can have better control of Debug.* statements on production system. :-)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1300463 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 06:07:52 +00:00
Jacques Le Roux 6ed1929086 A patch from Wai "widget <image> tag to use css for resizing" https://issues.apache.org/jira/browse/OFBIZ-4678
Summary: The purpose of this patch is to address the following:
1. Provide a standardized set of image width and height specs for page layout in ofbiz. This gives ofbiz a uniform look throughout as it applies to image display.
2. Preserve the aspect ratio of the image when using these standardized image sizes.
3. One place to make styling modifications (eg. css file).
4. Decouple styling from code (eg. java,ftl,xml,html,jsp,etc).

Regarding including the real image size, the width/height attributes in <img> specifies the boundary of the image when shown on the page. If you need to specify the real size of the image, the server code would have to perform the determination. Afterwards, you can include the actual dimensions of the image in the title attribute of <img>

Details:
Manually specifying the image width and height does help with preserving the layout of a page regardless of the image size to be shown. The challenge with this method is that the image shown on the page in question may be distorted if the aspect ratio of the image differed from that of the width and height attributes of <img>. This basically forces the person uploading the image to be more vigilant about image aspect ratios.
The purpose is to harmonize on the display size of images with a standardized set of width/height constraints in which an image must fit and preserve the aspect ratio of images.

Currently the source files (eg. ftl, xml) either manually specifies the width or height of a displayed image (ie widget <image> and html <img> tag). The problem with specifying only one constraint is that an image can affect the layout of the page if the user uploads an image where the aspect ratio could be large.

Some ftl and xml files specify both the width and the height. The problem with this is that if the aspect ratio of the image in question does not match that of the width and height of the <img> tag, the image would be displayed distorted.

The solution was to create a standardized set of CSS styles that both configure the displayed image size and preserve the image aspect ratio (eg. thumbnail size, medium size and large size). Of course, the developers can further define or modify the styles to suit their need.

By using CSS, one can change the size of displayed images without having to tamper with the ftl and/or xml files. This helps to reduce potential bugs that come with modifying the ftl and xml files. The existing way of doing things is to go through each ftl or xml file in question and manually modify the width and/or height of the <image> and/or <img> tag.

The question about the "border" around images. If you do not wish to have a border around the image, just remove it from the CSS style. It's that easy No need to change anything else. Ie. configuration to the image is done on the CSS style and not on the <image>, <img> tag.

NB: The current patch does not apply to all displayed images. I have only made appropriate modifications to widget <image> and html <img> tags that have either specified the width and/or height. There are numerous <image> and <img> tags spread all over the project that do not specify dimensions. I would have to modify them as I encountered them when I could see where and how they are displayed on the screen. Note that these images would not be affect by this patch.

jleroux: despite my efforts I was not able to check all screens. But I think it's ok

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1296782 13f79535-47bb-0310-9956-ffa450edef68
2012-03-04 11:54:13 +00:00
Jacques Le Roux 7c1eace985 Missed the </@ofbizContentUrl> macro when calling elrte Editor js scripts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1178178 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 11:02:31 +00:00
Jacques Le Roux 4a35f03d40 Closes "i18n for elrte editor" https://issues.apache.org/jira/browse/OFBIZ-4051
Fixes the i18n elrte Editor issue in Freemarker templates (Content and Ebay)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1178175 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 10:42:39 +00:00
Jacques Le Roux 51238ccde9 * Uses rather minified css for elrte Editor
In last commits (1178141, 1178111) I put wrong paths for:
* elrteEditor for css pathes is now elrte-1.3
* missed js in elrte-1.3/js/i18n for i18n files



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1178166 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 09:48:05 +00:00
Jacques Le Roux a059eea0cc In order to try to resolve "i18n for elrte editor" https://issues.apache.org/jira/browse/OFBIZ-4051, 1st update elrte Editor from 1.1 to to 1.3 version
Also removes now useless older jQuery versions I kept so far for a problem nobody cares about anyway

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1178141 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 08:06:49 +00:00
Hans Bakker 59e44392f2 the help text was dependent on the websiteId which is now removed. changed it to the component name which is a better choice anyway
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1160101 13f79535-47bb-0310-9956-ffa450edef68
2011-08-22 03:35:18 +00:00
Marco Risaliti a7421d8daf Remove some unused variable into EbayStoreOptions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1125959 13f79535-47bb-0310-9956-ffa450edef68
2011-05-22 13:27:09 +00:00
Jacques Le Roux e8cefd164b A patch from Arun Patidar "Some misc issues in ebayStore component." (https://issues.apache.org/jira/browse/OFBIZ-4118) - OFBIZ-4118
Fixes issue of getting store categories in ebay store component during product export functionality. Added a new method to get store categories and made fixes in existing code.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1095024 13f79535-47bb-0310-9956-ffa450edef68
2011-04-19 10:54:01 +00:00
Jacques Le Roux 93ec8d483a A patch from Ankit Jain "Some misc issues in ebay and ebayStore component."(https://issues.apache.org/jira/browse/OFBIZ-4118
Improvement in ebay store.

In the ebay account adds a screen to add catalog to store , so one can add the catalogs to ebay store.

After selecting an account, it redirect to ebay account page, and here is the screen https://localhost:8443/ebaystore/control/AssociateCatalog?productStoreId=90101
so one can add the catalog to ebay store.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1094868 13f79535-47bb-0310-9956-ffa450edef68
2011-04-19 06:17:44 +00:00
Jacques Le Roux bee192150d A patch from Ankit Jain "Some misc issues in ebay and ebayStore component."(https://issues.apache.org/jira/browse/OFBIZ-4118
On the Ebay Configuration search page (https://localhost:8443/ebaystore/control/FindEbayConfigurations) a default value "EBAY_STORE" is shown selected and after search the same value is shown instead of the value we selected before clicking on find and same case on on Edit Ebay Configuration page (https://localhost:8443/ebaystore/control/EditEbayConfiguration?productStoreId=9000).

The attached patch fixed this problem also fixed the website data.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1094281 13f79535-47bb-0310-9956-ffa450edef68
2011-04-18 06:55:29 +00:00
Marco Risaliti 0109c58301 Remove some reduntant cast warning in ebaystore component (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1081080 13f79535-47bb-0310-9956-ffa450edef68
2011-03-13 11:39:36 +00:00
Marco Risaliti 3d1fbdbc8a Removed a warning into EbaySellingManagerForms that required a date and a wrong comment in the heading of the file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1068551 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 20:19:57 +00:00
Marco Risaliti c7fd5c6a16 Remove all compilation warnings of ebaystore component, there was a lot of unused variable that has been removed (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1068548 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 20:15:48 +00:00
Marco Risaliti 2edf34dd98 Remove all compilation warnings of ShoppingCart/ShoppingCartItem and related invoked methods (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1068103 13f79535-47bb-0310-9956-ffa450edef68
2011-02-07 20:29:21 +00:00
David E. Jones cb2c200bb9 Fixed EbayStoreHelper to not user to field that was removed from the JobManager that did not support multiple delegators, and instead use the delegator name
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1066465 13f79535-47bb-0310-9956-ffa450edef68
2011-02-02 13:49:46 +00:00
Jacques Le Roux 2a4b2cce47 A patch from Arun Patidar "Some misc issues in ebayStore component." (https://issues.apache.org/jira/browse/OFBIZ-4118) - OFBIZ-4118
Attaching patch fixes following issues in ebayStore component
1. Now user can export more than one product to ebay by selecting more than one product and processing them one by one.
2 Show error messages to user in case of any exception.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1064751 13f79535-47bb-0310-9956-ffa450edef68
2011-01-28 16:02:02 +00:00
Marco Risaliti a59e20b4dd Internationalization of java services for ebaystore component (OFBIZ-4091)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1063455 13f79535-47bb-0310-9956-ffa450edef68
2011-01-25 20:50:43 +00:00
Jacques Le Roux dcf0745558 A patch from Arun Patidar "Some misc issues in ebayStore component." (https://issues.apache.org/jira/browse/OFBIZ-4118) - OFBIZ-4118
one more patch to fix following issues in ebay and ebayStore components
1 Fixed issue of set complete order status in ebay when we complete order in ofbiz.
2 Created record of OrderPaymentPreference in PAYMENT_RECEIVED status.
3 Updated qty of cart item, if same product is adding again in cart during import order from ebay.
4 Set transactionId in cart.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1063265 13f79535-47bb-0310-9956-ffa450edef68
2011-01-25 13:23:19 +00:00
Jacques Le Roux ded2426c9c A patch from Arun Patidar "Some misc issues in ebayStore component." (https://issues.apache.org/jira/browse/OFBIZ-4118) - OFBIZ-4118
A patch to fix issue of import ebay orders.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1062144 13f79535-47bb-0310-9956-ffa450edef68
2011-01-22 12:44:36 +00:00
Jacques Le Roux 98ca050467 A patch from Arun Patidar "Some misc issues in ebayStore component." (https://issues.apache.org/jira/browse/OFBIZ-4118) - OFBIZ-4118
Patch to export single product to ebay in ebay store component. Added require attributes in item and call request of export product to ebay after successfully verify item. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1061939 13f79535-47bb-0310-9956-ffa450edef68
2011-01-21 18:02:56 +00:00
Marco Risaliti d7913ee15b Remove some unused local variable and unused import in ebaystore component (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1061521 13f79535-47bb-0310-9956-ffa450edef68
2011-01-20 21:23:36 +00:00
Jacques Le Roux 4ab2c20685 A patch from Arun Patidar "Some misc issues in ebayStore component." (https://issues.apache.org/jira/browse/OFBIZ-4118) - OFBIZ-4118
Steps to test issue:
1. Go to ebayStore -> main
2 Select any demo user account and click on submit
3 Click on Export Product Listing tab in menu
4 Search any product from find screen
5 Select product from list and click on Export To Ebay button
6 Select any ebay category from drop down
7 Change event of this select box is not working properly due to blocking of JS.

JLR: I 1st got caught by the surprising behaviour of the eBay Category drop down (you have to select sub-categs one after the others in the same drop drow), but yes it works (ie you can publish an OFBiz product in the eBay store)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1061307 13f79535-47bb-0310-9956-ffa450edef68
2011-01-20 14:12:08 +00:00
Jacopo Cappellato 4940fd43be Another group of missing licence heders.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1058590 13f79535-47bb-0310-9956-ffa450edef68
2011-01-13 14:51:38 +00:00
Ashish Vijaywargiya 8e18e90d86 Minor bug fixes.
1. Changed 'uiLabel' to 'uiLabelMap'.
2. Added condition to avoid null pointer exception.
3. Fixed issue of JS function. 
Thanks Arun! 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1058057 13f79535-47bb-0310-9956-ffa450edef68
2011-01-12 10:45:00 +00:00
Marco Risaliti cb5e179cc1 Replace some fail-message to fail-property tag all specialpurpose components (OFBIZ-1874)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1052038 13f79535-47bb-0310-9956-ffa450edef68
2010-12-22 19:22:45 +00:00
Scott Gray d1d8905fef Remove unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044931 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 21:31:27 +00:00
Scott Gray f2fe9b9086 Access static fields in a static way.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044914 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 20:41:51 +00:00
Jacques Le Roux c008c6ccb3 Merges the jQuery branch back to the trunk
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044503 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 20:40:08 +00:00
Adam Heath 1f5ae9d0c9 Remove some trailing whitespace from lines; only doing files that will
be modified by soon to be committed changesets.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044227 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 07:20:25 +00:00
Adam Heath 4447acce3e Fix several final newline problems, in files I will be changing in the
near future.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044226 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 07:20:05 +00:00
Adam Heath 4c4151b05d Oops. Remove FIXME keywords, which were used by me as a reminder to fix
the lines properly, while I was in the process of deprecating other
delegator methods.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044047 13f79535-47bb-0310-9956-ffa450edef68
2010-12-09 17:39:13 +00:00
Adam Heath add495242a Yet another bad bug. The name/value pair was never actually turned into
a map.  findByAnd(entityName, field, value, list) was never a valid
call.  However, this code still compiled, as it ended up using the
vararg variant of findByAnd.  If this code had ever been run, then it
would have blown up.

broken since: 984366, initial commit
date: Wed Aug 11 10:39:10 2010 +0000

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1043999 13f79535-47bb-0310-9956-ffa450edef68
2010-12-09 15:14:47 +00:00
Hans Bakker 8c3ebac579 change all @yahoo.com to @example.com Suggestion from Scott
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1040914 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 09:38:00 +00:00
Hans Bakker cd77767917 Ebay Store updates:
1. Change Active list screen to be the Open List screen: Open screen shows the items that which have the active status in Ebay.
2. Merge the Sold- and the Unsold screen to be the Closed List screen: The Closed List screen shows the items that are sold and the items which are out of date.  
3. Create the services to get transactions and orders from eBay and show it in the Transaction screen and Order screen.
4. Create the services to import the transactions and orders from eBay to OFBiz.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1003451 13f79535-47bb-0310-9956-ffa450edef68
2010-10-01 09:37:14 +00:00
Hans Bakker dc2d3f2dee change field name 'condition' because is a reserved word
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@985102 13f79535-47bb-0310-9956-ffa450edef68
2010-08-13 06:23:30 +00:00
Hans Bakker c27f12b5de This feature is the automation of best offers. It is used to check and respond to an offer of a customer in the eBay Store.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@984366 13f79535-47bb-0310-9956-ffa450edef68
2010-08-11 10:39:10 +00:00
Hans Bakker c52b3e8dfd add new line at end of file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@984364 13f79535-47bb-0310-9956-ffa450edef68
2010-08-11 10:33:42 +00:00
Adam Heath 5b3b7e0c99 Finally created a script to find and fix tons of missing final newlines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@982870 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 04:46:48 +00:00
Scott Gray 6221f0c1da Remove duplicate service definition, removed the one that was defined first so the existing behaviour is maintained.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@981173 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01 08:51:28 +00:00
Scott Gray 0bf62183fb No functional changes, just removing a whole bunch of unused imports and reorganizing them along the way.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@981019 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 08:28:34 +00:00
Adam Heath 0f8f2093e3 Fix a bunch of no final newline issues.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@965918 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:15:21 +00:00
Hans Bakker 32e5706119 Handle ebaystore product Item Specifics
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@957428 13f79535-47bb-0310-9956-ffa450edef68
2010-06-24 06:13:20 +00:00
Hans Bakker 46c481e59a Revising Open Ebay item specific Listings
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@957427 13f79535-47bb-0310-9956-ffa450edef68
2010-06-24 06:10:29 +00:00
Hans Bakker c66eef95a5 update of ebaystore demo data
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@957150 13f79535-47bb-0310-9956-ffa450edef68
2010-06-23 10:31:02 +00:00
Jacques Le Roux e263a69b74 A patch from BJ Freeman "complete web.xml for error reporting" (https://issues.apache.org/jira/browse/OFBIZ-3820) - OFBIZ-3820
BJ: when there is an error, the control servlet looks for an error path in <param-name>allowedPaths</param-name>
it does not find one throwing an exception which buries the orginal error.
instead of changing the code it is just easier to add the /error: path.
then the real error gets reported correctly.

JLR: This will maybe help to better understand some errors on demo servers, and can't hurt

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@954135 13f79535-47bb-0310-9956-ffa450edef68
2010-06-12 20:47:08 +00:00
Erwan de Ferrieres 5a4cf7a773 Changing portlet category from PROFILE to PARTY_PROFILE to make it more understandable
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@953014 13f79535-47bb-0310-9956-ffa450edef68
2010-06-09 14:05:46 +00:00
Jacques Le Roux 0d6f2776e4 <author>None</author> is totally useless and we don't need an author OOTB
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@949101 13f79535-47bb-0310-9956-ffa450edef68
2010-05-28 05:41:23 +00:00
Jacques Le Roux be88f832a2 Not sure why, but my regexp S/R in the commit r948846 boke some formatting. I also removed some useless other stuff in this commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@948852 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 14:45:59 +00:00
Jacques Le Roux ef2a1c044c We don't need
<copyright>Copyright 2001-.* The Apache Software Foundation</copyright>
<copyright><year>.*</year><holder>Apache Foundation</holder></copyright>
<copyright><year>.*</year><holder>Apache Foundation.</holder></copyright>
<owner>Copyright 2001-.* The Apache Software Foundation</owner>

Less to update every year!

Thanks to BJ 1st effort at "update files from 2009 to 2010" (https://issues.apache.org/jira/browse/OFBIZ-3783) - OFBIZ-3783

Note: there are been a lot of efforts in 2009: there are plenty of data dated from this year!

I hope I did not broke anything (should not, but of course I did not try all changes...) Anyway, this can be easily reverted...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@948846 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 14:23:22 +00:00