Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow AN import to provide source URL for non-top level section #491

Open
johnfelipe opened this issue Jun 10, 2015 · 4 comments
Open

Allow AN import to provide source URL for non-top level section #491

johnfelipe opened this issue Jun 10, 2015 · 4 comments

Comments

@johnfelipe
Copy link

<preface><link  href="http://www.concejodemedellin.gov.co/concejo/concejo/../M21../../m21_gallery/21145.pdf" /> </preface>

Dont show it in each ACTA

@johnfelipe johnfelipe changed the title Url lin dont work Url link dont work Jun 10, 2015
@johnfelipe johnfelipe changed the title Url link dont work Preface Url link dont work Jun 10, 2015
@dracos
Copy link
Member

dracos commented Jun 10, 2015

The preface source URL currently attaches itself to the top level section of an XML document, not the descendant ones. So in your #490 XML case your "2013" section will get the last document's source URL. This is because your top two levels of section in your XML are the year and month. Possible solutions:

  • Add a new argument to the importer command that says which level of section you wish to attach the source URL;
  • Attach the source URL to all levels of sections;
  • Don't have your year/month sections in your XML, use docDate and write your own date-based views;
  • Add a new ability to the importer to spot a new element that can contain a source URL for a lower level section.

@dracos dracos changed the title Preface Url link dont work Allow AN import to provide source URL for non-top level section Jun 10, 2015
@johnfelipe
Copy link
Author

Attach the source URL to all levels of sections, its better for me now, plase share me a demo or example xml code

@dracos
Copy link
Member

dracos commented Jun 10, 2015

The current code does not do any of those solutions, I'm afraid, code changes would have to be made for each of them. If you can't work out how to change the importer, perhaps you could write a separate script that after the import goes through and adds the source URL to the relevant sections.

@johnfelipe
Copy link
Author

That sections:

<debateSection>
    <heading>2013</heading>
    <debateSection>
        <heading>Marzo</heading>
        <debateSection>
            <heading>ACTA 215</heading>
        </debateSection>
    </debateSection>
</debateSection>

with source URL added as would be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants