Add choices for the <itunes:author> source

drewish - June 3, 2009 - 17:09
Project:iTunes
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Following up on #480192: Add <itunes:keywords>, <itunes:author>, and <itunes:duration> elements. where we added the <itunes:author> element we should make it more flexible on where we get the author name from. I'd like a per-node-type option that's either: "- None -", Node Author, or any of that type's CCK text fields.

#1

guix - June 3, 2009 - 21:13

I got it working, will submit the patch tomorrow. I was just wondering, maybe CCK User Reference would be best for this (we can leave CCK textfield too).

#2

guix - June 4, 2009 - 07:51
Status:active» needs review

Hey Drewish, here's the patch against -dev. I'm sorry, I have no CVS access at work but I made a patch for multiple files with diff. Some file timestamps are wrong too because I started to work before your last commit. Hopefully I'll improve myself with CVS and patches !

Anyway, the patch allows to choose the source for itunes:author between :
- none
- node author
- a CCK Text Field of this nodetype, but textareas are not allowed : we obviously want something short for itunes:author
- a CCK User Reference field of this nodetype, and if multiple values are provided, they are imploded in a comma separated string

Let me know !
Guix

AttachmentSize
itunes-481072-2.patch 4.17 KB

#3

drewish - June 4, 2009 - 12:54

I haven't tested it but just looking at the patch that looks great. I'll be back in a few hours and take a look at it then.

#4

guix - June 14, 2009 - 13:39

Hello Drewish, any updates on this ? If you prefer I can re-roll a patch against CVS with the good file timestamps.

#5

drewish - June 14, 2009 - 18:06
Status:needs review» needs work

okay i liked your choice of source naming and decided to rename the rest of the variables to match it. i also did a little clean up around it but it shouldn't be too different from your code. might taking a look at it? it probably needs some work.

AttachmentSize
itunes_481072.patch 9.05 KB

#6

guix - June 16, 2009 - 09:57
Status:needs work» needs review

I just found a typo in a variable name, otherwise I've reviewed and tested the code and everything is clean. I added some fixes for warnings found by Coder, too. I just hope you can work easily with the multiple files patches I did with diff (I've asked for CVS acces @work but it should take some time... IF I get it). See you !

AttachmentSize
itunes-481072-6.patch 12.05 KB

#7

guix - June 17, 2009 - 16:14

I now have CVS access at work and I re-rolled a patch against CVS, is it more usable for you ?

AttachmentSize
itunes-481072-7.patch 13.5 KB

#8

JaredAM - July 31, 2009 - 22:10

I like where this module is going, but what if someone is using a node reference (as the author) to point to a staff page?

I suppose that someone could use nodeapi and get the node reference and insert it to the "node author" field on presave.

*Updated*

Never mind, I see where there is a userreference!

#9

JaredAM - July 31, 2009 - 22:11

In the new admin page, there is an issue with the Vocab and the default selected value. I've rolled a patch to catch this.

AttachmentSize
itunes-vocab-defaultselect.patch 536 bytes

#10

drewish - July 31, 2009 - 22:52

committed JaredAM's patch to HEAD.

also committed the documentation and white space changes from guix on #7. i'll re-roll a clean version of the patch in a minute.

#11

drewish - July 31, 2009 - 22:58

here's what's left of guix's changes. i dropped the @see -> See change since @see is better PHPDoc.

AttachmentSize
itunes_481072.patch 9.02 KB

#12

drewish - July 31, 2009 - 23:46
Status:needs review» fixed

made a few small changes and committed the following to HEAD.

AttachmentSize
itunes_481072.patch 10 KB

#13

guix - August 2, 2009 - 02:14

Thanks for the update and credits :)

#14

drewish - August 2, 2009 - 06:49

of course! you're very welcome. thanks again for all your hard work. sorry i let it sit for so long before JaredAM prompted me to look at it.

#15

System Message - August 16, 2009 - 06:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.