Move serials interfaces closer together
authorDan Wells <dbw2@calvin.edu>
Fri, 8 Mar 2013 22:55:52 +0000 (17:55 -0500)
committerDan Wells <dbw2@calvin.edu>
Mon, 11 Mar 2013 15:08:58 +0000 (11:08 -0400)
commit51c7c637101212bed4db11baf18b9c554dfc1a24
tree74438fd8fa5b1cbcce75cded403f961af2bf7381
parentcd28d0a15d63626e09e1577b1cc9db239bb0ffa8
Move serials interfaces closer together

Back in (I believe) 2.2, we brought the dijit issuance editor into the
serial control interface with two goals: having less code in more places,
and easing the transition to an eventual unified interface which would
likely be more widget-based.

That experiment was well received, so this commit takes things a large
step further in that direction.  Basically, we are embedding the
alternate subscription editing interface into the serial control
scaffolding, which ultimately amounts to giving you some of the
benefits of both.  You get the more modern and maintainable code from
the alternate interfaces, but keep the context-awareness and familiar
navigation of the non-alternate serial control.

That said, this change is not meant to be the last word in serials,
but rather a way to at least come closer together while we still
continue to learn what structures provide the best experience.

Finally, some feature additions were necessary to the alternate serials
code in order to make this change as seamless as possible.  In some
cases, the new feature only works in the embedded version, but a new
'context' variable makes that simple to adjust as we move forward.
Changes include:
  - note editors on subscriptions and distributions
  - labeled dropdown for distribution summary options
  - and legacy record entry linkages

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/templates/serial/subscription.tt2
Open-ILS/src/templates/serial/subscription/distribution.tt2
Open-ILS/src/templates/serial/subscription/issuance.tt2
Open-ILS/web/js/ui/default/serial/subscription.js
Open-ILS/web/js/ui/default/serial/subscription/distribution.js [new file with mode: 0644]
Open-ILS/xul/staff_client/server/serial/manage_subs.js
Open-ILS/xul/staff_client/server/serial/ssub_editor.xul