This forum has been archived. All content is frozen. Please use KDE Discuss instead.

url relative instead of absolute

Tags: None
(comma "," separated)
DeusIX
Registered Member
Posts
9
Karma
0
OS

url relative instead of absolute

Tue Jan 25, 2011 2:56 pm
So, after you told that there's a "fields edit" I discovered that it's possible to launch programs, for example pdf's directly from tellico, which makes Tellico even more superior!

Now I'm considering makin Tellico all-purpose launcher (within certain limitations ;) ).

Now heres a problem scenario:
- I make a collection and fill all the fields.
- I choose to move the actual files to somewhere else.
- Tellicos url's gets broken! (bad)

possible solution 1:
- Checkbutton to make url relative. So I can move my collection to for example usb-hdd.

possible solution 2:
- Hash-check and track the files.

possible solution 3:
- Search & Replace: file:///home/blah/ -> file:///media/usb/blah


I would recommend the 1st solution. Then the following file structure would work and by moving the entire "/blahblah/" the collections would remain intact.

/blahblah/mypdfs.tc
/blahblah/currentevents/
/blahblah/classics/
/blahblah/philosophy/

Portable books on an usb-stick that work well with any computer that has tellico installed. Yeah!
robbystephenson
KDE Developer
Posts
384
Karma
1
OS
DeusIX wrote:Now heres a problem scenario:
- I make a collection and fill all the fields.
- I choose to move the actual files to somewhere else.
- Tellicos url's gets broken! (bad)

possible solution 1:
- Checkbutton to make url relative. So I can move my collection to for example usb-hdd.
I'm not sure if we're using the word relative the same way, but you can make any URL field use links relative to the location of the .tc file. I don't know that the capability has been exercised much by users, but if you find a bug, please let me know.

http://docs.kde.org/development/en/extragear-office/tellico/details.html#url

Open up the Field Editor, select the URL field you want to make relative, then click the Set Properties... button. Set a property named relative equal to a value of true, and give that a shot.
Micromet
Registered Member
Posts
7
Karma
0
OS

Re: url relative instead of absolute

Tue Aug 02, 2011 11:17 am
I've only just joined and spotted this topic in the forum.
I have probably the same question which doesn't appear to have been answered yet - excuse me if I am wrong.
My URL entries in the Tellico database all currently point to specific files in directories on my harddrive - e.g.
/home/musicfiles/music01.mp3.
If I subsequently wish to move the entire /home/musicfiles/ directory to a USB or DVD - the path will not be the same (USB may be /media/musicfiles/ and DVD may be /dev/sr0/musicfiles/) -so the URL's within Tellico will be broken.

I could, I believe open up the database xml file and using an editor - change all URL entries from /home/musicfiles/ to /media/musicfiles/
Is this the recommended way to do this or is there another way?

On an allied subject - and don't laugh - I'm running Tellico Ver 2.0 using KDE 4.2.4 - and I can't find the Tellico database anyway? Where is it stored? I've searched for the .tc file with no result other than ancient 2007 entries - has the database storage name changed?
robbystephenson
KDE Developer
Posts
384
Karma
1
OS
Micromet wrote:I've only just joined and spotted this topic in the forum.
I have probably the same question which doesn't appear to have been answered yet - excuse me if I am wrong.
My URL entries in the Tellico database all currently point to specific files in directories on my harddrive - e.g.
/home/musicfiles/music01.mp3.
If I subsequently wish to move the entire /home/musicfiles/ directory to a USB or DVD - the path will not be the same (USB may be /media/musicfiles/ and DVD may be /dev/sr0/musicfiles/) -so the URL's within Tellico will be broken.

I could, I believe open up the database xml file and using an editor - change all URL entries from /home/musicfiles/ to /media/musicfiles/
Is this the recommended way to do this or is there another way?
That's pretty much the only way at the moment.
Micromet wrote:On an allied subject - and don't laugh - I'm running Tellico Ver 2.0 using KDE 4.2.4 - and I can't find the Tellico database anyway? Where is it stored? I've searched for the .tc file with no result other than ancient 2007 entries - has the database storage name changed?
Using .tc files has not changed. If you were saving your old files, then just open them up and continue using them. You can save your files anywhere you'd like, there's no default location or storage name.
Micromet
Registered Member
Posts
7
Karma
0
OS
Thanks Robby,

It's not that difficult to "Replace All" URL paths or semi-paths to a new one in a decent editor - one of the advantages of storing the database in xml. Just wondered if there was a hidden symlink function somewhere.

Reason I couldn't find the *.tc file with a normal *.tc search was that the database was stored as a tc file but without the .tc extension - all OK now.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell