Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre Companion

Notices

Reply
 
Thread Tools Search this Thread
Old 07-28-2017, 05:26 AM   #1
nikoski
Zealot
nikoski began at the beginning.
 
Posts: 105
Karma: 10
Join Date: Feb 2014
Device: none
Sort on data+time entered into the column "title"?

I give some of my PDFs on the PC under windows names containing date+time, like in this example ...

28.07.2017-11.20
25.08.2017-09.10

Afterwards i import them to calibre and get those names as "titles" and assign to them a tag "appointments".

After syncing them to CC i'd like to be able to sort those PDFs under "appointments" according to the data+time as entered in "title". This does not seem to work.

How could i achieve that otherwise?

Last edited by nikoski; 07-28-2017 at 05:33 AM.
nikoski is offline   Reply With Quote
Old 07-28-2017, 05:48 AM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,365
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by nikoski View Post
I give some of my PDFs on the PC under windows names containing date+time, like in this example ...

28.07.2017-11.20
25.08.2017-09.10

Afterwards i import them to calibre and get those names as "titles" and assign to them a tag "appointments".

After syncing them to CC i'd like to be able to sort those PDFs under "appointments" according to the data+time as entered in "title". This does not seem to work.

How could i achieve that otherwise?
Title is sorted as text. It cannot be sorted as a date. This is true in both CC and calibre.

I can think of two ways for you to solve this problem.
  • Create a datetime custom column and store your "title" in that column. Add that column to CC's sort menu. Getting the date from the title into the new column could present a challenge because your "title" matches no current calibre date format.
  • Use a text format for the date that sorts correctly as text, such as 2017.08.25-09.10. You would need to use a 24-hour clock.
chaley is offline   Reply With Quote
Advert
Old 07-28-2017, 05:59 AM   #3
nikoski
Zealot
nikoski began at the beginning.
 
Posts: 105
Karma: 10
Join Date: Feb 2014
Device: none
Thanks a lot for your hint!

datetime column: this way i'd need to enter the data+time under windows and again in calibre.

The "reverse" date+time in the "title" seems to work ok and it's good enough for my purpose
nikoski is offline   Reply With Quote
Old 07-28-2017, 10:57 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,944
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by nikoski View Post
Thanks a lot for your hint!

datetime column: this way i'd need to enter the data+time under windows and again in calibre.

The "reverse" date+time in the "title" seems to work ok and it's good enough for my purpose
You can use Bulk )mode) metadata edit to 'copy' one field into another, including combining other metadata data or literals
theducks is offline   Reply With Quote
Old 07-29-2017, 03:51 AM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,365
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by theducks View Post
You can use Bulk )mode) metadata edit to 'copy' one field into another, including combining other metadata data or literals
The date/time format used by the OP makes this difficult. Calibre cannot parse dates that are separated by periods, so the "copy" would require some rather complex template regular expressions to convert it. For example,
Code:
25.08.2017-09.10
needs to become
Code:
25/08/2017 09:10
Once that template was worked out then indeed bulk edit S/R can be used to copy the title to a date column.
chaley is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Use "short" instead of "full" title for title sort & renaming? wolpi Library Management 2 08-04-2016 05:25 PM
"New" sort in text column morawcik Library Management 10 03-17-2012 11:44 AM
Custom column: "Updated date", when adding new "versions" of the same file? enriquep Library Management 16 11-03-2011 10:46 AM
"The book publishing industry has entered a period of long-term decline" RockdaMan News 74 05-10-2011 07:54 PM


All times are GMT -4. The time now is 10:28 AM.


MobileRead.com is a privately owned, operated and funded community.