Dsc 305

This request completes the first part of the dsc-305:
- provides a regenerate access copy button on show work page (according to biz rules) which allow regeneration of jp2 and thumnail for that work.

- schedules the image copies regeneration job.

The actual execution of the image regeneration job step is yet to be done.
Hi Terence, It’s been done.



From: Terence Ingram <notifications@github.com<mailto:notifications@github.com>>
Reply-To: nla/banjo <reply@reply.github.com<mailto:reply@reply.github.com>>
Date: Thursday, 10 July 2014 5:28 pm
To: nla/banjo <banjo@noreply.github.com<mailto:banjo@noreply.github.com>>
Cc: Shuang Zhou <szhou@nla.gov.au<mailto:szhou@nla.gov.au>>
Subject: Re: [banjo] Dsc 305 (#513)


In src/banjo/controllers/WorksController.java:

> @@ -151,6 +154,21 @@ public String showWork(Model model, @PathVariable String objectId)
>              model.addAttribute("jobId", job.getId());
>          return "works/show";
>      }
> +
> +    @RequestMapping(value = "/works/{objectId:.+}/regenAC", method = RequestMethod.POST, produces = "application/text")


Shuang could you create a new controller called ReprocessController and copy this method and all the ReOCR methods from WorksController into it?

—
Reply to this email directly or view it on GitHub<https://github.com/nla/banjo/pull/513/files#r14752480>.