From 16cc943d48369add42ebb92181dfeb6373694c2f Mon Sep 17 00:00:00 2001 From: Eric van der Vlist Date: Fri, 13 Apr 2012 11:16:40 +0200 Subject: [PATCH] Refactoring before supporting CSS --- .../pipelines/actions/archive-resource.xpl | 117 +++--------------- archiver/pipelines/actions/archive-set.xpl | 6 +- .../pipelines/actions/mediatypes/README.txt | 13 ++ .../pipelines/actions/mediatypes/html.xpl | 111 +++++++++++++++++ 4 files changed, 144 insertions(+), 103 deletions(-) create mode 100644 archiver/pipelines/actions/mediatypes/README.txt create mode 100644 archiver/pipelines/actions/mediatypes/html.xpl diff --git a/archiver/pipelines/actions/archive-resource.xpl b/archiver/pipelines/actions/archive-resource.xpl index 95b57c8..0e33390 100644 --- a/archiver/pipelines/actions/archive-resource.xpl +++ b/archiver/pipelines/actions/archive-resource.xpl @@ -24,8 +24,7 @@ - + @@ -49,109 +48,33 @@ - + - - - - - session - - - - - - - + - + - + oxf:/actions/mediatypes/ + + .xpl - html - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -174,8 +97,7 @@ - + @@ -213,8 +135,7 @@ for $as in /archive-set - + queue.xml @@ -266,8 +187,7 @@ for $a in /queue/action where $a/@uuid = $(uuid) return - + @@ -301,8 +221,7 @@ for $as in /archive-set - + queue.xml diff --git a/archiver/pipelines/actions/archive-set.xpl b/archiver/pipelines/actions/archive-set.xpl index a705075..9515c52 100644 --- a/archiver/pipelines/actions/archive-set.xpl +++ b/archiver/pipelines/actions/archive-set.xpl @@ -40,8 +40,7 @@ - + - + diff --git a/archiver/pipelines/actions/mediatypes/README.txt b/archiver/pipelines/actions/mediatypes/README.txt new file mode 100644 index 0000000..4108dfa --- /dev/null +++ b/archiver/pipelines/actions/mediatypes/README.txt @@ -0,0 +1,13 @@ +Pipelines in this directory are called by the archive-resource pipeline. + +Their name is the name of the media subtype. + +Inputs: + + * archive: the archive + +Outputs: + + * rewritten: the rewritten version of the document + * links: the list of rewritten links + diff --git a/archiver/pipelines/actions/mediatypes/html.xpl b/archiver/pipelines/actions/mediatypes/html.xpl new file mode 100644 index 0000000..f81e2d6 --- /dev/null +++ b/archiver/pipelines/actions/mediatypes/html.xpl @@ -0,0 +1,111 @@ + + + + + + + + + + + + session + + + + + + + + + + + + + + html + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +