sorting out books

30 posts / 0 new
Last post
Mike Harman
Offline
Joined: 7-02-06
Jul 4 2007 20:55
sorting out books

When we started the library ages ago (two years now), we used "books" to organise a lot of articles, especially history ones. Now we use tags, but a lot of library articles are still in as books instead of library articles - this means they don't show up in lists like http://libcom.org/library/tags/strikes etc. Also, some books are completely empty of content, because they've been replaced by tags and just have a "moved to" - we should just delete them.

There's also a few full length books where the book content type is used as it should be - to organise chapters etc. those we need to leave alone, at least for now.

If anyone fancies helping with this, follow the following steps:

Go to: http://libcom.org/book - this is a list of books.

Pick one that's an actual library article, and isn't part of a book or the notes section.

Copy the text in a new library article
Copy the tags over (or change them to better ones)
Copy the title.
Add a short introduction (one descriptive sentence is fine), and an image if there's a suitable one available.

Then post up here the urls of both the book and library versions so we can check and delete the old one (if you have the ability to delete content, and know what you're doing, forget this bit, you know who you are).

jef costello's picture
jef costello
Offline
Joined: 9-02-06
Jul 4 2007 21:31

I was going to do this one but the pdf appears to be incomplete.

http://libcom.org/library/meaning-tiananmen

It's missing a page off the end as far as I can tell. I found a html version elsewhere, it had lots of pictures added but I just took the text.

http://libcom.org/library/meaning-tiananmen-0

That's the new page, it might be better if we got the pictures from lustforlife but we'd probably need to ask.
If I did delete the original page would I be able to tidy up the address (-0) or would I still need to post here for that to be fixed? If it's a URL then I can change it and the node doesn't matter right?

jef costello's picture
jef costello
Offline
Joined: 9-02-06
Jul 5 2007 21:41

hello?

Mike Harman
Offline
Joined: 7-02-06
Jul 5 2007 21:56

Sorry missed this last night.

The PDF is from endpage I think. Text is way better. It'd be good to get photos, I think we have a load of stuff from point-of-departure.org - and the person who runs it may even have been in touch, but no e-mail address I can see, or usage policy, so maybe use them and ask at same time.

If you delete the old page (which is fine, no point having it if we have text version), then you can edit the address straight from the node edit form for the new one, should work fine.

Also - with multiple images - best way now is to attach them as files to the end of the article, then link to them using either:

1. normal html img tags

2. [ inline:1 ] [ inline:2 ] syntax without the spaces (we have a module which converts it although it's a bit buggy)

that way they're in one place, and this will eventually lead to us having a decent image gallery system within the site.

jef costello's picture
jef costello
Offline
Joined: 9-02-06
Jul 5 2007 22:19

ok catch, I'm not quite sure I follow you about the images. if you add them as attachments will it give you the url for the image? Inline stuff i assume 1 will be the first image attached, or will I have to put in the names?

I'm not sure about the images tbh, might put them in and see how it looks.

Mike Harman
Offline
Joined: 7-02-06
Jul 5 2007 22:26

Yes it gives you the url (it'll be /files/image-filename.jpg usually)

1 2 3 - it will pick up in order, if not filename I think works as well.

jef costello's picture
jef costello
Offline
Joined: 9-02-06
Jul 5 2007 22:38

I think I'll wait until tomorrow to give all that a try it seems a bit complicated.

Mike Harman
Offline
Joined: 7-02-06
Jul 5 2007 22:53

Yeah it is sad

It also doesn't work for news and history articles - only library. Explaining why will drain my will to live.

jef costello's picture
jef costello
Offline
Joined: 9-02-06
Jul 5 2007 23:06

poor catch.

I'll bring you back some good beer next time I'm home.

jef costello's picture
jef costello
Offline
Joined: 9-02-06
Jul 8 2007 21:40

I'm not getting the option to delete the original page (could be cause it's a book I'm pretty sure I can delete library articles) and I have got an 'in moderation' warning at the top of the page for the new one.

If I do any more I'll just post up the links here.

Mike Harman
Offline
Joined: 7-02-06
Jul 22 2007 15:23

So I'm working on this a bit. There's about 281 in total.

10-20 of those are in notes/organise/thought and can be left alone.

Probably about 30-40 are multiple page books that can be left alone.

That leaves probably about 200-220 articles that are single pages and need to be moved to library articles. Most of them are just plain text, so very easy to copy over.

Steven.'s picture
Steven.
Offline
Joined: 27-06-06
Jul 23 2007 09:30

you're a trooper catch!

Steven.'s picture
Steven.
Offline
Joined: 27-06-06
Jul 23 2007 09:31

oh, if you show me a list of these i can help do them as well. will be cool cos we can add images, proper tagging + location, intros and promote to front page as we do. and bump old articles to the front to get more reads again wink

Mike Harman
Offline
Joined: 7-02-06
Jul 23 2007 09:42

http://libcom.org/book (also linked in the first post on this thread wink )

also http://libcom.org/images is down to two pages

Steven.'s picture
Steven.
Offline
Joined: 27-06-06
Jul 23 2007 10:44

catch - just checking you're copying over the old URLs?

also we should change titles so all library articles have
Article name, 1956

and history ones are
1956: Article name

yeah?

Mike Harman
Offline
Joined: 7-02-06
Jul 23 2007 10:52
John. wrote:
catch - just checking you're copying over the old URLs?

Most of them I copied, some I forgot.

When you do that - remember to delete the old article before you save it, otherwise you'll get -0 at the end because it duplicates.

Quote:
also we should change titles so all library articles have
Article name, 1956

and history ones are
1956: Article name

yeah?

I quite like the idea of library articles having the date first - then you can get a chronological listing when it's done alphabetically. Also I think it's better they're consistent with history rather than different.

Steven.'s picture
Steven.
Offline
Joined: 27-06-06
Jul 23 2007 11:35
Mike Harman wrote:
John. wrote:
catch - just checking you're copying over the old URLs?

Most of them I copied, some I forgot.

When you do that - remember to delete the old article before you save it, otherwise you'll get -0 at the end because it duplicates.

No, that's with the auto-URLing - but we have it differently now, so URLs will be different. If you copy the URL it says "url already in use" or something

Quote:
Quote:
also we should change titles so all library articles have
Article name, 1956

and history ones are
1956: Article name

yeah?

I quite like the idea of library articles having the date first - then you can get a chronological listing when it's done alphabetically. Also I think it's better they're consistent with history rather than different.

I disagree with that, i think it's good because it's the only way in tag indexes to see if something's a history or library article

Mike Harman
Offline
Joined: 7-02-06
Jul 23 2007 11:40
Quote:
No, that's with the auto-URLing - but we have it differently now, so URLs will be different. If you copy the URL it says "url already in use" or something

Yeah that's why you need to copy the whole article over, then delete it before you save the new one (if you copy the url alias).

Otherwise just leave the url alias and let it make a new one by itself - we can always add the old one as an extra if there's linkrot - I check 404 errors every couple of months for common ones. That saves worrying about which order to delete in, and it's one less thing to do.

Quote:
I disagree with that, i think it's good because it's the only way in tag indexes to see if something's a history or library article

No one else will know that apart from us, and we can use library/tags/tag-name or admin panel to find that kind of thing out.

Steven.'s picture
Steven.
Offline
Joined: 27-06-06
Jul 23 2007 12:05
Mike Harman wrote:
Quote:
No, that's with the auto-URLing - but we have it differently now, so URLs will be different. If you copy the URL it says "url already in use" or something

Yeah that's why you need to copy the whole article over, then delete it before you save the new one (if you copy the url alias).

Otherwise just leave the url alias and let it make a new one by itself - we can always add the old one as an extra if there's linkrot - I check 404 errors every couple of months for common ones. That saves worrying about which order to delete in, and it's one less thing to do.

But the settings on auto-urling are different, now words like to, from and stuff are omitted - i think they shouldn't be actually, as they are included in google searches (i know "and" isn't though.

Quote:
No one else will know that apart from us, and we can use library/tags/tag-name or admin panel to find that kind of thing out.

well the chronology thing was why we named library stuff like that at first, but since then it's been done differently. we'd have to edit hundreds of articles to do them all, and i like being able to see which are history articles on indexes. i'm sure other people could pick that up too, esp if we put it in the site guide (news articles have Country: Article name, history: 1865: Article name, library Article name - Author, 1865 etc.)

Mike Harman
Offline
Joined: 7-02-06
Jul 23 2007 12:13
John. wrote:
But the settings on auto-urling are different, now words like to, from and stuff are omitted - i think they shouldn't be actually, as they are included in google searches (i know "and" isn't though.

Yeah they'll end up with different urls - we can fix that later if they generate 404s by adding an extra alias later. If you want to keep the same urls, then just make sure you delete the original book page before you submit the library page. Then it'll clear out the old url when deleted and make it available for the new article. Just don't lose both by mistake!

Even a partial chronology is better than none. If you really want library/history available on tag indexes we could probably do that at the theme level (either a little icon, or just an extra bit of text next to tags etc.) - that'd be a bit of theming work, but less than re-titling loads of articles, and we can do it any time, change it around etc.

Steven.'s picture
Steven.
Offline
Joined: 27-06-06
Jul 24 2007 15:00

nb i'm adding pics, decent teasers, doing tagging + location, formatting and promoting/demoting from front page where needed and where i can.

Steven.'s picture
Steven.
Offline
Joined: 27-06-06
Jul 24 2007 15:14

i can't add this image to the blod docks article - driving me crazy!
http://www.cs.mu.oz.au/~rafe/galleries/February%202003/640x480/Docks%20-%201.JPG

Mike Harman
Offline
Joined: 7-02-06
Jul 24 2007 15:49

try renaming to something neat + lowercase.

Steven.'s picture
Steven.
Offline
Joined: 27-06-06
Jul 24 2007 15:51

yep did that, a few times...

Mike Harman
Offline
Joined: 7-02-06
Jul 24 2007 16:18

Not sure why then, probably module bug. I have the original of that pamphlet so can scan actual cover - doesn't fix the problem but saves you trying that photo again and again!

Mike Harman
Offline
Joined: 7-02-06
Aug 20 2007 15:04

Ok thinking about how this ties into merging library and history. It might (might) be possible to update the content type for these in the database, then just take them out of book outlines manually for articles that are standalone. Would save a lot of copying and pasting.

Also I reckon we should do that for all actual books - so anything that should be in the library is in the library content type, and eventually notes gets it's own content type as well. New book module for drupal 6 doesn't require book content type at all.

Mike Harman
Offline
Joined: 7-02-06
Aug 20 2007 15:22

Yep because all the fields are the same, it works.

OK I'm going to set every book to be type "library" that has an node id less than 9485 (which is when notes started and things get complicated).

This won't remove them from the book outline, it just changes the type in the database (literally the text in one field from "book" to "library").

So it'll still be necessary to go through and take them out of the book outlines - just click on the outline tab, then "remove from book outline". But no more copying and pasting into new nodes. Also loads of these need intros, photos and tags, but so do a lot of library articles in general, so I reckon we're better off doing that as part of a general audit.

Advantage of this - if you tag articles within books, they'll show up in feeds as normal. It also means we'll be able to remove "book" from a load of feeds so notes articles don't show up in the library etc.

Mike Harman
Offline
Joined: 7-02-06
Aug 20 2007 15:35

UPDATE node SET type = library WHERE type = book AND nid < 9485

Affected rows: 1072 (Query took 0.7009 sec)

Cool. So now it's just

1. Find articles which are just one page (i.e. not books)
2. click outline tab
3. click "remove from book outline"
4. tidy article up if it needs it.

ones that are in actual books can stay as they are, I think we should add images/tags/intros to decent chapters if it's things like articles in an edition of a magazine or whatever, especially when the subjects are different.

Fuck that's going to be easier now.

Steven.'s picture
Steven.
Offline
Joined: 27-06-06
Aug 20 2007 15:37

nice one catch

Mike Harman
Offline
Joined: 7-02-06
Aug 20 2007 15:40

I'm pleased with myself, reckon that's about 50-100 hours work, maybe more, wiped out by a singe line query.