Closed djplaner closed 3 years ago
Currently extractCardMetaData is not correctly able to replace the vtbegnerated stuff into ps
addCardInterface is calling generateDateHtml with a unconverted date in date.start
Week 1 is getting converted into date.start=25 Feburary 2019.
The actual conversion is done in getTermDate, but there were two versions of getTermDate. An old one and a new one names getTErmDateCards. This was meant to be used by all card interface stuff. But it wasn't being used by the new code copied across.
However, turns out the old function is no longer being used. Move everything back to getTermDate and "remove" old getTermDate
Remaining issues
Work done in generateDateHtml....the week template had a hard coded week.
extractCardsFromContent is only getting 1 card. It's passed bbItems which has four APpears that the index counter looping through items is leaping to beyond the count
The loop variable wasn't defined using let. That fixed the problem.
All working But the styles of cards is upset by being within the content interface styles.
For sometime content.js has had some support for cards - but not quite contentWithCards level.