Search by date

Requests for new functionality or improvements in existing functionality. Please provide clear descriptions of your request, an example or if possible a real life scenario.
Post Reply
mayanvic
Posts: 15
Joined: Thu Aug 23, 2018 4:27 pm

Search by date

Post by mayanvic »

I have a new office using Mayan for tracking inbound scanned mail documents.

Seems they just need to search by date or date range (month) added but Mayan seems to have this missing from the Search options?

Is that easy to add a search by date created or modified per document?

thanks!

User avatar
rosarior
Developer
Developer
Posts: 522
Joined: Tue Aug 21, 2018 3:28 am
Location: Puerto Rico
Contact:

Re: Search by date

Post by rosarior »

We can add the date fields since the search system allows for adding fields easily. However there is no syntax for date ranges. Searches at first will be treated as full text search until we implement date ranges.

User avatar
rssfed23
Moderator
Moderator
Posts: 213
Joined: Mon Oct 14, 2019 1:18 pm
Location: United Kingdom
Contact:

Re: Search by date

Post by rssfed23 »

mayanvic wrote:
Fri Dec 06, 2019 5:04 pm
I have a new office using Mayan for tracking inbound scanned mail documents.

Seems they just need to search by date or date range (month) added but Mayan seems to have this missing from the Search options?

Is that easy to add a search by date created or modified per document?

thanks!
Just so you know Mayanvic, you can add an index that sorts by year then month (as an interim measure), allowing staff to view everything received within that time frame. You can use "{{ document.file_metadata_value_of.exiftool_CreateDate|slice:"0:4" }}" as the first child node then "{{ document.file_metadata_value_of.exiftool_CreateDate|slice:"5:7" }}" as a further child node and then users will get a list of years they can click then months to show all documents of that type that were created during that timeframe.
If your documents don't have exif data for created (Most scanner types that output a pdf/image will put the date in there) then you can use {{ document.date_added|date:"Y" }} and {{ document.date_added|date:"m" }} to use the date it was added to mayan instead
Please bear with us during the current global situation. The team all have families and local communities to look after as well as the community here. Responses may be delayed during this time, but rest assured we will get to your query eventually.

Post Reply