Needs work
Project:
Web File Manager
Version:
6.x-2.12
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
20 Mar 2008 at 17:21 UTC
Updated:
29 Mar 2011 at 07:22 UTC
Jump to comment: Most recent file
Hi Robmilne, i have a request about search feature.
I need that search also includes the names of folders and titles and descriptions in file meta data.
Do you think that is possible?
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | webfm-6.x-2.12-add_search_button.patch | 5.34 KB | g4b0 |
Comments
Comment #1
robmilne commentedThis is all very possible with some mods to the webfm_searchFiles class in webfm.module. I don't have the time these days to help out, but I can review a patch if you feel inclined to try your hand.
Comment #2
matteo82 commentedI'm not a programmer but I'm trying to do something.....
Comment #3
robmilne commentedI wish you luck, however I'm not able to take this on at this time. A proper search indexer of file data and webfm_file table data might be worth researching.
I'd love to see improvement of search, especially for users with large data stores. If someone else could do the footwork I'd be much obliged and very willing to integrate via a patch.
Comment #4
matteo82 commentedComment #5
g4b0 commentedInstalling this patch the search is performed through:
1) file name
2) metadata title
3) metadata description
I've also inserted the option to have a separate search button into the admin section, enabling it will show a 'Search' button just above the upload section.
I hope to see my code in the next release :)
Comment #6
nhck commentedComment #7
nhck commentedComment #8
g4b0 commentedWhat kind of work it needs?
Comment #9
j_smits commentedTried to do the patch but get this error:
File to patch: webfm.module
webfm.module: No such file or directory
Skip this patch? [y] n
File to patch: /Volumes/Werkschijf/Clienten/IFHP/website/_drupal/sites/all/webfm/webfm.module
patching file /Volumes/Werkschijf/Clienten/IFHP/website/_drupal/sites/all/webfm/webfm.module
Hunk #1 FAILED at 68.
Hunk #2 FAILED at 381.
2 out of 2 hunks FAILED -- saving rejects to file /Volumes/Werkschijf/Clienten/IFHP/website/_drupal/sites/all/webfm/webfm.module.rej
can't find file to patch at input line 26
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|diff -rupN webfm-browser.tpl.php webfm-browser.tpl.php
|--- webfm-browser.tpl.php 2009-07-26 21:50:49.000000000 +0200
|+++ webfm-browser.tpl.php 2010-05-19 14:55:21.547796000 +0200
--------------------------
What does this mean?
Thanx,
jonathan
Comment #10
nhck commentedSorry for the lengthy review. I understand the idea - and in my opinion it is really good! It just needs some work. Lets see what you and others think about this :-)
This should be just. t('Display a search box.')
In my opinion this location of the whole search button isn't a really good thing. Don't you think it should be on top? I have like 70 folders and couldn't find it at first.
You are not using a Drupal5 version are you? Other than that you can leave this out it has been fixed.
Sorry, but we can't use a button for this at least if it hasn't come through formsAPI.A normal link is the most we can do. However I think it would be a lot more convenient if you could directly type the file name in a real search box without a popup.
I understand you need to check for duplicates, but isn't it possible to do this by file id. I think its quiet okay if files in different folders have the same name.
uhm?
Powered by Dreditor.
Comment #11
g4b0 commentedSorry for the lengthy reply :P
1) Ok
2) Yes, pheraps it's better to put it in the top
3) I'm using Drupal 6. I think that is just a mistake.
4) The perfect way, in my opinion, it would be a open/close link like "File Upload", and no popup. The problem is that I wasn't able to implement it. Does anybody can give me a hint?
5) I search for file path, not just file name. In that way two files with the same name, but in different folder, will be showed in the search result.
6) Just debug :)
ultimately the only real point that needs development is the fourth, but I can not find a way to solve it because of my unfamiliarity with javascript ... I hope someone can give me an hint on how to do it (maybe the original author of the module).
Sorry for my bad English
g4b0
Comment #12
vmevada102 commentedhello friends,
thank you for your nice replies..
but tell me how to patch this file... i m somewhat new bee in the drupal ..
but finding so much problem in search in drupal..
please let me know how to install patch this webfile manager search button..
thank you in advance... please help me for this
Comment #13
g4b0 commentedHi vmevada102,
Download WebFm 6.x-2.12 (the stable version) and apply the patch following http://drupal.org/patch.
Maybe it works also with last development version, let us know!! It's a work in progress patch, feel free to modify it and send it to us, but read before the discussion above :)
Comment #14
skcgeek01 commentedI hate to be stupid, but how do I move the search button to the top? I agree with Niels Hackius in that I didn't see it initially as well. Otherwise I do like this as I've had a few users not figure out the 'right click' search.
Thx....
Comment #15
g4b0 commentedI will fix that, but right now I'm working on other things... For a quick&dirty solutuin you can modify manually the html code into the tpl.
Comment #16
madhusudan commentedthanks @g4b0
the patch worked for latest webfm release 6.x-2.x-dev Download (121.72 KB) 2010-Jul-18 , although failed at 2 lines
now i can search meta-data for 'tittle' and 'description'.
still 'publisher' meta-data not included, never mind ill fix the code :-).
Comment #17
lilon commentedsubscribing
Comment #18
vmevada102 commentedthank a lot to provide such good help.
i am very much thank ful to your sir