Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(17) |
Dec
(8) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(32) |
Feb
(18) |
Mar
(33) |
Apr
(19) |
May
(77) |
Jun
(47) |
Jul
(66) |
Aug
(72) |
Sep
(22) |
Oct
(45) |
Nov
(72) |
Dec
(22) |
2007 |
Jan
(55) |
Feb
(28) |
Mar
(45) |
Apr
(30) |
May
(34) |
Jun
(35) |
Jul
(27) |
Aug
(36) |
Sep
(18) |
Oct
(58) |
Nov
(21) |
Dec
(47) |
2008 |
Jan
(66) |
Feb
(62) |
Mar
(20) |
Apr
(16) |
May
(39) |
Jun
(15) |
Jul
(22) |
Aug
(26) |
Sep
(2) |
Oct
(5) |
Nov
(31) |
Dec
(9) |
2009 |
Jan
(24) |
Feb
(1) |
Mar
(26) |
Apr
(12) |
May
(22) |
Jun
(15) |
Jul
(14) |
Aug
(27) |
Sep
(10) |
Oct
(19) |
Nov
(17) |
Dec
(4) |
2010 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(3) |
2011 |
Jan
|
Feb
|
Mar
(2) |
Apr
(5) |
May
(15) |
Jun
|
Jul
(3) |
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
(3) |
2012 |
Jan
(7) |
Feb
(7) |
Mar
(6) |
Apr
(7) |
May
(21) |
Jun
(28) |
Jul
(1) |
Aug
(4) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
2013 |
Jan
|
Feb
|
Mar
(3) |
Apr
(1) |
May
(3) |
Jun
(2) |
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2015 |
Jan
(9) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
1
|
2
|
3
|
4
|
5
(1) |
6
(1) |
7
(5) |
8
(2) |
9
(6) |
10
(5) |
11
|
12
(2) |
13
(8) |
14
|
15
(1) |
16
(6) |
17
(3) |
18
(2) |
19
(1) |
20
(12) |
21
(1) |
22
(2) |
23
(3) |
24
(1) |
25
(1) |
26
(3) |
27
(6) |
28
|
29
|
30
|
|
|
From: Matthew Smith <yo.checkit@gm...> - 2006-11-27 23:55:10
|
Hi Leire It is a problem with having our PHP layer on top of fedora. When you hit eserve.php it does a sub request to get the datastream from fedora. It assembles the result of the request in RAM and then serves it to the web client. This seems to be an inefficient process. I'm looking into working out some kind of proxying thing we can do in apache so that once eserve has determined that the user has permissions on the datastream, it can just proxy the http from fedora to the client (so there is no need for any actual handling of the content in Fez). However, this won't be in Fez 1.3 probably. I'm thinking that once we have Fez 1.3 out we can do more frequent releases because part of it will be a framework for upgrading Fez without too much hassels. Matt On 11/27/06, Leire Urcelay <Leire.Urcelay@...> wrote: > > > > > Hello, > > > > I have uploaded a 16M image and it took 1 minute for creating the record. > It takes also 1 minute for accessing to the archival version of the image > (accessing to the web version of the image is ok). If I use the fedora web > service for directly accessing to the digital object through the browser, I > can get the original file datastream instantaneously. > > > > I don't know if this performance issue is related to my Apache/Php > configuration or if it is the expected behaviour of Fez. Have some of you > had similar experiences loading big images? Is there a maximum file size > for keeping Fez working with good performances? > > > > Thanks for your help. > > > > Regards, > > > > Leire Urcelay > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > Fez-users mailing list > Fez-users@... > https://lists.sourceforge.net/lists/listinfo/fez-users > > > |
From: Leire Urcelay <Leire.Urcelay@un...> - 2006-11-27 08:20:23
|
Hello, I have uploaded a 16M image and it took 1 minute for creating the record. It takes also 1 minute for accessing to the archival version of the image (accessing to the web version of the image is ok). If I use the fedora web service for directly accessing to the digital object through the browser, I can get the original file datastream instantaneously. I don't know if this performance issue is related to my Apache/Php configuration or if it is the expected behaviour of Fez. Have some of you had similar experiences loading big images? Is there a maximum file size for keeping Fez working with good performances? Thanks for your help. Regards, Leire Urcelay |
From: Matthew Smith <yo.checkit@gm...> - 2006-11-27 00:48:28
|
Try this, Goto line 402 in includes/PEAR/Date.php and find the name of your timezone - ours is 'Australia/Brisbane'. If it isn't in there, then use something on the same offset. Then delete all the code that is uder the 'Initialize default timezone' at the end of the file up to the '?>' and replace it with: Date_TimeZone::setDefault('Australia/Brisbane'); using your timezone of course. Matt On 11/27/06, afonseca@... <afonseca@...> wrote: > > > Hi all! > > Does anyone has the example of how to hardwire the function convertTZ in > Date.phpto to return our desired timezone? > > I'm getting Apache crash everyday... > > Thanks > > Ant=F3nio > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share y= our > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > > _______________________________________________ > Fez-users mailing list > Fez-users@... > https://lists.sourceforge.net/lists/listinfo/fez-users > > > |
From: Matthew Smith <yo.checkit@gm...> - 2006-11-27 00:40:48
|
Find this bit of code in my_fez.php. Is the "$item['community'] =3D ..." line commented? (with // on the front?) get rid of the '//'. foreach ($collection_list as &$item) { $item['community'] =3D implode(',',Misc::keyPairs(Collection::getParents2($item['pid']),'pid','tit= le')); $item['count'] =3D Collection::getEditListingCount($item['pid']); } Check the 'getparents2' function in class.collection.php. I think this was commented because the query in that function was too slow. It is better in Fez 1.3 because we have improved many of the queries and now have an index for checking FezACML inheritance which was the main bottleneck. We plan to release Fez 1.3 on 11 Dec. Matt On 11/26/06, afonseca@... <afonseca@...> wrote: > > > Hi (again)! > > I has browsing the subversion in order to see if a small error was solve = but > I think it's not. > > The file my_collections.tpl.html has a list with the associeted collectio= ns > (the correspondant community) and the number of files in collection. > > The situations is that it is suposed to have the correspondent community > name but it does not print it, rigth? > > > > The code: > > ------------------------------------------------ > > {assign var=3D"list" value=3D$my_collections_list} > {section name=3D"i" loop=3D$list} > {cycle values=3D$cycle assign=3D"row_color"} > <tr> > <td bgcolor=3D"{$row_color}" class=3D"default"> > <a > href=3D"{$rel_url}list.php?collection_pid=3D{$list[i].pid|escape}">{$list= [i].title.0|escape}</a> > </td> > <td bgcolor=3D"{$row_color}" class=3D"default"> > {$list[i].community|escape} > </td> > <td bgcolor=3D"{$row_color}" class=3D"default"> > {$list[i].count|escape} > > ------------------------------------------------ > > Its not suposed to have a {assign var=3D"list" value=3D$my_community_list= } and > printed the link <a > href=3D"{$rel_url}list.php?community_pid=3D{$list[i]... > > > > Or something similar (as I said my PHP is not advanced...) > > > > Thanks in advanced > > Ant=F3nio > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share y= our > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > > _______________________________________________ > Fez-users mailing list > Fez-users@... > https://lists.sourceforge.net/lists/listinfo/fez-users > > > |
From: Matthew Smith <yo.checkit@gm...> - 2006-11-27 00:26:55
|
Ant=F3nio This code in getListing in class.collection.php is the problem. $sekdet =3D Search_Key::getDetailsByTitle($order_by); $data_type =3D $sekdet['xsdmf_data_type']; I'm guessing that the getDetailsByTitle() call is not finding a search key in $order_by. This would be because the $order_by is not in the same language as the search keys. I think you should go for keeping the code in english and just change the display of these things in the templates. So In the admin panels, make sure the search keys are in english. Perhaps the problem is that the drop down box for sorting has the language translated for the values as well as the display. Do a view source of the lisiting and find the drop down menu for order by. It should look like <select ...... blah> <option value=3D"Title">Titulo</option> <option value=3D"Author">Autor</option> <option value=3D"Description">Descri=E7=E3o</option> etc... I think in a previous email I told you how to translate the order_by_list in list.php. Make sure that you only translate the values of the array and not the keys. i.e. doing a print_r($order_by_list); at the end of the script should give = you: Array( 'Title' =3D> 'Titulo', 'Author' =3D> 'Autor', etc... Matt On 11/26/06, afonseca@... <afonseca@...> wrote: > > > Hi! > > I'm not shure if this is an error (or in my translation I changed some na= mes > I shouldn=B4t) but I get an error when I try to order results (in > /fez/list.php?collection_pid=3Dlpce:39&order_by=3DResearch%20Program): > > ERROR: Array ( [0] =3D> DB Error: no such field [1] =3D> SELECT r1.*, x1.= *, > s1.*, k1.*, d1.* FROM lpce.fez_record_matching_field AS r1 INNER JOIN > lpce.fez_xsd_display_matchfields AS x1 ON r1.rmf_xsdmf_id =3D > x1.xsdmf_id INNER JOIN ( SELECT distinct r2.rmf_rec_pid, > sort_table.sort_column as sort_column FROM lpce.fez_record_matching_field= AS > r2 INNER JOIN lpce.fez_xsd_display_matchfields AS x2 ON > r2.rmf_xsdmf_id =3D x2.xsdmf_id AND x2.xsdmf_element=3D'!sta_id' and > r2.rmf_varchar=3D'2' AND r2.rmf_rec_pid not in (select distinct ai3.authi= _pid > as aip from lpce.fez_auth_index ai3 where (ai3.authi_role in ('Lister', > 'Viewer'))) INNER JOIN lpce.fez_record_matching_field AS r4 ON > r4.rmf_rec_pid =3D r2.rmf_rec_pid INNER JOIN > lpce.fez_xsd_display_matchfields AS x4 ON r4.rmf_xsdmf_id =3D > x4.xsdmf_id and r4.rmf_varchar =3D 'lpce:39' INNER JOIN lpce.fez_search_k= ey AS > s4 ON s4.sek_id =3D x4.xsdmf_sek_id AND s4.sek_title =3D 'isMemberOf' LEF= T JOIN > (select r5.rmf_rec_pid, min(r5.rmf_) as sort_column FROM > lpce.fez_record_matching_field r5 inner join > lpce.fez_xsd_display_matchfields x5 on r5.rmf_xsdmf_id =3D > x5.xsdmf_id inner join lpce.fez_search_key s5 on s5.sek_id =3D x5.xsdmf_s= ek_id > AND s5.sek_title =3D 'Research Program' group by r5.rmf_rec_pid) as sort_= table > ON sort_table.rmf_rec_pid=3Dr2.rmf_rec_pid order by sort_table.sort_colum= n , > r2.rmf_rec_pid desc LIMIT 0, 50 ) as display ON > display.rmf_rec_pid=3Dr1.rmf_rec_pid LEFT JOIN > lpce.fez_xsd_loop_subelement s1 ON (x1.xsdmf_xsdsel_id =3D s1.xsdsel_id) = LEFT > JOIN lpce.fez_search_key k1 ON (k1.sek_id =3D x1.xsdmf_sek_id) LEFT JOIN > lpce.fez_xsd_display d1 ON (d1.xdis_id =3D r1.rmf_varchar and k1.sek_titl= e =3D > 'Display Type') ORDER BY display.sort_column , r1.rmf_rec_pid DESC > [nativecode=3D1054 ** Unknown column 'r5.rmf_' in 'field list'] ) > C:apachexampphtdocsxamppfezincludeclass.collection.php 972 > > Did I translate anything I shouldn't or is this an error? > > Thanks in advanced > > Ant=F3nio > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share y= our > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > > _______________________________________________ > Fez-users mailing list > Fez-users@... > https://lists.sourceforge.net/lists/listinfo/fez-users > > > |
From: Matthew Smith <yo.checkit@gm...> - 2006-11-27 00:10:51
|
Ant=F3nio The lines: $tpl->setTemplate("workflow/index.tpl.html"); $tpl->assign("type", "edit_security"); Give you the clue. In Fez, this sets up a wrapper template and tells it what to load in the body by setting the 'type'. In this case it will load /templates/en/workflow/edit_security.tpl.html You can then use that trick I told you about in another email where you put '|translate' on the bit that shows the xsdmf title: {$xsd_display_fields[i].xsdmf_title|translate} Or you can get into the admin panels and edit in the HTML match editor - go for the FezACML datastream. Matt On 11/26/06, afonseca@... <afonseca@...> wrote: > > > Hi! > > I spent more than 1 hour untill I give up... > > Where do I translate/disable the: > > Restrict to AD Authenticated Users? > > Restrict to Fez Authenticated Users? > > that are in the /fez/workflow/edit_security.php? > > > > Thanks > > Ant=F3nio > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share y= our > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > > _______________________________________________ > Fez-users mailing list > Fez-users@... > https://lists.sourceforge.net/lists/listinfo/fez-users > > > |
From: <afonseca@po...> - 2006-11-26 17:55:56
|
Hi all! Does anyone has the example of how to hardwire the function convertTZ in = Date.phpto to return our desired timezone? I'm getting Apache crash everyday... Thanks Ant=F3nio |
From: <afonseca@po...> - 2006-11-26 11:21:27
|
Hi (again)! I has browsing the subversion in order to see if a small error was solve = but I think it's not. The file my_collections.tpl.html has a list with the associeted collectio= ns (the correspondant community) and the number of files in collection. The situations is that it is suposed to have the correspondent community = name but it does not print it, rigth? The code: ------------------------------------------------ {assign var=3D"list" value=3D$my_collections_list} {section name=3D"i" loop=3D$list} {cycle values=3D$cycle assign=3D"row_color"} <tr> <td bgcolor=3D"{$row_color}" class=3D"default"> <a href=3D"{$rel_url}list.php?collection_pid=3D{$list[i].p= id|escape}">{$list[i].title.0|escape}</a> </td> <td bgcolor=3D"{$row_color}" class=3D"default"> {$list[i].community|escape} </td> <td bgcolor=3D"{$row_color}" class=3D"default"> {$list[i].count|escape} ------------------------------------------------ Its not suposed to have a {assign var=3D"list" value=3D$my_community_list= } and printed the link <a href=3D"{$rel_url}list.php?community_pid=3D{$l= ist[i]... Or something similar (as I said my PHP is not advanced...) Thanks in advanced Ant=F3nio |
From: <afonseca@po...> - 2006-11-26 11:04:30
|
Hi! I'm not shure if this is an error (or in my translation I changed some na= mes I shouldn=B4t) but I get an error when I try to order results (in /fe= z/list.php?collection_pid=3Dlpce:39&order_by=3DResearch%20Program): ERROR: Array ( [0] =3D> DB Error: no such field [1] =3D> SELECT r1.*, x1.= *, s1.*, k1.*, d1.* FROM lpce.fez_record_matching_field AS r1 INNER JOIN = lpce.fez_xsd_display_matchfields AS x1 ON r1.rmf_xsdmf_id =3D x1.xsdmf_id= INNER JOIN ( SELECT distinct r2.rmf_rec_pid, sort_table.sort_column as s= ort_column FROM lpce.fez_record_matching_field AS r2 INNER JOIN lpce.fez_= xsd_display_matchfields AS x2 ON r2.rmf_xsdmf_id =3D x2.xsdmf_id AND x2.x= sdmf_element=3D'!sta_id' and r2.rmf_varchar=3D'2' AND r2.rmf_rec_pid not = in (select distinct ai3.authi_pid as aip from lpce.fez_auth_index ai3 whe= re (ai3.authi_role in ('Lister', 'Viewer'))) INNER JOIN lpce.fez_record_m= atching_field AS r4 ON r4.rmf_rec_pid =3D r2.rmf_rec_pid INNER JOIN lpce.= fez_xsd_display_matchfields AS x4 ON r4.rmf_xsdmf_id =3D x4.xsdmf_id and = r4.rmf_varchar =3D 'lpce:39' INNER JOIN lpce.fez_search_key AS s4 ON s4.s= ek_id =3D x4.xsdmf_sek_id AND s4.sek_title =3D 'isMemberOf' LEFT JOIN (se= lect r5.rmf_rec_pid, min(r5.rmf_) as sort_column FROM lpce.fez_ record_matching_field r5 inner join lpce.fez_xsd_display_matchfields x5 = on r5.rmf_xsdmf_id =3D x5.xsdmf_id inner join lpce.fez_search_key s5 on s= 5.sek_id =3D x5.xsdmf_sek_id AND s5.sek_title =3D 'Research Program' grou= p by r5.rmf_rec_pid) as sort_table ON sort_table.rmf_rec_pid=3Dr2.rmf_rec= _pid order by sort_table.sort_column , r2.rmf_rec_pid desc LIMIT 0, 50 ) = as display ON display.rmf_rec_pid=3Dr1.rmf_rec_pid LEFT JOIN lpce.fez_xsd= _loop_subelement s1 ON (x1.xsdmf_xsdsel_id =3D s1.xsdsel_id) LEFT JOIN lp= ce.fez_search_key k1 ON (k1.sek_id =3D x1.xsdmf_sek_id) LEFT JOIN lpce.fe= z_xsd_display d1 ON (d1.xdis_id =3D r1.rmf_varchar and k1.sek_title =3D '= Display Type') ORDER BY display.sort_column , r1.rmf_rec_pid DESC [native= code=3D1054 ** Unknown column 'r5.rmf_' in 'field list'] ) C:\apache\xamp= p\htdocs\xampp\fez\include\class.collection.php 972=20 Did I translate anything I shouldn't or is this an error? Thanks in advanced Ant=F3nio |
From: <afonseca@po...> - 2006-11-25 21:56:51
|
Hi! I spent more than 1 hour untill I give up... Where do I translate/disable the: Restrict to AD Authenticated Users? Restrict to Fez Authenticated Users?=20 that are in the /fez/workflow/edit_security.php? =20 Thanks Ant=F3nio |
From: Christiaan Kortekaas <c.kortekaas@li...> - 2006-11-24 00:17:06
|
Hi All For those of you who want to look at Fez in development code the Fez subversion code repository now allows anonymous read checkout. We recommend using TortoiseSVN (if you are running Windows) as your SVN client: http://tortoisesvn.tigris.org/ The SVN checkout location is: svn://dev-repo.library.uq.edu.au/fez/trunk The SVN WebSVN interface is available as usual: http://dev-repo.library.uq.edu.au/websvn/listing.php?repname=3Dfez&path=3D= %2 F&sc=3D0 By the way the dev-repo server (that hosts Fez SVN and the Fez Wiki) will be down for maintenance Saturday 25th (tomorrow) between 8am and 2pm EST for a network environment (routers) upgrade here at UQ. Cheers, Christiaan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=20 Christiaan Kortekaas=20 Senior Library Systems Programmer=20 Library Technology Service=20 The University of Queensland QLD 4072=20 Telephone : (61 7) 3346 4337=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=20 |
From: Christiaan Kortekaas <c.kortekaas@li...> - 2006-11-23 05:18:05
|
Hi Antonio =20 1) Can you edit the security for the community and/or collections these = records and making sure your username or group etc are in the security = rules? There is a bug in Fez 1.2 where even though you are logged in as an = 'Administrator' it doesn't bypass the security for the select_record.php = page. (fixed for 1.3) =20 You could hunt through our subversion or do a backup of the existing = files and a careful WinMerge on a downloaded current tarball of 1.3 if = you like: http://dev-repo.library.uq.edu.au/websvn/listing.php?repname=3Dfez&path=3D= %2F&sc=3D0 =20 2) This is also fixed in 1.3 eg: = http://espace.library.uq.edu.au/list.php?cat=3Dsearch&full_text=3D&list%5= B2%5D=3Dwater&list%5B3%5D=3D&list%5B5%5D=3D&list%5B12%5D=3D&list%5B19%5D=3D= &list%5B11%5D=3D-1&list%5B6%5D=3D&list%5B16%5D=3D&list%5B17%5D=3D =20 So a (careful) WinMerge of the relevant search functions (in = class.collection.php, list.php) and the smarty templates = (/template/en/list_form.tpl.html) =20 Sorry I can't give direct step-by-step instructions at this point in = time as we are focusing on 1.3 =20 Cheers, Christiaan ________________________________ From: afonseca@... [mailto:afonseca@...]=20 Sent: Wednesday, 22 November 2006 10:39 PM To: fez-users@... Cc: Christiaan Kortekaas Subject: Small problems in FEZ 1.3. Hi! I know that you are working hard for FEZ 1.3. Since the Author situations take more time and effort I will wait for your help later. My question is: are you available to see the 2 other errors that I = spoke? 1 the /fez/workflow/select_record.php? is not presenting the list of = records. The page uploads the community names correctly, then I select the = collection (also presented correct) but when it's suppost to present the = records they stay empty! 2 I also noticed that if we do a simple search the $terms name is = presented in the results. But if we do the advanced search the $terms name is not presented in the = results. I ask this because I kown that after the release of FEZ 1.3. other situations will occur and take your time and FEZ 1.2. will be left = back... I also think that this 2 situations need to be solve for version 1.3. = rigth? Please let me know your plans. Thanks again for the support. Ant=F3nio =20 |
From: Christiaan Kortekaas <c.kortekaas@li...> - 2006-11-23 05:08:47
|
Hi Leire =20 I just read this after I sent the previous email, and yes that makes sense that it is Internet Explorer that is returning the wrong mimetype while Firefox is returning the correct one. =20 And the solution is the same as my last email, using a CURL lookup call eg: =20 /** * Uses CURL to get the content type of a url document (mime_content_type cannot do this, so CURL to the rescue). * * @access public * @param string $url The HTTP url * @param string $follow_location=20 * @param integer $timeout The http session timeout * @return string The formatted time */ function get_content_type($url,$follow_location =3D TRUE,$timeout =3D = 5) { $ch =3D curl_init($url); curl_setopt($ch, CURLOPT_FOLLOWLOCATION,$follow_location); curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); curl_setopt($ch, CURLOPT_HEADER, TRUE); curl_setopt($ch, CURLOPT_RETURNTRANSFER,TRUE); if (APP_HTTPS_CURL_CHECK_CERT =3D=3D "OFF") { curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, FALSE); } =20 curl_exec($ch); if (($c =3D curl_getinfo($ch,CURLINFO_HTTP_CODE)) < 200 || $c >=3D = 300) { curl_close($ch); return FALSE; }=20 $type =3D curl_getinfo($ch, CURLINFO_CONTENT_TYPE); curl_close($ch); return $type; } =20 I think this is already in class.misc.php in Fez 1.2, but this may be more up to date. =20 Cheers, Christiaan ________________________________ From: fez-users-bounces@... [mailto:fez-users-bounces@...] On Behalf Of Leire Urcelay Sent: Thursday, 23 November 2006 1:44 AM To: fez-users@... Subject: [Fez-users] RE : Uploading Photoshop images Hi again, =20 I would like to clarify my previous message, since I mixed some concepts... sorry... =20 Jhove is used for retrieving the Preservation Metadata of a file. In case we are uploading a Photoshop image, as Jhove doesn't recognise this kind of file, it just sets 'application/octet-stream' value to mime type attribute and default values to format and status attributes. =20 Regarding the Ingest Image workflow, this workflow is triggered during the upload file process, if the file's mime type corresponds to one of the mime types associated to the Ingest Image workflow. I don't know if I have understood the whole process, but it seems that the mime type of the uploaded file is provided by the browser, isn't it? For example, when uploading .fff files, Internet Explorer sets the mime type as "image/tiff", which is right, while Firefox sets it as "application/octet-stream". =20 The problem of this approach is that the behaviour of the application depends on the client browser. I wonder if there is a proper way to identify if a mime type is correct or not, and then, in case it isn't correct, a way to update it correctly. What do you think? I think that it can be very useful, at lest when uploading images, since the mime type determines if the Ingest Image is triggered or not. =20 Thanks for your help. =20 Leire Urcelay |
From: Christiaan Kortekaas <c.kortekaas@li...> - 2006-11-23 05:05:20
|
Hi Leire =20 Neither JHOVE nor ImageMagick support DefFax files and it is surprising = that Fez thinks they are tiffs. We haven't thought about storing DefFax = files in Fez before because it is a proprietry format, and Fez is focused on = non-proprietry or 'open' formats (and so is JHOVE) for preservation's = sake.=20 =20 The problem is more that Fez seems to think that these files (*.fff) are = Tiff files when they are not. Fez should treat these files as generic = files and not try to run thumbnail/preview/web/jhove workflows on them. =20 During ingest fez gets the mimetype from the = HTTP_POST_FILES['MIME_TYPE'] so it is probable that the post value is = coming into Fez with the wrong value. We will aim to change this in the = future to use CURL to get the mimetype which should be more accurate = (although we haven't had this problem before). This is currently done in = class.misc.php in Misc::getDatastreamXMLHeaders, so that is where we = would make it use CURL isntead of HTTP_POST_FILES data. =20 If you are adventurous you could write your own workflow (like thumbnail = etc) that gets triggered on *.fff or Photoshop (PSD) files and converts = them into a Tiff, and then runs thumbnail/preview/web/jhove on that Tiff. So then you would have the best archival storage of the = image including the original copy. I'm not sure if ImageMagick can = convert PSD files of defFax to Tiff although if it can't there is probably a = similar free/opensource tool that can. =20 JHOVE has modules for the following filetypes: =20 * The AIFF-hul <http://hul.harvard.edu/jhove/aiff-hul.html> module = (2005-05-09)=20 * The ASCII-hul <http://hul.harvard.edu/jhove/ascii-hul.html> module = (2004-03-03)=20 * The BYTESTREAM <http://hul.harvard.edu/jhove/bytestream.html> module = (2004-03-03)=20 * The GIF-hul <http://hul.harvard.edu/jhove/gif-hul.html> module = (2005-05-09)=20 * The HTML-hul <http://hul.harvard.edu/jhove/html-hul.html> module = (2005-05-09)=20 * The JPEG-hul <http://hul.harvard.edu/jhove/jpeg-hul.html> module = (2005-05-26)=20 * The JPEG2000-hul <http://hul.harvard.edu/jhove/jpeg2000-hul.html> = module (2005-05-26)=20 * The PDF-hul <http://hul.harvard.edu/jhove/pdf-hul.html> module = (2005-05-09)=20 * The TIFF-hul <http://hul.harvard.edu/jhove/tiff-hul.html> module = (2005-05-09)=20 * The UTF8-hul <http://hul.harvard.edu/jhove/utf8-hul.html> module = (2005-05-09)=20 * The WAVE-hul <http://hul.harvard.edu/jhove/wave-hul.html> module = (2004-12-17)=20 * The XML-hul <http://hul.harvard.edu/jhove/xml-hul.html> module = (2005-05-09)=20 These filetypes are the only ones Fez will support for running = preservation workflows. The image types in there are probably the only = ones that Fez will support for thumbnail etc conversions, with a preference for Tiff as this is what the Library of = Congress recommends for best preservation: = http://www.digitalpreservation.gov/formats/content/still_preferences.shtm= l =20 Although it looks like perhaps preservation and archival is not your = priority? =20 I hope that helps you! =20 Cheers, Christiaan =20 ________________________________ From: fez-users-bounces@... = [mailto:fez-users-bounces@...] On Behalf Of Leire = Urcelay Sent: Tuesday, 21 November 2006 9:40 PM To: fez-users@... Subject: [Fez-users] RE : Uploading defFax documetns as images Hello, =20 This problem is produced because the original file is composed by = several layers and the convert command generates an output file for each = layer. =20 It can be fixed specifying to the convert command to take the first = layer, which is done adding '[0]' to the original image name, as shown = in the following line [file wfb.image_resize.php] : =20 $command =3D escapeshellcmd(APP_CONVERT_CMD)." -resize = \"".escapeshellcmd($width)."x".escapeshellcmd($height).">\" = ".$image_dir.escapeshellcmd($image)."[0] = ".APP_TEMP_DIR.escapeshellcmd($temp_file); =20 Regards, =20 Leire Urcelay =20 -----Message d'origine----- De : fez-users-bounces@... = [mailto:fez-users-bounces@...] De la part de Leire = Urcelay Envoy=E9 : lundi, 20. novembre 2006 15:11 =C0 : fez-users@... Objet : [Fez-users] Uploading defFax documetns as images =20 Hello, =20 I'm trying to upload defFax images (file extension: fff) using Fez. =20 =20 Jhove recognises this kind of images and sets "image/tiff" as Mime type = but I can see the following messages in the Preservation Metadata file: =20 <messages> <message offset=3D"36415650" severity=3D"info">Unknown TIFF IFD tag: = 34152</message>=20 <message offset=3D"398" severity=3D"info">Unknown TIFF IFD tag: = 46275</message>=20 <message offset=3D"36215586" severity=3D"info">Unknown TIFF IFD tag: = 46277</message>=20 <message offset=3D"8" severity=3D"info">Unknown TIFF IFD tag: = 46279</message>=20 <message offset=3D"33456598" severity=3D"info">Unknown TIFF IFD tag: = 46281</message>=20 <message offset=3D"35815586" severity=3D"info">Unknown TIFF IFD tag: = 50457</message>=20 <message offset=3D"35545580" severity=3D"info">Unknown TIFF IFD tag: = 50458</message>=20 <message offset=3D"37803464" severity=3D"info">Unknown TIFF IFD tag: = 340</message>=20 </messages> =20 Then, when generating thumbnail, preview and web versions of the image = I've got the following errors:=20 =20 [Mon Nov 20 12:47:45 2006] Found error 'File not created = c:/temp/thumbnail_DUB_P_0015.jpg<br/>' on line '89' of script = 'C:\ApacheGroup\Apache2\htdocs\fez\workflow\thumbnail.php' on page = '/fez/workflow/enter_metadata.php'. =20 [Mon Nov 20 12:47:46 2006] Found error 'File not created = c:/temp/preview_DUB_P_0015.jpg<br/>' on line '89' of script = 'C:\ApacheGroup\Apache2\htdocs\fez\workflow\thumbnail.php' on page = '/fez/workflow/enter_metadata.php'. =20 [Mon Nov 20 12:47:47 2006] Found error 'File not created = c:/temp/web_DUB_P_0015.jpg<br/>' on line '89' of script = 'C:\ApacheGroup\Apache2\htdocs\fez\workflow\thumbnail.php' on page = '/fez/workflow/enter_metadata.php'. =20 If I go to the temporary directory, the files thumbnail_DUB_P_0015.jpg , = preview_DUB_P_0015.jpg and web_DUB_P_0015.jpg are not created. = However, the following ones are created: thumbnail_DUB_P_0015-0.jpg, = thumbnail_DUB_P_0015-1.jpg, thumbnail_DUB_P_0015-2.jpg, = preview_DUB_P_0015-0.jpg, preview_DUB_P_0015-1.jpg, = preview_DUB_P_0015-2.jpg, web_DUB_P_0015-0.jpg, web_DUB_P_0015-1.jpg, = web_DUB_P_0015-2.jpg. =20 I don't understand very well what is happening... =20 Has somebody else found similar problems? Any help is welcome! =20 Leire Urcelay |
From: Leire Urcelay <Leire.Urcelay@un...> - 2006-11-22 15:44:12
|
Hi again, I would like to clarify my previous message, since I mixed some concepts. sorry. Jhove is used for retrieving the Preservation Metadata of a file. In case we are uploading a Photoshop image, as Jhove doesn't recognise this kind of file, it just sets 'application/octet-stream' value to mime type attribute and default values to format and status attributes. Regarding the Ingest Image workflow, this workflow is triggered during the upload file process, if the file's mime type corresponds to one of the mime types associated to the Ingest Image workflow. I don't know if I have understood the whole process, but it seems that the mime type of the uploaded file is provided by the browser, isn't it? For example, when uploading .fff files, Internet Explorer sets the mime type as "image/tiff", which is right, while Firefox sets it as "application/octet-stream". The problem of this approach is that the behaviour of the application depends on the client browser. I wonder if there is a proper way to identify if a mime type is correct or not, and then, in case it isn't correct, a way to update it correctly. What do you think? I think that it can be very useful, at lest when uploading images, since the mime type determines if the Ingest Image is triggered or not. Thanks for your help. Leire Urcelay |
From: <afonseca@po...> - 2006-11-22 14:09:09
|
Hi! I know that you are working hard for FEZ 1.3. Since the Author situations take more time and effort I will wait for your help later. My question is: are you available to see the 2 other errors that I spoke? 1 the /fez/workflow/select_record.php? is not presenting the list of record= s. The page uploads the community names correctly, then I select the collect= ion (also presented correct) but when it's suppost to present the records= they stay empty! 2 I also noticed that if we do a simple search the $terms name is presented= in the results. But if we do the advanced search the $terms name is not presented in the = results. I ask this because I kown that after the release of FEZ 1.3. other situations will occur and take your time and FEZ 1.2. will be left back..= . I also think that this 2 situations need to be solve for version 1.3. rig= th? Please let me know your plans. Thanks again for the support. Ant=F3nio |
From: Leire Urcelay <Leire.Urcelay@un...> - 2006-11-21 11:40:27
|
Hello, =20 This problem is produced because the original file is composed by = several layers and the convert command generates an output file for each layer. =20 It can be fixed specifying to the convert command to take the first = layer, which is done adding =91[0]=92 to the original image name, as shown in = the following line [file wfb.image_resize.php] : =20 $command =3D escapeshellcmd(APP_CONVERT_CMD)." -resize \"".escapeshellcmd($width)."x".escapeshellcmd($height).">\" ".$image_dir.escapeshellcmd($image)."[0] ".APP_TEMP_DIR.escapeshellcmd($temp_file); =20 Regards, =20 Leire Urcelay =20 -----Message d'origine----- De : fez-users-bounces@... [mailto:fez-users-bounces@...] De la part de Leire = Urcelay Envoy=E9 : lundi, 20. novembre 2006 15:11 =C0 : fez-users@... Objet : [Fez-users] Uploading defFax documetns as images =20 Hello, =20 I=92m trying to upload defFax images (file extension: fff) using Fez. =20 =20 Jhove recognises this kind of images and sets =93image/tiff=94 as Mime = type but I can see the following messages in the Preservation Metadata file: =20 <messages> <message offset=3D"36415650" severity=3D"info">Unknown TIFF IFD tag: 34152</message>=20 <message offset=3D"398" severity=3D"info">Unknown TIFF IFD tag: 46275</message>=20 <message offset=3D"36215586" severity=3D"info">Unknown TIFF IFD tag: 46277</message>=20 <message offset=3D"8" severity=3D"info">Unknown TIFF IFD tag: = 46279</message>=20 <message offset=3D"33456598" severity=3D"info">Unknown TIFF IFD tag: 46281</message>=20 <message offset=3D"35815586" severity=3D"info">Unknown TIFF IFD tag: 50457</message>=20 <message offset=3D"35545580" severity=3D"info">Unknown TIFF IFD tag: 50458</message>=20 <message offset=3D"37803464" severity=3D"info">Unknown TIFF IFD tag: 340</message>=20 </messages> =20 Then, when generating thumbnail, preview and web versions of the image = I=92ve got the following errors:=20 =20 [Mon Nov 20 12:47:45 2006] Found error 'File not created c:/temp/thumbnail_DUB_P_0015.jpg<br/>' on line '89' of script 'C:\ApacheGroup\Apache2\htdocs\fez\workflow\thumbnail.php' on page '/fez/workflow/enter_metadata.php'. =20 [Mon Nov 20 12:47:46 2006] Found error 'File not created c:/temp/preview_DUB_P_0015.jpg<br/>' on line '89' of script 'C:\ApacheGroup\Apache2\htdocs\fez\workflow\thumbnail.php' on page '/fez/workflow/enter_metadata.php'. =20 [Mon Nov 20 12:47:47 2006] Found error 'File not created c:/temp/web_DUB_P_0015.jpg<br/>' on line '89' of script 'C:\ApacheGroup\Apache2\htdocs\fez\workflow\thumbnail.php' on page '/fez/workflow/enter_metadata.php'. =20 If I go to the temporary directory, the files thumbnail_DUB_P_0015.jpg , preview_DUB_P_0015.jpg and web_DUB_P_0015.jpg are not created. = However, the following ones are created: thumbnail_DUB_P_0015-0.jpg, thumbnail_DUB_P_0015-1.jpg, thumbnail_DUB_P_0015-2.jpg, preview_DUB_P_0015-0.jpg, preview_DUB_P_0015-1.jpg, preview_DUB_P_0015-2.jpg, web_DUB_P_0015-0.jpg, web_DUB_P_0015-1.jpg, web_DUB_P_0015-2.jpg. =20 I don=92t understand very well what is happening=85 =20 Has somebody else found similar problems? Any help is welcome! =20 Leire Urcelay |
From: <afonseca@po...> - 2006-11-20 23:43:51
|
Hi again! I keep getting small errors... the /fez/workflow/select_record.php? is not presenting the list of record= s. The page uploads the community names correctly, then I select the collect= ion (also presented correct) but when it's suppost to present the records they stay empty! I try to fix it but no results! Where is the code that calls the list: <tr > <td width=3D"100" bgcolor=3D"{$cell_color}" class=3D"default"> <b>Com= unidade Parente</b>=20 </td> <td width=3D"75%" bgcolor=3D"{$light_color}"> <select class=3D"default" name=3D"community_pid" onChange=3D"javascri= pt: selectCommunity(this.form, 'community_pid')" > {html_options options=3D$communities_list selected=3D$communities_l= ist_selected } </select> </td> </tr> <tr style=3D"display:none;" id=3D"tr_collection_pid"> <td bgcolor=3D"{$cell_color}" class=3D"default"> <b>Colecç&ati= lde;o</b>=20 </td> <td bgcolor=3D"{$light_color}"> <div id=3D"loading" style=3D"display:none;">Loading...</div> <select class=3D"default" name=3D"collection_pid" onChange=3D"javascr= ipt: selectCollection(this.form, 'collection_pid')"> </select> </td> </tr> =20 <tr style=3D"display:none;" id=3D"tr_pid"> <td bgcolor=3D"{$cell_color}" class=3D"default"> <b>Registo</b> </td> <td bgcolor=3D"{$light_color}"> <div id=3D"loading1" style=3D"display:none;">Loading...</div> <select class=3D"default" name=3D"pid"> </select> Thanks again! Ant=F3nio |
From: Matthew Smith <yo.checkit@gm...> - 2006-11-20 23:35:11
|
Hi Rebecca and Ant=F3nio, I had flagged your previous query about this for attention Rebecca but to get the author and org structure selectors working requires me to work them out myself. The short story is that they work specifically with some in-house XSD stuff. When I get time (I am full speed ahead on 1.3 right now) I will document how they work and see if I can get a more generic solution out there. Matt On 11/21/06, Rebecca Sutton Koeser <rebecca.s.koeser@...> wrote: > On Monday November 20, 2006 at 12:05 AM, afonseca@... wrote: > > I have 2 authors defined in the Authors page, but when I try to > > insert metadata I don t get anyone listed. > > I'm also interested in the author selector/suggestor feature and can't > seem to get it working. I posted a question about it on the > sourceforge forums and haven't gotten an answer; is the user list used > more frequently than the forum? > > I can't get the author selector or author suggestor input types to > work, and the same with the org selector. I've got sample data in the > database for these fields (entered manually, in the case of the orgs), > but can't get anything that looks like an org or author selector to > show up in the forms. > > What am I missing? Are these fully implemented? Is there some trick to > get them to display properly? It's unclear to me what I ought to do > with the part of the form that appears in the XSD matcher after I > select one of these field types. I'm also a little unclear on how the > authors and orgs relate (authors can be restricted to a particular > level in the org?). > > Is it possible that someone could provide a minimal example of what I > need to get the org and author selectors to work in my forms > (including data and XSD matches)? > > Thanks. > > -- > Rebecca Sutton Koeser, Ph.D. > 404-712-2504 > rebecca.s.koeser@... > > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.5 (GNU/Linux) > > iD8DBQFFYdb62wP7Byh4FYsRArVwAKCg0PVlRL3NnoRiL675pMg3SnWzBwCfe94h > 7b1QdYgffl9eOIibCr5MSJM=3D > =3DUhRy > -----END PGP SIGNATURE----- > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share y= our > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > > _______________________________________________ > Fez-users mailing list > Fez-users@... > https://lists.sourceforge.net/lists/listinfo/fez-users > > > |
From: Rebecca Sutton Koeser <rebecca.s.koeser@em...> - 2006-11-20 16:27:30
|
On Monday November 20, 2006 at 10:06 AM, Matthew Smith wrote: > It would probably make sense to have it integrate with a blog. > Perhaps we could curl in a blog front page or use a javascript > include. why not use an RSS feed? It seems like that would make it much more interoperable and configurable. --=20 Rebecca Sutton Koeser, Ph.D. 404-712-2504 rebecca.s.koeser@... |
From: Rebecca Sutton Koeser <rebecca.s.koeser@em...> - 2006-11-20 16:25:49
|
On Monday November 20, 2006 at 12:05 AM, afonseca@... wrote: > I have 2 authors defined in the Authors page, but when I try to > insert metadata I don t get anyone listed. I'm also interested in the author selector/suggestor feature and can't seem to get it working. I posted a question about it on the sourceforge forums and haven't gotten an answer; is the user list used more frequently than the forum? I can't get the author selector or author suggestor input types to work, and the same with the org selector. I've got sample data in the database for these fields (entered manually, in the case of the orgs), but can't get anything that looks like an org or author selector to show up in the forms. =20 What am I missing? Are these fully implemented? Is there some trick to get them to display properly? It's unclear to me what I ought to do with the part of the form that appears in the XSD matcher after I select one of these field types. I'm also a little unclear on how the authors and orgs relate (authors can be restricted to a particular level in the org?). =20 Is it possible that someone could provide a minimal example of what I need to get the org and author selectors to work in my forms (including data and XSD matches)? Thanks. --=20 Rebecca Sutton Koeser, Ph.D. 404-712-2504 rebecca.s.koeser@... |
From: Leire Urcelay <Leire.Urcelay@un...> - 2006-11-20 14:10:57
|
Hello, =20 I'm trying to upload defFax images (file extension: fff) using Fez. =20 =20 Jhove recognises this kind of images and sets "image/tiff" as Mime type = but I can see the following messages in the Preservation Metadata file: =20 <messages> <message offset=3D"36415650" severity=3D"info">Unknown TIFF IFD tag: 34152</message>=20 <message offset=3D"398" severity=3D"info">Unknown TIFF IFD tag: 46275</message>=20 <message offset=3D"36215586" severity=3D"info">Unknown TIFF IFD tag: 46277</message>=20 <message offset=3D"8" severity=3D"info">Unknown TIFF IFD tag: = 46279</message>=20 <message offset=3D"33456598" severity=3D"info">Unknown TIFF IFD tag: 46281</message>=20 <message offset=3D"35815586" severity=3D"info">Unknown TIFF IFD tag: 50457</message>=20 <message offset=3D"35545580" severity=3D"info">Unknown TIFF IFD tag: 50458</message>=20 <message offset=3D"37803464" severity=3D"info">Unknown TIFF IFD tag: 340</message>=20 </messages> =20 Then, when generating thumbnail, preview and web versions of the image = I've got the following errors:=20 =20 [Mon Nov 20 12:47:45 2006] Found error 'File not created c:/temp/thumbnail_DUB_P_0015.jpg<br/>' on line '89' of script 'C:\ApacheGroup\Apache2\htdocs\fez\workflow\thumbnail.php' on page '/fez/workflow/enter_metadata.php'. =20 [Mon Nov 20 12:47:46 2006] Found error 'File not created c:/temp/preview_DUB_P_0015.jpg<br/>' on line '89' of script 'C:\ApacheGroup\Apache2\htdocs\fez\workflow\thumbnail.php' on page '/fez/workflow/enter_metadata.php'. =20 [Mon Nov 20 12:47:47 2006] Found error 'File not created c:/temp/web_DUB_P_0015.jpg<br/>' on line '89' of script 'C:\ApacheGroup\Apache2\htdocs\fez\workflow\thumbnail.php' on page '/fez/workflow/enter_metadata.php'. =20 If I go to the temporary directory, the files thumbnail_DUB_P_0015.jpg , preview_DUB_P_0015.jpg and web_DUB_P_0015.jpg are not created. = However, the following ones are created: thumbnail_DUB_P_0015-0.jpg, thumbnail_DUB_P_0015-1.jpg, thumbnail_DUB_P_0015-2.jpg, preview_DUB_P_0015-0.jpg, preview_DUB_P_0015-1.jpg, preview_DUB_P_0015-2.jpg, web_DUB_P_0015-0.jpg, web_DUB_P_0015-1.jpg, web_DUB_P_0015-2.jpg. =20 I don't understand very well what is happening. =20 Has somebody else found similar problems? Any help is welcome! =20 Leire Urcelay |
From: Leire Urcelay <Leire.Urcelay@un...> - 2006-11-20 13:55:23
|
Hello, =20 I'm trying to upload Photoshop images (file extension psd) using Fez and I've encountered the following problem: =20 It seems that Jhove does not recognise psd files, so when creating the Preservation Metadata information, it defines "application/octet-stream" = as Mime type for this kind of files. The problem is that "application/octet-stream" is an ambiguous mime type and we cannot = associate it to the "Ingest Image" workflow. So, when uploading the file, it is = not treated as an image and thumbnail, preview and web versions of the file = are not created. =20 Do you know how I can solve this problem? I don't know if there is a = proper way to specify another mime type (application/photoshop, or = image/photoshop) to this kind of files.=20 =20 Thanks for your help. =20 Leire Urcelay =20 |
From: <afonseca@po...> - 2006-11-20 02:05:03
|
Hi! I also noticed that if we do a simple search the $terms name is presented= in the results. But if we do the advanced search the $terms name is not presented in the = results. Is a simple way ti fix this? =20 Ant=F3nio |
From: <afonseca@po...> - 2006-11-20 02:03:16
|
Thanks for your email. I had some error during the steps. After some fight...I did it! The final files look like this =20 My =93class.translator.php=94: ---------------------------- <?php =20 class Translator { function translateArray($items) { $res =3D array(); foreach ($items as $key =3D> $item) { $res[$key] =3D Translator::translateString($item); } return $res; } =20 function translateString($string) { =20 $t =3D $string; switch ($string) { case 'Title': $t =3D 'Titulo'; break; case 'English Phrase': $t =3D 'Non English Phrase'; break; default: break; } return $t; } } ?> ---------------------------- Changed your=20 include_once(APP_INC_PATH,'class.translator.php');=20 =20 to include_once(APP_INC_PATH . "class.translator.php"); =20 and placed not on the top but in 3=BA. =20 include_once("config.inc.php"); include_once(APP_INC_PATH . "db_access.php"); include_once(APP_INC_PATH . "class.translator.php"); =20 Changed the line in list.php that has this $tpl->assign('order_by_list', $order_by_list); to : $tpl->assign('order_by_list', Translator::translateArray($order_by_li= st)); =20 Now, it works fine. Thanks for your support and help! =20 =20 Ant=F3nio |