--- trunk2/NEWS.pod 2004/06/15 22:40:07 352 +++ trunk2/NEWS.pod 2004/06/20 17:52:41 375 @@ -28,11 +28,60 @@ =head2 Lookups For a start, lookup files are no longer supported. Since memory lookups -are newer and more powerfull (for example, each key can have more than +are newer and more powerful (for example, each key can have more than one value) it's not a great loss. However, you will have to re-write your C files if you use lookup files to use memory lookups. -Memory lookups (refered as lookups for new versions of WebPAC) are now -available always. Since whole database is availabe when creating +Lookups B specified by C<[v900^4]> as in v1.x. Now, you have +to use something like C. Recursive lookups are also +possible: C. + +Memory lookups (referred as lookups for new versions of WebPAC) are now +always available. Since whole database is available when creating output linking should be much easier now. +However, using new lookups require to define lookups in different way. +Additional benefit of that is conditional insert into lookup using eval +(TODO: explain new lookup format). + +If you have any lookups in your tag (e.g. lookup{v900^5}) +smart delimiters will be turned off (this behaviour is consistent with +old in v1.x if you use C or C). + +=head2 Field definition in C + +Field definitions in C files has changed. Previously, you could +write something like C<250a> and expect to get data from field B<250> subfield +B. Now you have to write C which is more ISIS-like and easier to +parse. Don't be afraid, there is migration script in C to do +this task for you. + +=head2 Templates + +Templateing engine has changed. WebPAC doesn't use C anymore, +but Template Toolkit. TT proved to be workhorse for many tasks +and limitations of C forced me to move from it. + +For you, the user, that will result in changes to all templates. I'm sorry +about this, but it had to be done. + +=head2 Order of substitution + +This was never really documented, so here it is now: + +=over 5 + +=item fields + +substitution of fields like C into values + +=item lookups + +next, lookups are performed (C) + +=item format + +then formats (defined by C and C) are +applied. If formats have lookups, they will be performed again. + +=cut