Splitted personal data paragraph into own question

<% @title = "Request Guide" %>

<%= render :partial => 'sidebar' %>

Request guide

This section tells you how to make a request for EU documents. We answer some Frequently Asked Questions and offer you some tips on how to make effective requests which will get you the information you need.

Making Requests

Finding EU bodies

Which languages?

Effective request tips

Responses & Appeals

Request Moderation

Making Requests

1. Do I have the right to make a request?

EU citizens and residents have the right, protected by law, to ask for EU bodies for documents and to receive answers. Non-citizens and non-residents can also ask for documents but cannot appeal to the courts. Everyone has a right of appeal initial refusals and also to appeal to the EU Ombudsman.

NGOs, businesses and other “legal persons” have the same right to ask for documents and appeal to the Ombudsman, but they must   have a registered office in an EU Member State in order to appeal to the Courts.

2. What can I ask for?

The right to access EU documents is guaranteed by the Treaty on the Functioning of the European Union (Article 15) and by the Charter of Fundamental Rights of the European Union (Article 42). These provisions form the basis of Regulation 1049/2001 regarding access to Parliament, Council and Commission documents.

When you formulate your request think what kind of documents will contain the information you are looking for, because public officials in the EU are technically not obliged to create a new document in response to a request.

The exception to this is environmental matters where requesters have a more extensive right to information, which is not limited only to “documents”.  This is because access to environmental information is covered by an additional legal regime, the Aarhus Directive on public access to environmental information.

3. Who can I ask?

You have a right to access documents held by all EU institutions, bodies, and agencies. And they have the obligation to answer your request within 15 working days.

So the right applies to the European Commission, the European Parliament, the Council of the European Union and most other EU offices, bodies and agencies. For some EU bodies such as the European Central Bank, however, the right only applies to the administrative functions of those bodies.

<%= link_to 'Click here to see the full list', list_public_bodies_default_path %>.

4. Why should I ask the EU?

In a healthy democracy the public knows what our governments are doing.

The European Union is an integral part of the government structures in the European area. It is increasingly influential in every aspect of our daily lives and we should know what it is doing. It has been estimated that up to 50% of national laws originate from Brussels, with the figure rising to 70% when it comes to economic policies.

But at present, most people have only a vague idea about what the EU really does. There are over 500 million people in the EU area but the EU institutions receive only about 10,000 requests for documents per year. That’s just one request per 50,000 people. Of course, some information is available on websites, but it’s not enough. If the European public is going to hold the EU to account and to participate in decision-making, we need more information.

AsktheEU.org is designed to help members of the public find out more about what the EU is doing and to get access to information of use to you so that you can use it to engage in public debates and contribute to better decisions being taken at the EU level.

Finding EU Bodies

5. What if I don’t know which body to ask?

If you have a question but are not sure which public body might hold the information you want, try the following:

Browse or search AsktheEU.org looking for similar requests to yours.

Read the descriptions of each public body to see what they do.

When you have found the body you think might have the information you want, use the "home page" link to check its website.

Don't worry excessively about getting the right body. If you get it wrong, they should advise you who to ask, or forward the request on to the correct body.

If you are still not sure, please <a href="<%= help_contact_url %>">contact us for help.

Languages

6. Which languages can I use?

You have a right to ask in any of the 23 official and working languages of the EU: Bulgarian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hungarian, Irish, Italian, Latvian, Lithuanian, Maltese, Polish, Portuguese, Romanian, Slovak, Slovene, Spanish and Swedish.

The EU says <q>Due to time and budgetary constraints, relatively few working documents are translated into all languages. The European Commission employs English, French and German in general as procedural languages, whereas the European Parliament provides translation into different languages according to the needs of its Members.</q>

With AsktheEU.org we provide support (so far) in four of the most widely spoken languages: English, French, German, and Spanish. If you want to help be a volunteer translator for expanding this list and for translating answers into other languages, write to us at team@asktheeu.org.

Tips for Requests

7. What makes a good request?

Please put in your request only what is needed so that someone can easily identify the documents which contain the information you are asking for.

Short, succinct messages make it easier for EU public officials to identify the information you are requesting, which means you will get a reply more quickly.

A well-formulated request also gives public officials fewer reasons to reject your request on the grounds that it is too vague or not clear. But don’t worry about making it perfect: the EU body should come back to you for a clarification if they have not understood your request.

Please do not include any of the following:

Arguments about a particular issue or cause;

Statements that could defame or insult others;

Offensive language.

If you do, we may have to remove your request. We will let you know if we have done this and are always ready to discuss case by case.

8. Can I ask for information about myself?

You should not use AsktheEU.org to get access to personal information about yourself. If you are asking for information about yourself, use the EU’s Data Protection rules. Click here for more information.

9. Why does the request form have the line about asking for documents?

At the EU level there is a right of access to documents rather than information. In practice there is little difference, but we include the phrase about documents as otherwise the request might be processed under the Code of Good Administrative Procedure which does refer to the “right to information” but which does not have the same timelines nor appeals possibilities.

10. Can I send the same request to several bodies?

You can ask for the same document from more than one body, although its best to start with the body most likely to hold the information you need.

If that body does not hold all the relevant documents, they should refer you to the relevant bodies.

There is currently no automated system for sending the request to the other authorities, you need to copy and paste it by hand.

Answers & Appeals

11. Will I have to pay?

Submitting your request for documents is always free of charge.

Receiving information in electronic format is free of charge.

EU bodies can charge you for “the cost of producing and sending copies” (Regulation 1049/2001). But these must not exceed the actual cost of photocopying and postage. You will always be notified before being charged so do not worry about this now and go ahead with your request!

12. When will I get an answer?

EU bodies should answer your requests within 15 working days (about three weeks or a little more if there are public holidays during that time).

You might also get an acknowledgement before you get a final answer.

In exceptional cases, for example when you ask for a large number documents, an extension of 15 further working days can be applied to your request. The AsktheEU.org website will keep a track of this.

13. What happens if I don’t get an answer?

AsktheEU.org will email you if you don't get a timely response. EU authorities have 15 working days to answer your request. AsktheEU.org will automatically send the public authority a message after 12 working days have passed in order to remind them of the deadlines for answering. If there is no response to this, you should submit an appeal. In the EU these are called “confirmatory applications” and can be easily done via email.

14. What if I get an answer but I am not happy with it?

There are a number of ways in which you can be disappointed with the answer to an information request:

You only get part of the information you asked for (but no formal refusal) or the information you are given is irrelevant or does not quite correspond to your question - this is called an “incomplete answer”;

You are told that the information “is not held” by that government department;

You are granted partial access but some information is withheld on the basis of exceptions from the EU’s Regulation 1049/2001 (see also Point 14 below);

You are refused access to all the information or documents that you asked for (see also Point 14 below);

You don’t get any reply at all (“administrative silence” or a “mute refusal”).

You will be given the chance to “classify” your answer according to a list of categories. If you are not sure how to do this, we will help you.

If you think that the answer was wrong in some way, you can file an appeal, which is formally called a “confirmatory application”. See Point 15 for more on this.

If you think your complaint was badly handled, or you were treated rudely, you can file a complaint with the European Ombudsman.

15. What are the possible reasons for refusing to answer my request?

The EU access to documents rules, as set out in Regulation 1049/2001, include a number of reasons for not giving out information.

Known as “exceptions”, these reasons are to protect the right to privacy and to protect certain public interests. The list includes:

public security,

defence and military matters,

international relations,

the financial, monetary or economic policy of the Community or a Member State;

commercial interests of a natural or legal person, including intellectual property,

court proceedings and legal advice,

the purpose of inspections, investigations and audits

the decision-making process

These exceptions have to be applied narrowly and should only be applied if there is a foreseeable risk of harm to one of those protected interests. In many cases the EU must consider the potential importance of the public knowing the information. This is also referred to as the “public interest” in that information.

If you are refused information, Access Info Europe is ready to advise you on whether you might have a good case for presenting an appeal.

16. Appeals: Confirmatory Applications

If you are unhappy with the response to a request, you can appeal to the next level in the administrative decision-making process. This is called a “confirmatory application” and essentially the EU is asked to reconsider its decision not to give you the information.

It is worth trying the appeal process as it often results in the release of more information – sometimes even all of it.

To submit a confirmatory application, you just need to reply to the person who denied you the information, stating clearly that you are submitting a confirmatory application. The institution should do the rest.

When you go to make the appeal, AsktheEU.org will give you more detailed guidance, and Access Info Europe can help you formulate your confirmatory application.

17. Can I re-use the information I get?

In general, documents created by EU bodies are “public” in the sense that they were created for us, with European tax payer’s money. So you should be free to use the documents which you receive and the information they contain.

In case of doubt, especially if you plan to use the material for commercial purposes, ask the EU body which released the information.

Request Moderation

18. How are requests and comments moderated?

We encourage the public to make requests and we make it possible for you and others to comment on your requests.

Our team of staff and volunteers will check the content regularly and we reserve the right to remove inappropriate statements, such as those which are abusive or potentially defamatory.

You can also report inappropriate material if you see it.

19. Can I keep my request confidential until I release my story/article?

AsktheEU.org is designed for public requests. All responses that we receive are automatically published on the website for anyone to read.

If you are a journalist, NGO, or other person who wants to keep the answer private until you have written your story or for other reasons, you should send your access to documents request directly to the EU body, not via this website.

20. I have the response to a request filed directly with an EU body; can I share it here?

Sorry, but no. AsktheEU.org is an archive of requests made through the site, and does not try to be an archive of all FOI requests. We do not support uploading other requests because we cannot verify that the responses actually came from an EU body.

If you want to make the response public, you would need to make the same request again via AskTheEU.org.

<% @title = "Request Guide" %>

<%= render :partial => 'sidebar' %>

Request guide

This section tells you how to make a request for EU documents. We answer some Frequently Asked Questions and offer you some tips on how to make effective requests which will get you the information you need.

Making Requests

Finding EU bodies

Which languages?

Effective request tips

Responses & Appeals

Request Moderation

Making Requests

1. Do I have the right to make a request?

EU citizens and residents have the right, protected by law, to ask for EU bodies for documents and to receive answers. Non-citizens and non-residents can also ask for documents but cannot appeal to the courts. Everyone has a right of appeal initial refusals and also to appeal to the EU Ombudsman.

NGOs, businesses and other “legal persons” have the same right to ask for documents and appeal to the Ombudsman, but they must   have a registered office in an EU Member State in order to appeal to the Courts.

2. What can I ask for?

The right to access EU documents is guaranteed by the Treaty on the Functioning of the European Union (Article 15) and by the Charter of Fundamental Rights of the European Union (Article 42). These provisions form the basis of Regulation 1049/2001 regarding access to Parliament, Council and Commission documents.

When you formulate your request think what kind of documents will contain the information you are looking for, because public officials in the EU are technically not obliged to create a new document in response to a request.

The exception to this is environmental matters where requesters have a more extensive right to information, which is not limited only to “documents”.  This is because access to environmental information is covered by an additional legal regime, the Aarhus Directive on public access to environmental information.

3. Who can I ask?

You have a right to access documents held by all EU institutions, bodies, and agencies. And they have the obligation to answer your request within 15 working days.

So the right applies to the European Commission, the European Parliament, the Council of the European Union and most other EU offices, bodies and agencies. For some EU bodies such as the European Central Bank, however, the right only applies to the administrative functions of those bodies.

<%= link_to 'Click here to see the full list', list_public_bodies_default_path %>.

4. Why should I ask the EU?

In a healthy democracy the public knows what our governments are doing.

The European Union is an integral part of the government structures in the European area. It is increasingly influential in every aspect of our daily lives and we should know what it is doing. It has been estimated that up to 50% of national laws originate from Brussels, with the figure rising to 70% when it comes to economic policies.

But at present, most people have only a vague idea about what the EU really does. There are over 500 million people in the EU area but the EU institutions receive only about 10,000 requests for documents per year. That’s just one request per 50,000 people. Of course, some information is available on websites, but it’s not enough. If the European public is going to hold the EU to account and to participate in decision-making, we need more information.

AsktheEU.org is designed to help members of the public find out more about what the EU is doing and to get access to information of use to you so that you can use it to engage in public debates and contribute to better decisions being taken at the EU level.

Finding EU Bodies

5. What if I don’t know which body to ask?

If you have a question but are not sure which public body might hold the information you want, try the following:

Browse or search AsktheEU.org looking for similar requests to yours.

Read the descriptions of each public body to see what they do.

When you have found the body you think might have the information you want, use the "home page" link to check its website.

Don't worry excessively about getting the right body. If you get it wrong, they should advise you who to ask, or forward the request on to the correct body.

If you are still not sure, please <a href="<%= help_contact_url %>">contact us for help.

Languages

6. Which languages can I use?

You have a right to ask in any of the 23 official and working languages of the EU: Bulgarian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hungarian, Irish, Italian, Latvian, Lithuanian, Maltese, Polish, Portuguese, Romanian, Slovak, Slovene, Spanish and Swedish.

The EU says <q>Due to time and budgetary constraints, relatively few working documents are translated into all languages. The European Commission employs English, French and German in general as procedural languages, whereas the European Parliament provides translation into different languages according to the needs of its Members.</q>

With AsktheEU.org we provide support (so far) in four of the most widely spoken languages: English, French, German, and Spanish. If you want to help be a volunteer translator for expanding this list and for translating answers into other languages, write to us at team@asktheeu.org.

Tips for Requests

7. What makes a good request?

Please put in your request only what is needed so that someone can easily identify the documents which contain the information you are asking for.

Short, succinct messages make it easier for EU public officials to identify the information you are requesting, which means you will get a reply more quickly.

A well-formulated request also gives public officials fewer reasons to reject your request on the grounds that it is too vague or not clear. But don’t worry about making it perfect: the EU body should come back to you for a clarification if they have not understood your request.

Please do not include any of the following:

Arguments about a particular issue or cause;

Statements that could defame or insult others;

Offensive language.

If you do, we may have to remove your request. We will let you know if we have done this and are always ready to discuss case by case.

Note re personal information about yourself: You should not use AsktheEU.org to get access to personal information about yourself. If you are asking for information about yourself, use the EU’s Data Protection rules.

8. Why does the request form have the line about asking for documents?

At the EU level there is a right of access to documents rather than information. In practice there is little difference, but we include the phrase about documents as otherwise the request might be processed under the Code of Good Administrative Procedure which does refer to the “right to information” but which does not have the same timelines nor appeals possibilities.

9. Can I send the same request to several bodies?

You can ask for the same document from more than one body, although its best to start with the body most likely to hold the information you need.

If that body does not hold all the relevant documents, they should refer you to the relevant bodies.

There is currently no automated system for sending the request to the other authorities, you need to copy and paste it by hand.

Answers & Appeals

10. Will I have to pay?

Submitting your request for documents is always free of charge.

Receiving information in electronic format is free of charge.

EU bodies can charge you for “the cost of producing and sending copies” (Regulation 1049/2001). But these must not exceed the actual cost of photocopying and postage. You will always be notified before being charged so do not worry about this now and go ahead with your request!

11. When will I get an answer?

EU bodies should answer your requests within 15 working days (about three weeks or a little more if there are public holidays during that time).

You might also get an acknowledgement before you get a final answer.

In exceptional cases, for example when you ask for a large number documents, an extension of 15 further working days can be applied to your request. The AsktheEU.org website will keep a track of this.

12. What happens if I don’t get an answer?

AsktheEU.org will email you if you don't get a timely response. EU authorities have 15 working days to answer your request. AsktheEU.org will automatically send the public authority a message after 12 working days have passed in order to remind them of the deadlines for answering. If there is no response to this, you should submit an appeal. In the EU these are called “confirmatory applications” and can be easily done via email.

13. What if I get an answer but I am not happy with it?

There are a number of ways in which you can be disappointed with the answer to an information request:

You only get part of the information you asked for (but no formal refusal) or the information you are given is irrelevant or does not quite correspond to your question - this is called an “incomplete answer”;

You are told that the information “is not held” by that government department;

You are granted partial access but some information is withheld on the basis of exceptions from the EU’s Regulation 1049/2001 (see also Point 14 below);

You are refused access to all the information or documents that you asked for (see also Point 14 below);

You don’t get any reply at all (“administrative silence” or a “mute refusal”).

You will be given the chance to “classify” your answer according to a list of categories. If you are not sure how to do this, we will help you.

If you think that the answer was wrong in some way, you can file an appeal, which is formally called a “confirmatory application”. See Point 15 for more on this.

If you think your complaint was badly handled, or you were treated rudely, you can file a complaint with the European Ombudsman.

14. What are the possible reasons for refusing to answer my request?

The EU access to documents rules, as set out in Regulation 1049/2001, include a number of reasons for not giving out information.

Known as “exceptions”, these reasons are to protect the right to privacy and to protect certain public interests. The list includes:

public security,

defence and military matters,

international relations,

the financial, monetary or economic policy of the Community or a Member State;

commercial interests of a natural or legal person, including intellectual property,

court proceedings and legal advice,

the purpose of inspections, investigations and audits

the decision-making process

These exceptions have to be applied narrowly and should only be applied if there is a foreseeable risk of harm to one of those protected interests. In many cases the EU must consider the potential importance of the public knowing the information. This is also referred to as the “public interest” in that information.

If you are refused information, Access Info Europe is ready to advise you on whether you might have a good case for presenting an appeal.

15. Appeals: Confirmatory Applications

If you are unhappy with the response to a request, you can appeal to the next level in the administrative decision-making process. This is called a “confirmatory application” and essentially the EU is asked to reconsider its decision not to give you the information.

It is worth trying the appeal process as it often results in the release of more information – sometimes even all of it.

To submit a confirmatory application, you just need to reply to the person who denied you the information, stating clearly that you are submitting a confirmatory application. The institution should do the rest.

When you go to make the appeal, AsktheEU.org will give you more detailed guidance, and Access Info Europe can help you formulate your confirmatory application.

16. Can I re-use the information I get?

In general, documents created by EU bodies are “public” in the sense that they were created for us, with European tax payer’s money. So you should be free to use the documents which you receive and the information they contain.

In case of doubt, especially if you plan to use the material for commercial purposes, ask the EU body which released the information.

Request Moderation

17. How are requests and comments moderated?

We encourage the public to make requests and we make it possible for you and others to comment on your requests.

Our team of staff and volunteers will check the content regularly and we reserve the right to remove inappropriate statements, such as those which are abusive or potentially defamatory.

You can also report inappropriate material if you see it.

18. Can I keep my request confidential until I release my story/article?

AsktheEU.org is designed for public requests. All responses that we receive are automatically published on the website for anyone to read.

If you are a journalist, NGO, or other person who wants to keep the answer private until you have written your story or for other reasons, you should send your access to documents request directly to the EU body, not via this website.

19. I have the response to a request filed directly with an EU body; can I share it here?

Sorry, but no. AsktheEU.org is an archive of requests made through the site, and does not try to be an archive of all FOI requests. We do not support uploading other requests because we cannot verify that the responses actually came from an EU body.

If you want to make the response public, you would need to make the same request again via AskTheEU.org.


Add the word law

Add the word law

<% @title = "Making requests" %>

<%= render :partial => 'sidebar' %>

<%= @title %> #

I'm not sure which authority to make my request to, how can I find out? #

It can be hard to untangle government's complicated structured, and work out
who knows the information that you want. Here are a few tips:

Browse or search <%= site_name %> looking for similar requests to yours.

When you've found an authority you think might have the information, use
the "home page" link on the right hand side of their page to check what they do
on their website.

Contact the authority by phone or email to ask if they hold the kind of
information you're after.

Don't worry excessively about getting the right authority. If you get it
wrong, they will transfer your request to the correct authority for you.

If you've got a thorny case, please contact us for help.

Who can make a request? #

Any person, of any nationality, anywhere in the world, however young or old can make a request under Federal Australian Freedom of Information (FOI) law.

The Freedom of Information Act simply says that "every person has a legally enforceable right to obtain access in accordance with this Act". A "person" can also be a body corporate, such as a company.

See the Attorney General's department FOI Guidelines – Fundamental principles and procedures - section 3.2 for more.

You're missing the public authority that I want to request from! #

Please contact us with the name of the public authority and,
if you can find it, their contact email address for Freedom of Information requests.

If you'd like to help add a whole category (new state or local government region etc.) of public authority to the site, we'd love
to hear from you too.

Why do you include some authorities that aren't formally subject to FOI?#

<%= site_name %> lets you make requests for information to a range of
organisations:

 Those formally subject to the FOI Act

 Those which voluntarily comply with the FOI Act

 Those which aren't subject to the Act but we think should be, on grounds
  such as them having significant public responsibilities.

In the last case, we're using the site to lobby for expansion of the
scope of the FOI Act. Even if an organisation is not legally obliged to respond
to an FOI request, they can still do so voluntarily.

Why must I keep my request focused?#

Please put in your request only what is needed so that someone can
easily identify what information you are asking for. Please do
not include any of the following:

arguments about your cause

statements that could defame or insult others

If you do, we may have to remove your request to avoid problems with
libel law, which is a pain for both you and us. Short, succinct messages
make it easier for authorities to be clear what information you are
requesting, which means you will get a reply more quickly.

If you want information to support an argument or campaign, Freedom of
Information is a powerful tool. Although you may not use this site to
run your campaign, we encourage you to use it to get the information you
need. We also encourage to run your campaign elsewhere - one effective
and very easy way is to <%= link_to 'start your own blog',
"http://wordpress.com/"%>. You are welcome to link to your campaign
from this site in an annotation to your request (you can make
annotations after submitting the request).

Does it cost me anything to make a request?#

Making an FOI request is nearly always free.

Authorities often include unnecessary, scary, boilerplate in
acknowledgement messages saying they "may" charge a fee. Ignore such notices.
They hardly ever will actually charge a fee.  If they do, they can only charge you if
you have specifically agreed in advance to pay.  More
    details from the Information Commissioner.

The latest version of the FOI Act (s 3(4)) makes it clear that

… functions and powers given by this Act are to be performed and exercised, as far as possible, to facilitate and promote public access to information, promptly and at the lowest reasonable cost.

Sometimes an authority will refuse your request, saying that the cost
of handling it exceeds a level that would detriment their day to day work. At this point you can refine your
request. e.g. it would be much cheaper for an authority to tell you the amount
spent on marshmallows in the past year than in the past ten years.

How quickly will I get a response? #

By law, public authorities must respond promptly to
requests.

Even if they are not prompt, in nearly all cases they must respond within
20 working days. If you had to clarify your request,
or one or two other cases, then they may have more time
(full details).

<%= site_name %> will email you if you don't get a timely response.  You can
then send the public authority a message to remind them, and tell them if they
are breaking the law.

What if I never get a response?#

There are several things you can do if you never get a response.

Sometimes there has been a genuine problem and the authority never
    received the request. It is worth telephoning the authority and politely
    checking that they received the request. It was sent to them by email.

If they have not received it, the problem is most likely due to
    "spam filters". Refer the authority to the measures in the answer
    'I can see a request on <%= site_name %>, but we never got it by email!'
    in the FOI officers section of this help.

If you're still having no luck, then you can ask for an internal review,
    and then complain to the Information Commissioner about the authority.
    Read our page 'Unhappy about the response you got?'.

What if I'm not satisfied with the response? #

If you didn't get the information you asked for, or you didn't get it in time,
then read our page 'Unhappy about the response you got?'.

It says I can't re-use the information I got!#

Authorities often add legal boilerplate about the
Commonwealth Copyright Adminstration, which at first glance implies you may not
be able do anything with the information. This is likely to be incorrect as the latest Statement of IP Principles for Australian Government Agencies explictly encourages reuse.

Consistent with the need for free and open re-use and adaptation, public sector
information should be licensed by agencies under the Creative Commons BY standard
as the default.

You can, of course, write articles about the information or summarise it, or
quote parts of it. We also think you should feel free to republish the
information in full, just as we do, even though in theory you might not be
allowed to do so.  See our policy on copyright.

Can you tell me more of the nitty gritty about the process of making requests? #

Have a look at the
Freedom of Information guidelines
pages on the Information Commissioner's website.

Can I request information about myself? #

No. Requests made using <%= site_name %> are public, made under the Freedom of
Information Act, and cannot help you find information about a private
individual.

If you see that somebody has included personal information, perhaps
unwittingly, in a request, please contact us
immediately so we can remove it.

I'd like to keep my request secret! (At least until I publish my story) #

<%= site_name %> is currently only designed for public requests. All
responses that we receive are automatically published on the website for anyone
to read.

You should contact the public authority directly if you would like to
make a request in private.  If you're interested in buying a system which helps
you manage FOI requests in secret, then contact us.

Can I make the same to request to lots of authorities, e.g. all departments? #

We ask you to first send a test version of your request to a few
authorities. Their responses will help you improve the wording of your request,
so that you get the best information when you send the request to all of
the authorities. There is currently no automated system for sending the request
to the other authorities, you must copy and paste it by hand.

I made a request off the site, how do I upload it to the archive?#

<%= site_name %> is an archive of requests made through the site,
and does not try to be an archive of all FOI requests. We'll never support uploading
other requests. For one thing, we wouldn't be able to verify that other
responses actually came from the authority. If this really matters to you,
you can always make the same request again via <%= site_name %>.

How do you moderate request annotations? #

Annotations on <%= site_name %> are to help
people get the information they want, or to give them pointers to places they
can go to help them act on it. We reserve the right to remove anything else.

Endless, political discussions are not allowed.
Post a link to a suitable forum or campaign site elsewhere.

Next, read about your privacy -->

<% @title = "Making requests" %>

<%= render :partial => 'sidebar' %>

<%= @title %> #

I'm not sure which authority to make my request to, how can I find out? #

It can be hard to untangle government's complicated structured, and work out
who knows the information that you want. Here are a few tips:

Browse or search <%= site_name %> looking for similar requests to yours.

When you've found an authority you think might have the information, use
the "home page" link on the right hand side of their page to check what they do
on their website.

Contact the authority by phone or email to ask if they hold the kind of
information you're after.

Don't worry excessively about getting the right authority. If you get it
wrong, they will transfer your request to the correct authority for you.

If you've got a thorny case, please contact us for help.

Who can make a request? #

Any person, of any nationality, anywhere in the world, however young or old can make a request under Federal Australian Freedom of Information (FOI).

The Freedom of Information Act simply says that "every person has a legally enforceable right to obtain access in accordance with this Act". A "person" can also be a body corporate, such as a company.

See the Attorney General's department FOI Guidelines – Fundamental principles and procedures - section 3.2 for more.

You're missing the public authority that I want to request from! #

Please contact us with the name of the public authority and,
if you can find it, their contact email address for Freedom of Information requests.

If you'd like to help add a whole category (new state or local government region etc.) of public authority to the site, we'd love
to hear from you too.

Why do you include some authorities that aren't formally subject to FOI?#

<%= site_name %> lets you make requests for information to a range of
organisations:

 Those formally subject to the FOI Act

 Those which voluntarily comply with the FOI Act

 Those which aren't subject to the Act but we think should be, on grounds
  such as them having significant public responsibilities.

In the last case, we're using the site to lobby for expansion of the
scope of the FOI Act. Even if an organisation is not legally obliged to respond
to an FOI request, they can still do so voluntarily.

Why must I keep my request focused?#

Please put in your request only what is needed so that someone can
easily identify what information you are asking for. Please do
not include any of the following:

arguments about your cause

statements that could defame or insult others

If you do, we may have to remove your request to avoid problems with
libel law, which is a pain for both you and us. Short, succinct messages
make it easier for authorities to be clear what information you are
requesting, which means you will get a reply more quickly.

If you want information to support an argument or campaign, Freedom of
Information is a powerful tool. Although you may not use this site to
run your campaign, we encourage you to use it to get the information you
need. We also encourage to run your campaign elsewhere - one effective
and very easy way is to <%= link_to 'start your own blog',
"http://wordpress.com/"%>. You are welcome to link to your campaign
from this site in an annotation to your request (you can make
annotations after submitting the request).

Does it cost me anything to make a request?#

Making an FOI request is nearly always free.

Authorities often include unnecessary, scary, boilerplate in
acknowledgement messages saying they "may" charge a fee. Ignore such notices.
They hardly ever will actually charge a fee.  If they do, they can only charge you if
you have specifically agreed in advance to pay.  More
    details from the Information Commissioner.

The latest version of the FOI Act (s 3(4)) makes it clear that

… functions and powers given by this Act are to be performed and exercised, as far as possible, to facilitate and promote public access to information, promptly and at the lowest reasonable cost.

Sometimes an authority will refuse your request, saying that the cost
of handling it exceeds a level that would detriment their day to day work. At this point you can refine your
request. e.g. it would be much cheaper for an authority to tell you the amount
spent on marshmallows in the past year than in the past ten years.

How quickly will I get a response? #

By law, public authorities must respond promptly to
requests.

Even if they are not prompt, in nearly all cases they must respond within
20 working days. If you had to clarify your request,
or one or two other cases, then they may have more time
(full details).

<%= site_name %> will email you if you don't get a timely response.  You can
then send the public authority a message to remind them, and tell them if they
are breaking the law.

What if I never get a response?#

There are several things you can do if you never get a response.

Sometimes there has been a genuine problem and the authority never
    received the request. It is worth telephoning the authority and politely
    checking that they received the request. It was sent to them by email.

If they have not received it, the problem is most likely due to
    "spam filters". Refer the authority to the measures in the answer
    'I can see a request on <%= site_name %>, but we never got it by email!'
    in the FOI officers section of this help.

If you're still having no luck, then you can ask for an internal review,
    and then complain to the Information Commissioner about the authority.
    Read our page 'Unhappy about the response you got?'.

What if I'm not satisfied with the response? #

If you didn't get the information you asked for, or you didn't get it in time,
then read our page 'Unhappy about the response you got?'.

It says I can't re-use the information I got!#

Authorities often add legal boilerplate about the
Commonwealth Copyright Adminstration, which at first glance implies you may not
be able do anything with the information. This is likely to be incorrect as the latest Statement of IP Principles for Australian Government Agencies explictly encourages reuse.

Consistent with the need for free and open re-use and adaptation, public sector
information should be licensed by agencies under the Creative Commons BY standard
as the default.

You can, of course, write articles about the information or summarise it, or
quote parts of it. We also think you should feel free to republish the
information in full, just as we do, even though in theory you might not be
allowed to do so.  See our policy on copyright.

Can you tell me more of the nitty gritty about the process of making requests? #

Have a look at the
Freedom of Information guidelines
pages on the Information Commissioner's website.

Can I request information about myself? #

No. Requests made using <%= site_name %> are public, made under the Freedom of
Information Act, and cannot help you find information about a private
individual.

If you see that somebody has included personal information, perhaps
unwittingly, in a request, please contact us
immediately so we can remove it.

I'd like to keep my request secret! (At least until I publish my story) #

<%= site_name %> is currently only designed for public requests. All
responses that we receive are automatically published on the website for anyone
to read.

You should contact the public authority directly if you would like to
make a request in private.  If you're interested in buying a system which helps
you manage FOI requests in secret, then contact us.

Can I make the same to request to lots of authorities, e.g. all departments? #

We ask you to first send a test version of your request to a few
authorities. Their responses will help you improve the wording of your request,
so that you get the best information when you send the request to all of
the authorities. There is currently no automated system for sending the request
to the other authorities, you must copy and paste it by hand.

I made a request off the site, how do I upload it to the archive?#

<%= site_name %> is an archive of requests made through the site,
and does not try to be an archive of all FOI requests. We'll never support uploading
other requests. For one thing, we wouldn't be able to verify that other
responses actually came from the authority. If this really matters to you,
you can always make the same request again via <%= site_name %>.

How do you moderate request annotations? #

Annotations on <%= site_name %> are to help
people get the information they want, or to give them pointers to places they
can go to help them act on it. We reserve the right to remove anything else.

Endless, political discussions are not allowed.
Post a link to a suitable forum or campaign site elsewhere.

Next, read about your privacy -->


Move "My requests" to top right, where it becomes "My profile".  Partially addresses issue #44

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="<%= I18n.locale %>">

        <% if @profile_photo_javascript %>

            <link rel="stylesheet" href="/stylesheets/jquery.Jcrop.css" type="text/css" >
        <% end %>

        <title>
        <% if @title %>
            <%=@title%> - <%= site_name %>
        <% else %>
            <%= site_name %> - <%= _('Make and browse Freedom of Information (FOI) requests') %>
        <% end %>
        </title>

        <link rel="shortcut icon" href="/favicon.ico">

	<%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet" %>
	<%= stylesheet_link_tag 'fonts', :rel => "stylesheet" %>
	<%= stylesheet_link_tag 'theme', :rel => "stylesheet" %>

        <%= stylesheet_link_tag 'custom', :title => "Main", :rel => "stylesheet"  %>

        <% if @feed_autodetect %>
            <% for feed in @feed_autodetect %>
                <link rel="alternate" type="application/atom+xml" title="<%=h feed[:title] %>" href="<%=h feed[:url]%>">
                <% if feed[:has_json] %>
                    <link rel="alternate" type="application/json" title="JSON version of <%=h feed[:title] %>" href="<%=h feed[:url]%>.json">
                <% end %>
            <% end %>
        <% end %>
        <% if @has_json %>
            <link rel="alternate" type="application/json" title="JSON version of this page" href="<%=h main_url(request.request_uri) %>.json">
        <% end %>

        <% if @no_crawl %>
            <meta name="robots" content="noindex, nofollow">
        <% end %>

    <%= render :partial => 'general/before_head_end' %>

<% # code for popup advert for a campaign etc.
=begin

Close

    [ message goes here ]

Close

=end
%>

<%= render :partial => 'general/locale_switcher' %>

        <% if not (controller.action_name == 'signin' or controller.action_name == 'signup') %>

          <% if @user %>
              <%= _('Hello, {{username}}!', :username => h(@user.name))%>

                <% if @user %>
                    <%=link_to _("My profile"), user_url(@user) %>
                <% end %>

              <%= link_to _("Sign out"), signout_url(:r => request.request_uri) %>
          <% else %>
              <%= link_to _("Sign in or sign up"), signin_url(:r => request.request_uri) %>
          <% end %>

        <% end %>

            <% form_tag({:controller => "general", :action => "search_redirect"}, {:id => "navigation_search_form"}) do %>

                   <%= text_field_tag 'query', params[:query], { :size => 40, :id => "navigation_search_query" } %>
                   <%= image_submit_tag('search-button.png') %>

            <% end %>

        <%= link_to image_tag('logo.png'), frontpage_url, :id=>'logo' %>

                <li class="<%= 'selected' if params[:controller] == 'general' %>"><%= link_to _("Make a request"), frontpage_url %>

                <li class="<%= 'selected' if params[:controller] == 'request' %>"><%= link_to _("View requests"), request_list_successful_url %>

                <li class="<%= 'selected' if params[:controller] == 'public_body' %>"><%= link_to _("View authorities"), list_public_bodies_default %>

                <li class="<%= 'selected' if params[:controller] == 'blog' %>"><%= link_to _("Read blog"), blog_url %>

                <li class="<%= 'selected' if params[:controller] == 'help' %>"><%= link_to _("Help"), help_about_url %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

            <% end %>
            <% if flash[:error] %>

<%= flash[:error] %>

            <% end %>

            <div id="<%= controller.controller_name + "_" + controller.action_name %>" class="controller_<%= controller.controller_name %>">
            <%= yield :layout %>

        <%= link_to _("Contact {{site_name}}", :site_name => site_name), help_contact_url %>
    <%= render :partial => 'general/credits' %>

    <%= render :partial => 'general/before_body_end' %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="<%= I18n.locale %>">

        <% if @profile_photo_javascript %>

            <link rel="stylesheet" href="/stylesheets/jquery.Jcrop.css" type="text/css" >
        <% end %>

        <title>
        <% if @title %>
            <%=@title%> - <%= site_name %>
        <% else %>
            <%= site_name %> - <%= _('Make and browse Freedom of Information (FOI) requests') %>
        <% end %>
        </title>

        <link rel="shortcut icon" href="/favicon.ico">

	<%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet" %>
	<%= stylesheet_link_tag 'fonts', :rel => "stylesheet" %>
	<%= stylesheet_link_tag 'theme', :rel => "stylesheet" %>

        <%= stylesheet_link_tag 'custom', :title => "Main", :rel => "stylesheet"  %>

        <% if @feed_autodetect %>
            <% for feed in @feed_autodetect %>
                <link rel="alternate" type="application/atom+xml" title="<%=h feed[:title] %>" href="<%=h feed[:url]%>">
                <% if feed[:has_json] %>
                    <link rel="alternate" type="application/json" title="JSON version of <%=h feed[:title] %>" href="<%=h feed[:url]%>.json">
                <% end %>
            <% end %>
        <% end %>
        <% if @has_json %>
            <link rel="alternate" type="application/json" title="JSON version of this page" href="<%=h main_url(request.request_uri) %>.json">
        <% end %>

        <% if @no_crawl %>
            <meta name="robots" content="noindex, nofollow">
        <% end %>

    <%= render :partial => 'general/before_head_end' %>

<% # code for popup advert for a campaign etc.
=begin

Close

    [ message goes here ]

Close

=end
%>

<%= render :partial => 'general/locale_switcher' %>

        <% if not (controller.action_name == 'signin' or controller.action_name == 'signup') %>

          <% if @user %>
              <%= _('Hello, {{username}}!', :username => h(@user.name))%>
              <%= link_to _("Sign out"), signout_url(:r => request.request_uri) %>
          <% else %>
              <%= link_to _("Sign in or sign up"), signin_url(:r => request.request_uri) %>
          <% end %>

        <% end %>

            <% form_tag({:controller => "general", :action => "search_redirect"}, {:id => "navigation_search_form"}) do %>

                   <%= text_field_tag 'query', params[:query], { :size => 40, :id => "navigation_search_query" } %>
                   <%= image_submit_tag('search-button.png') %>

            <% end %>

        <%= link_to image_tag('logo.png'), frontpage_url, :id=>'logo' %>

                <li class="<%= 'selected' if params[:controller] == 'general' %>"><%= link_to _("Make a request"), frontpage_url %>

                <li class="<%= 'selected' if params[:controller] == 'request' %>"><%= link_to _("View requests"), request_list_successful_url %>

                <li class="<%= 'selected' if params[:controller] == 'public_body' %>"><%= link_to _("View authorities"), list_public_bodies_default %>

                <% if @user %>

<%=link_to _("My requests"), user_url(@user) %>

                <% end %>
                <li class="<%= 'selected' if params[:controller] == 'blog' %>"><%= link_to _("Read blog"), blog_url %>

                <li class="<%= 'selected' if params[:controller] == 'help' %>"><%= link_to _("Help"), help_about_url %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

            <% end %>
            <% if flash[:error] %>

<%= flash[:error] %>

            <% end %>

            <div id="<%= controller.controller_name + "_" + controller.action_name %>" class="controller_<%= controller.controller_name %>">
            <%= yield :layout %>

        <%= link_to _("Contact {{site_name}}", :site_name => site_name), help_contact_url %>
    <%= render :partial => 'general/credits' %>

    <%= render :partial => 'general/before_body_end' %>


Fixes for search product view

Fixes for search product view

* Tree symbols fixed
* "Open price" balloon not showing correctly

<% extra_content = @plugins.map(:asset_product_extras, product, product.enterprise).collect { |content| instance_eval(&content) } %>
<% extra_properties = @plugins.map(:asset_product_properties, product)%>

    <%= render :partial => 'image', :object => product %>

    <% if product.available %>
      <% if product.price && product.price > 0 %>
        <% has_discount = product.discount && product.discount > 0 %>
        <% if product.price %>
          <%=_("from") if has_discount %><%= price_span(product.price, :class => "search-product-price " + (has_discount ? 'with-discount' : '')) %>
          <% if has_discount %>
            <%=_("by")%><%= price_span(product.price_with_discount, :class => "search-product-price") %>
          <% end %>
          <% if product.unit %>
             <%= _('/') %> <%= product.unit.name %>
          <% end %>
        <% end %>

          <% if product.inputs.count > product.inputs.collect(&:is_from_solidarity_economy).count(nil) %>
            <% se_i = t_i = 0 %>
            <% product.inputs.each{ |i| t_i += 1; se_i += 1 if i.is_from_solidarity_economy } %>
            <% p = case (se_i.to_f/t_i)*100
                 when 0..24.999 then ["0", _("")];
                 when 25..49.999 then ["0", _("25%")];
                 when 50..74.999 then ["25", _("50%")];
                 when 75..99.999 then ["50", _("75%")];
                 when 100 then ["75", _("100%")];
            end %>
            <div class="search-product-percentage-from-solidarity-economy search-product-ecosol-percentage-icon-<%=p[0]%>" title="<%=_('Percentage of inputs from solidarity economy')%>">
              <%= p[1] %>

          <% end %>

          <% if product.price_described? %>
            <% title = product.inputs.map{ |i|
              '
' +
                '
' + i.product_category.name + '
' +
                price_span(i.price_per_unit*i.amount_used, :class => 'search-product-input-price') +
              '
' }.join('') %>
            <% title += product.price_details.map{ |p|
              '
' +
                '
' + p.production_cost.name + '
' +
                price_span(p.price, :class => 'search-product-input-price') +
              '
' }.join('') %>
            <%= link_to_function _("Open Price"), '', :title => title, :class => "search-product-price-details" %>
          <% end %>

      <% end %>
    <% else %>
      <%= _('Not available') %>

    <% end %>

    <%= link_to_product product, :class => 'search-result-title' %>

      <%= _('Supplier') %>  <%= link_to_homepage(product.enterprise.name, product.enterprise.identifier) %>

      <% if product.description %>
        <% desc_stripped = strip_tags(product.description) %>
        <%= _('Description') %>  <%= excerpt(desc_stripped, desc_stripped.first(3), 300) %>
      <% end %>

      <% if product.enterprise.region %>
        <%= _('City') %>

<%= city_with_state(product.enterprise.region) %>
      <% end %>

      <% if product.product_qualifiers.count > 0 %>
        <%= _('Qualifiers') %>
        <% product.product_qualifiers.each do |pq| %>
          <% if pq.qualifier %>
            <%= pq.qualifier.name + (pq.certifier.nil? ?  _(";") : '') %>
          <% end %>
          <% if pq.certifier %>
             <%= _('cert. ') + pq.certifier.name + _(";") %>
          <% end %>
        <% end %>
      <% end %>

  <%= extra_content.join('\n') %>
  <% extra_properties.each do |property| %>

<%= property[:name] + ': ' + instance_eval(&property[:content]) %>

  <% end %>

<% extra_content = @plugins.map(:asset_product_extras, product, product.enterprise).collect { |content| instance_eval(&content) } %>
<% extra_properties = @plugins.map(:asset_product_properties, product)%>

    <%= render :partial => 'image', :object => product %>

    <% if product.available %>
      <% if product.price && product.price > 0 %>
        <% has_discount = product.discount && product.discount > 0 %>
        <% if product.price %>
          <%=_("from") if has_discount %><%= price_span(product.price, :class => "search-product-price " + (has_discount ? 'with-discount' : '')) %>
          <% if has_discount %>
            <%=_("by")%><%= price_span(product.price_with_discount, :class => "search-product-price") %>
          <% end %>
          <% if product.unit %>
             <%= _('/') %> <%= product.unit.name %>
          <% end %>
        <% end %>

          <% if product.inputs.count > product.inputs.collect(&:is_from_solidarity_economy).count(nil) %>
            <% se_i = t_i = 0 %>
            <% product.inputs.each{ |i| t_i += 1; se_i += 1 if i.is_from_solidarity_economy } %>
            <% p = case (se_i.to_f/t_i)*100 when 0..24.999 then ["0", _("0%")]; when 25..49.999 then ["25", _("25%")]; when 50..74.999 then ["50", _("50%")]; when 75..100 then ["75", _("100%")]; end %>
            <div class="search-product-percentage-from-solidarity-economy search-product-ecosol-percentage-icon-<%=p[0]%>" title="<%=_('Percentage of inputs from solidarity economy')%>">
              <%= p[1] %>

          <% end %>

          <% if product.inputs.count == product.inputs.collect(&:has_price_details?).count(true) %>
            <% title = product.inputs.map{ |i|
              '
' +
                '
' + i.product_category.name + '
' +
                price_span(i.price_per_unit*i.amount_used, :class => 'search-product-input-price') +
              '
' }.join('') %>
            <%= link_to_function _("Open Price"), '', :title => title, :class => "search-product-price-details" %>
          <% end %>

      <% end %>
    <% else %>
      <%= _('Not available') %>

    <% end %>

    <%= link_to_product product, :class => 'search-result-title' %>

      <%= _('Supplier') %>  <%= link_to_homepage(product.enterprise.name, product.enterprise.identifier) %>

      <% if product.description %>
        <% desc_stripped = strip_tags(product.description) %>
        <%= _('Description') %>  <%= excerpt(desc_stripped, desc_stripped.first(3), 300) %>
      <% end %>

      <% if product.enterprise.region %>
        <%= _('City') %>

<%= city_with_state(product.enterprise.region) %>
      <% end %>

      <% if product.product_qualifiers.count > 0 %>
        <%= _('Qualifiers') %>
        <% product.product_qualifiers.each do |pq| %>
          <% if pq.qualifier %>
            <%= pq.qualifier.name + (pq.certifier.nil? ?  _(";") : '') %>
          <% end %>
          <% if pq.certifier %>
             <%= _('cert. ') + pq.certifier.name + _(";") %>
          <% end %>
        <% end %>
      <% end %>

  <%= extra_content.join('\n') %>
  <% extra_properties.each do |property| %>

<%= property[:name] + ': ' + instance_eval(&property[:content]) %>

  <% end %>


Removed territory facet from Enterprise search view

  <% if @empty_query or @results.size > 1 or !profile.enterprise?  %>
    <%= profile_image_link profile, :portrait, 'div' %>
  <% else %>

        <%= profile_image_link profile, :portrait, 'div' %>

        <%= link_to_homepage(profile.name, profile.identifier, :class => "search-result-title") %>

          <% if profile.description %>
            <% body_stripped = strip_tags(profile.description) %>
          <% elsif profile.home_page and profile.home_page.body %>
            <% body_stripped = strip_tags(profile.home_page.body) %>
          <% end %>
          <%= excerpt(body_stripped, body_stripped.first(3), 200) if body_stripped %>

          <%= _("City") %>
          <% if profile.region %>
            <%= city_with_state(profile.region) %>
          <% end %>

        <% if !profile.description.blank? %>

<%= profile.description %>

        <% end %>

          <% profile.top_level_categorization.each do |parent, children| %>
            <% if parent.name != "Territórios" %>
              <div class="search-enterprise-category-<%=parent.id%> search-enterprise-category">
                <%= parent.name %>

                  <%= children.collect(&:name).join(', ')  %>

            <% end %>
          <% end %>

  <% end %>

  <% if @empty_query or @results.size > 1 or !profile.enterprise?  %>
    <%= profile_image_link profile, :portrait, 'div' %>
  <% else %>

        <%= profile_image_link profile, :portrait, 'div' %>

        <%= link_to_homepage(profile.name, profile.identifier, :class => "search-result-title") %>

          <% if profile.description %>
            <% body_stripped = strip_tags(profile.description) %>
          <% elsif profile.home_page and profile.home_page.body %>
            <% body_stripped = strip_tags(profile.home_page.body) %>
          <% end %>
          <%= excerpt(body_stripped, body_stripped.first(3), 200) if body_stripped %>

          <%= _("City") %>
          <% if profile.region %>
            <%= city_with_state(profile.region) %>
          <% else %>
          <% end %>

        <% if !profile.description.blank? %>

<%= profile.description %>

        <% end %>

          <% profile.top_level_categorization.each do |parent, children| %>
            <div class="search-enterprise-category-<%=parent.id%> search-enterprise-category">
              <%= parent.name %>
              <%= children.collect(&:name).join(', ')  %>

          <% end %>

  <% end %>


fix Journal Search form to be somewhat less confusing, modelled off of NYU's custom one

Journals

<%= render :partial=>"a_to_z" %>

  <% if flash[:error] %>

(!) Problems: <%= flash[:error] %>

  <% end %>

Looking for a specific journal or article

  <%= form_tag(@submit_hash, {:method=>'get', :class=>"OpenURL", :name=>'OpenURL', :id=>'OpenURL'})  %>

      <input type=hidden name="rfr_id" value="info:sid/sfxit.com:citation">

          Enter
              the journal title or the ISSN.
              If you have both the journal
              title
      and ISSN, use the ISSN.
        <input type="hidden" class="rft_title" name="rft.title">
          <input type="hidden" class="rft_object_id" name="rft.object_id">
          <input type="hidden" id="date" name="rft.date">

          Journal Title:

            <%= text_field :journal, :title, {:name=>'rft.jtitle', :autocomplete=>'off', :size=>'40', :class=>"title_search"} %>

            <select name="umlaut.title_search_type" class="sfx_title_search">
              <option value="contains">contains</option>
              <option value="begins">begins
              with</option>
              <option value="exact">exact match</option>
            </select>
                ISSN:
            <input type=text name="rft.issn" size="10" maxlength="9">

        Optional information - Enter as much as you know of the following:

        Date:
          <select name="__year">

          <option value="" selected>Year</option>
            <% (-1*Time.now.year..-1*1950).each do |year| %>
            <option value="<%= year.abs.to_s %>"><%= year.abs.to_s %></option>
            <% end %>
          </select>

          <select name="__month">
            <option value="" selected>Month
            <option value="01">Jan
            <option value="02">Feb
            <option value="03">Mar
            <option value="04">Apr
            <option value="05">May
            <option value="06">Jun
            <option value="07">Jul
            <option value="08">Aug
            <option value="09">Sep
            <option value="10">Oct
            <option value="11">Nov
            <option value="12">Dec
          </select>

          <select name="__day">
            <option value="" selected>Day
            <option value="01">01
            <option value="02">02
            <option value="03">03
            <option value="04">04
            <option value="05">05
            <option value="06">06
            <option value="07">07
            <option value="08">08
            <option value="09">09
            <option value="10">10
            <option value="11">11
            <option value="12">12
            <option value="13">13
            <option value="14">14
            <option value="15">15
            <option value="16">16
            <option value="17">17
            <option value="18">18
            <option value="19">19
            <option value="20">20
            <option value="21">21
            <option value="22">22
            <option value="23">23
            <option value="24">24
            <option value="25">25
            <option value="26">26
            <option value="27">27
            <option value="28">28
            <option value="29">29
            <option value="30">30
          </select>

             Volume:
          <input type=text name="rft.volume" size="5" maxlength="5" value="" class='volume'>   Issue:
          <input type=text name="rft.issue" size="5" value="" class="issue">
             Start page:
          <input type=text name="rft.spage" size="5" value="" class='spage'>

        DOI or Pubmed Identifier:

          <select name='rft_id_type'>
            <option value='doi'>DOI:</option>
            <option value='pmid'>PMID:</option>
          </select>
           <input name="rft_id_value" type=text value="" size=25>

      <input type="submit" name="Generate_OpenURL2" value="Search">

                                      </form>

? Having
    Trouble?

Try entering less information
    about your article. If one piece of information is wrong, it could be causing
    the problem.

  <% if help_url = AppConfig.param('help_url') %>

For technical support, including access problems, please <a href="<%= help_url %>">contact us.

  <% end %>

Journals

<%= render :partial=>"a_to_z" %>

  <% if flash[:error] %>

(!) Problems: <%= flash[:error] %>

  <% end %>

Searching for a specific journal?

  <%= form_tag(@submit_hash, {:method=>'get', :class=>"OpenURL", :name=>'OpenURL', :id=>'OpenURL'})  %>

      <input type=hidden name="rfr_id" value="info:sid/sfxit.com:citation">

          Enter
              the journal title or the ISSN.
              If you have both the journal
              title
      and ISSN, use the ISSN.
        <input type="hidden" class="rft_title" name="rft.title">
          <input type="hidden" class="rft_object_id" name="rft.object_id">
          <input type="hidden" id="date" name="rft.date">

          Journal Title:

            <%= text_field :journal, :title, {:name=>'rft.jtitle', :autocomplete=>'off', :size=>'40', :class=>"title_search"} %>

            <select name="umlaut.title_search_type" class="sfx_title_search">
              <option value="contains">contains</option>
              <option value="begins">begins
              with</option>
              <option value="exact">exact match</option>
            </select>
                ISSN:
            <input type=text name="rft.issn" size="10" maxlength="9">

Searching for a specific article?

        Enter as much as you know of the following:

        Date:
          <select name="__year">

          <option value="" selected>Year</option>
            <% (-1*Time.now.year..-1*1950).each do |year| %>
            <option value="<%= year.abs.to_s %>"><%= year.abs.to_s %></option>
            <% end %>
          </select>

          <select name="__month">
            <option value="" selected>Month
            <option value="01">Jan
            <option value="02">Feb
            <option value="03">Mar
            <option value="04">Apr
            <option value="05">May
            <option value="06">Jun
            <option value="07">Jul
            <option value="08">Aug
            <option value="09">Sep
            <option value="10">Oct
            <option value="11">Nov
            <option value="12">Dec
          </select>

          <select name="__day">
            <option value="" selected>Day
            <option value="01">01
            <option value="02">02
            <option value="03">03
            <option value="04">04
            <option value="05">05
            <option value="06">06
            <option value="07">07
            <option value="08">08
            <option value="09">09
            <option value="10">10
            <option value="11">11
            <option value="12">12
            <option value="13">13
            <option value="14">14
            <option value="15">15
            <option value="16">16
            <option value="17">17
            <option value="18">18
            <option value="19">19
            <option value="20">20
            <option value="21">21
            <option value="22">22
            <option value="23">23
            <option value="24">24
            <option value="25">25
            <option value="26">26
            <option value="27">27
            <option value="28">28
            <option value="29">29
            <option value="30">30
          </select>

             Volume:
          <input type=text name="rft.volume" size="5" maxlength="5" value="" class='volume'>   Issue:
          <input type=text name="rft.issue" size="5" value="" class="issue">
             Start page:
          <input type=text name="rft.spage" size="5" value="" class='spage'>

        DOI or Pubmed Identifier:

          <select name='rft_id_type'>
            <option value='doi'>DOI:</option>
            <option value='pmid'>PMID:</option>
          </select>
           <input name="rft_id_value" type=text value="" size=25>

      <input type="submit" name="Generate_OpenURL2" value="Search">

                                      </form>

? Having
    Trouble?

Try entering less information
    about your article. If one piece of information is wrong, it could be causing
    the problem.

  <% if help_url = AppConfig.param('help_url') %>

For technical support, including access problems, please <a href="<%= help_url %>">contact us.

  <% end %>


changing review, author feedback, meta review and teammate review scores to refer to the scores table.

git-svn-id: f67d969b640da65cb7bc1d229e09fd6d2db44ae1@438 392d7b7b-3f31-0410-9dc3-c95a9635ea79

<% i = 0;
        for @question in @questions %>
          <%=@question.txt%>

          <% @rev = @reviewfeedback.id %>
          <% @rs = Score.find(:first,:conditions => ["instance_id = ? AND question_id = ? AND questionnaire_type_id = ?", @rev, @question.id, QuestionnaireType.find_by_name("Author Feedback").id])%>
          <input id=new_review_score_<%=i%>_comments name=new_review_score[<%=i%>][comments] value = "<%=@rs.comments.gsub(/\"/,'"')%>"  size=70 type=text />
          <% if @question.true_false? %>
              <select id=new_score_<%=i%> name=new_score[<%=i%>]>
                 <option value="<%=@min%>" <%if @min==@rs.score%>selected="selected"<%end%> >false</option>
                 <option value="<%=@max%>" <%if @max==@rs.score%>selected="selected"<%end%> >true</option>
              </select>

          <% else %>
              <select id=new_score_<%=i%> name=new_score[<%=i%>]>
                  <% for j in @min..@max %>
                    <option value="<%=j%>" <%if j==@rs.score%>selected="selected"<%end%> ><%=j%></option>
                  <% end %>
              </select>

          <% end %>
          <input id=new_question_<%=i%> name=new_question[<%=i%>] value=<%=@question.id%> type=hidden />
    <% i += 1;
    end %>

Additional Comment:

<textarea cols="70" rows="5" id=new_review_comments name=new_reviewfeedback[comments]><%=@reviewfeedback.additional_comment%></textarea>

<% i = 0;
        for @question in @questions %>
          <%=@question.txt%>

          <% @rev = @reviewfeedback.id %>
          <% @rs = ReviewScore.find(:first,:conditions => ["review_id = ? AND question_id = ? AND questionnaire_type_id = ?", @rev, @question.id, QuestionnaireType.find_by_name("Author Feedback").id])%>
          <input id=new_review_score_<%=i%>_comments name=new_review_score[<%=i%>][comments] value = "<%=@rs.comments.gsub(/\"/,'"')%>"  size=70 type=text />
          <% if @question.true_false? %>
              <select id=new_score_<%=i%> name=new_score[<%=i%>]>
                 <option value="<%=@min%>" <%if @min==@rs.score%>selected="selected"<%end%> >false</option>
                 <option value="<%=@max%>" <%if @max==@rs.score%>selected="selected"<%end%> >true</option>
              </select>

          <% else %>
              <select id=new_score_<%=i%> name=new_score[<%=i%>]>
                  <% for j in @min..@max %>
                    <option value="<%=j%>" <%if j==@rs.score%>selected="selected"<%end%> ><%=j%></option>
                  <% end %>
              </select>

          <% end %>
          <input id=new_question_<%=i%> name=new_question[<%=i%>] value=<%=@question.id%> type=hidden />
    <% i += 1;
    end %>

Additional Comment:

<textarea cols="70" rows="5" id=new_review_comments name=new_reviewfeedback[comments]><%=@reviewfeedback.additional_comment%></textarea>


cleaning up elijah's clean up of my errors

<% if user %>
  <% profile = user.profiles.visible_by(current_user) %>

        <div <% if user.online? %>class="online"<% end %> style='text-align: center;'>
        <%=
          link_to "#{avatar_for user, 'small'}",
          url_for_user(user),:class=>'imglink'
        %>

      <%=  link_to "#{user.login}", url_for_user(user) %>
      <%= profile.full_name %>
      <%= profile.organization %>

        <% if profile.locations.any? %>
          <%= profile.locations.first.city %> <%= profile.locations.first.state %> <%= profile.locations.first.country_name %>
        <% end %>

      <%= user.last_seen_at ? user.last_seen_at.strftime("%Y-%m-%d") : "" %>

<% end %>


Heather's name spelt wrong

Heather's name spelt wrong

<% @title = "About" %>

<%= render :partial => 'help/alpha_notice' %>

Contact Us

If your question isn't answered here, or you just wanted to let us know
something about the site, contact us.

Introduction to WhatDoTheyKnow

What is WhatDoTheyKnow for?

To help you find out inside information about what the UK government
is doing.

How does the site work?

You choose the public authority that you would like information from, then
write a brief note describing what you want to know. We then send your request
to the public authority. Any response they make is automatically published on the
website for you and anyone else to find and read.

Why would I bother to do this?

You pay taxes, and then government does things with the money. All sorts of
things that affect your life, from healthcare through to national defence. Some
it does badly, some it does well. The more we find out about how government
works, the better able we are to make suggestions to improve the things that
are done badly, and to celebrate the things that are done well.

Why would the public authority bother to reply?

Under Freedom of Information (FOI) law, they have to respond.

Who makes it?

WhatDoTheyKnow is made by mySociety,
and was initially funded by the JRSST Charitable Trust. mySociety is a project of the
registered charity UK Citizens Online Democracy.
If you like what we're doing, then you can
make a donation.

Making requests

You're missing the public authority that I want to request from!

Please contact us with the name of the public authority and,
if you can find it, their contact email address for Freedom of Information requests.
If you'd like to help add a whole category of public authority to the site, for example all
primary care trusts or all schools, then please
edit this shared spreadsheet (Google account required).

How quickly will I get a response?

By law public authorities must respond within 20 days, excluding weekends and
any UK bank holidays. The date that the response is due by is shown on the
page for your request. You will be emailed if this date goes by without
a response, so you can send the public authority another note to hurry them up.

What if I'm not satisfied with the response?

If you didn't get the information you asked for, or you didn't get it in time,
then read our page 'Unhappy about the response you got?'.

Can you tell me more of the nitty gritty about the process of making requests?

Have a look at the
access to official information
pages on the Information Commisioner's website.

Can I request information about myself?

Not using this site. Requests made using WhatDoTheyKnow are public, made under the
Freedom of Information Act, and cannot help you find information about a
private individual. If you would like to know what information a public
authority holds about yourself, you should make a "Subject Access Request" in
private using Data Protection law.  The leaflet Subject
Access - A guide for data subjects (on the Information Commisioner's
website) explains how to do this.

I'd like to keep my request secret! (At least until I publish my story)

WhatDoTheyKnow is currently only designed for public requests. All
responses that we receive are automatically published on the website for anyone
to read.  You should contact the public authority directly if you would like to
make a request in private.  If you're interested in buying a system which helps
you manage FOI requests in secret, then contact us.

Privacy policy

Who gets to see my email address?

We will not disclose your email address to anyone, including the public
authority you are sending a request to, unless we are obliged to by law,
or you ask us to. If you send a message to another user on the site, then
it will reveal your email address to them. You will be told that this
is going to happen.

Will you send nasty, brutish spam to my email address?

Nope. After you sign up to WhatDoTheyKnow we will only send you emails
about the site or related mySociety services. We will never give or sell
your email addresses to anyone else, unless we are obliged to by law, or you
ask us to.

Why will my name appear publically on the site?

It means that someone researching the same area can get in touch with you,
and maybe give you more information or ideas relating to your request.  Also,
we're going to publish the response with the name of the civil servant who
wrote it, so it seems only fair that your name should be public too!
Therefore, we encourage you to use your real name, but you may use a pseudonym
if you would like to be anonymous.

So I can make an FOI request using a pseudonym?

Yes, you can. It is good practice for the public authority to reply to such
a request, except in special circumstances such as if they suspect you of
making vexatious requests. See Freedom of Information Good Practice Guidance No 6 for details. You
should refer to this if a public authority attempts to refuse a request because you used a pseudonym.
Saying that, you can avoid the problem by simply making your pseudonym look like a real person's name,
as there is no general obligation to prove your identity.

Why does the list of things that I'm tracking appear publically on the site?

This helps you find others who are researching the same area of government,
so you can form groups to investigate or campaign together. It also helps us
show requests which are related to other requests. If you've ever used a
"social bookmarking" website such as Delicious, Digg or reddit, think of it like
that.

Credit where credit is due

Which people made WhatDoTheyKnow?

Oh, nearly everyone (and maybe you too)! Heather Brooke
(vampy!) has
been pushing the idea of a UK FOI archive for years now. Both Phil Rodgers and
Francis Irving
entered it in a mySociety competition for ideas for public interest websites to build.
It won,
and then Chris Lightfoot (RIP :()
thought up the wheeze of intercepting email responses to requests and
automatically publishing them.  Tom Steinberg managed to get the cash to pay for the site out of
a dead chocolate mogul, so
that Francis Irving, Angie Ahl, Tommy Martin, Louise Crow, Matthew Somerville
and Tom Steinberg could do the complex mixture of design and coding to build
what you see today. Thanks particularly to Julian Todd (great blog!), Francis Davey, and
Etienne Pollard for using the site early on and giving feedback (and/or legal
advice!), and also to all our other users and testers.  Lots of
people have been looking up FOI email addresses, and a few volunteering to
administrate the site - most especially Adam McGreggor, Alex Skene and John
Cross. Finally we couldn't do any of this without those
crazy people who volunteer,
amongst many other things, to do the accounts and fill in our VAT return.
You're all stars.

<% @title = "About" %>

<%= render :partial => 'help/alpha_notice' %>

Contact Us

If your question isn't answered here, or you just wanted to let us know
something about the site, contact us.

Introduction to WhatDoTheyKnow

What is WhatDoTheyKnow for?

To help you find out inside information about what the UK government
is doing.

How does the site work?

You choose the public authority that you would like information from, then
write a brief note describing what you want to know. We then send your request
to the public authority. Any response they make is automatically published on the
website for you and anyone else to find and read.

Why would I bother to do this?

You pay taxes, and then government does things with the money. All sorts of
things that affect your life, from healthcare through to national defence. Some
it does badly, some it does well. The more we find out about how government
works, the better able we are to make suggestions to improve the things that
are done badly, and to celebrate the things that are done well.

Why would the public authority bother to reply?

Under Freedom of Information (FOI) law, they have to respond.

Who makes it?

WhatDoTheyKnow is made by mySociety,
and was initially funded by the JRSST Charitable Trust. mySociety is a project of the
registered charity UK Citizens Online Democracy.
If you like what we're doing, then you can
make a donation.

Making requests

You're missing the public authority that I want to request from!

Please contact us with the name of the public authority and,
if you can find it, their contact email address for Freedom of Information requests.
If you'd like to help add a whole category of public authority to the site, for example all
primary care trusts or all schools, then please
edit this shared spreadsheet (Google account required).

How quickly will I get a response?

By law public authorities must respond within 20 days, excluding weekends and
any UK bank holidays. The date that the response is due by is shown on the
page for your request. You will be emailed if this date goes by without
a response, so you can send the public authority another note to hurry them up.

What if I'm not satisfied with the response?

If you didn't get the information you asked for, or you didn't get it in time,
then read our page 'Unhappy about the response you got?'.

Can you tell me more of the nitty gritty about the process of making requests?

Have a look at the
access to official information
pages on the Information Commisioner's website.

Can I request information about myself?

Not using this site. Requests made using WhatDoTheyKnow are public, made under the
Freedom of Information Act, and cannot help you find information about a
private individual. If you would like to know what information a public
authority holds about yourself, you should make a "Subject Access Request" in
private using Data Protection law.  The leaflet Subject
Access - A guide for data subjects (on the Information Commisioner's
website) explains how to do this.

I'd like to keep my request secret! (At least until I publish my story)

WhatDoTheyKnow is currently only designed for public requests. All
responses that we receive are automatically published on the website for anyone
to read.  You should contact the public authority directly if you would like to
make a request in private.  If you're interested in buying a system which helps
you manage FOI requests in secret, then contact us.

Privacy policy

Who gets to see my email address?

We will not disclose your email address to anyone, including the public
authority you are sending a request to, unless we are obliged to by law,
or you ask us to. If you send a message to another user on the site, then
it will reveal your email address to them. You will be told that this
is going to happen.

Will you send nasty, brutish spam to my email address?

Nope. After you sign up to WhatDoTheyKnow we will only send you emails
about the site or related mySociety services. We will never give or sell
your email addresses to anyone else, unless we are obliged to by law, or you
ask us to.

Why will my name appear publically on the site?

It means that someone researching the same area can get in touch with you,
and maybe give you more information or ideas relating to your request.  Also,
we're going to publish the response with the name of the civil servant who
wrote it, so it seems only fair that your name should be public too!
Therefore, we encourage you to use your real name, but you may use a pseudonym
if you would like to be anonymous.

So I can make an FOI request using a pseudonym?

Yes, you can. It is good practice for the public authority to reply to such
a request, except in special circumstances such as if they suspect you of
making vexatious requests. See Freedom of Information Good Practice Guidance No 6 for details. You
should refer to this if a public authority attempts to refuse a request because you used a pseudonym.
Saying that, you can avoid the problem by simply making your pseudonym look like a real person's name,
as there is no general obligation to prove your identity.

Why does the list of things that I'm tracking appear publically on the site?

This helps you find others who are researching the same area of government,
so you can form groups to investigate or campaign together. It also helps us
show requests which are related to other requests. If you've ever used a
"social bookmarking" website such as Delicious, Digg or reddit, think of it like
that.

Credit where credit is due

Which people made WhatDoTheyKnow?

Oh, nearly everyone (and maybe you too)! Heather Brook
(vampy!) has
been pushing the idea of a UK FOI archive for years now. Both Phil Rodgers and
Francis Irving
entered it in a mySociety competition for ideas for public interest websites to build.
It won,
and then Chris Lightfoot (RIP :()
thought up the wheeze of intercepting email responses to requests and
automatically publishing them.  Tom Steinberg managed to get the cash to pay for the site out of
a dead chocolate mogul, so
that Francis Irving, Angie Ahl, Tommy Martin, Louise Crow, Matthew Somerville
and Tom Steinberg could do the complex mixture of design and coding to build
what you see today. Thanks particularly to Julian Todd (great blog!), Francis Davey, and
Etienne Pollard for using the site early on and giving feedback (and/or legal
advice!), and also to all our other users and testers.  Lots of
people have been looking up FOI email addresses, and a few volunteering to
administrate the site - most especially Adam McGreggor, Alex Skene and John
Cross. Finally we couldn't do any of this without those
crazy people who volunteer,
amongst many other things, to do the accounts and fill in our VAT return.
You're all stars.


move zoom in one level by default

move zoom in one level by default

<%= render :partial => 'search' %>

<% if params['mlon'] and params['mlat'] %>
<% marker = true %>
<% mlon = params['mlon'] %>
<% mlat = params['mlat'] %>
<% end %>

<% if params['lon'] and params['lat'] %>
<% lon =  params['lon'] %>
<% lat =  params['lat'] %>
<% zoom =  params['zoom'] || '5' %>
<% elsif params['mlon'] and params['mlat'] %>
<% lon = params['mlon'] %>
<% lat = params['mlat'] %>
<% zoom =  params['zoom'] || '12' %>
<% elsif @user %>
<% lon =  @user.home_lon %>
<% lat =  @user.home_lat %>
<% zoom = '10' %>
<% else %>
<% lon =  '-0.1' %>
<% lat =  '51.5' %>
<% zoom =  params['zoom'] || '5' %>
<% end %>

<script type="text/javascript" src="/openlayers/OpenLayers.js"></script>
<%= javascript_include_tag 'map.js' %>

<% unless @user %>
<script src="http://www.mappam.com/javascripts/mappam.js" type="text/javascript"></script>
<% end %>

<script type="text/javascript">
  <!--
  var ie = navigator.appName.indexOf("Microsoft Internet Explorer") != -1;
  var map;

  function init(){
    var centre = lonLatToMercator(new OpenLayers.LonLat(<%= lon %>, <%= lat %>));
    var zoom = <%= zoom %>;

    <% if params['scale'] and params['scale'].length > 0 then %>
    zoom = scaleToZoom(<%= params['scale'].to_f() %>);
    <% end %>

    var map = createMap("map", centre, zoom);

    <% if marker %>
    addMarkerToMap(lonLatToMercator(new OpenLayers.LonLat(<%= mlon %>, <%= mlat %>)));
    <% end %>

    map.events.register("moveend", map, updateLocation);
    updateLocation();

    <% unless @user %>
    if ( window.location.hostname == "www.openstreetmap.org" ) {
      mappam.register( map, '10011756636067178496', '1');
    } else if( window.location.hostname == "openstreetmap.org" ) {
      mappam.register( map, '6738410720121976832', '1');
    }
    <% end %>

    document.getElementById('map_OpenLayers_ViewPort').style.position = 'absolute';
    if ( ie ) {
      handleResize();
    }
  }

  function updateLocation() {
    var lonlat = mercatorToLonLat(map.getCenter());
    var zoom = map.getZoom();

    updatelinks(lonlat.lon, lonlat.lat, zoom);
  }

  function getStyle( el, property ) {
    var style;
    if( el.currentStyle ) {
        style = el.currentStyle[property];
    } else if( window.getComputedStyle ) {
        style = document.defaultView.getComputedStyle(el,null).getPropertyValue(property);
    } else {
        style = el.style[property];
    }
    return style;
  }

  function handleResize() {
    var el = document.getElementById( 'map' );
    var left = getStyle( el, 'left' );
    var top = getStyle( el, 'top' );
    var bottom = getStyle( el, 'bottom' );
    var right = getStyle( el, 'right' );
    var width = el.old_width;
    var height;
    if( ! width ) {
        width = getStyle( el, 'width' );
    }
    var height = el.old_height;
    if( ! height ) {
        height = getStyle( el, 'height' );
    }
    var pwidth, pheight;
    if( el.offsetParent.nodeName == 'BODY' || el.offsetParent.nodeName == 'HTML' ) {
      if( typeof( window.innerWidth ) == 'number' ) {
          pwidth = window.innerWidth;
          pheight = window.innerHeight;
      } else if( document.documentElement &&
          ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
          pwidth = document.documentElement.clientWidth;
          pheight = document.documentElement.clientHeight;
      } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
          pwidth = document.body.clientWidth;
          pheight = document.body.clientHeight;
      }
    } else {
      pwidth = el.offsetParent.offsetWidth;
      pheight = el.offsetParent.offsetHeight;
    }
    if( left != 'auto' && right != 'auto' && width == 'auto' ) {
      el.old_width = width;
      var new_width = (pwidth - el.offsetLeft - parseInt( right ) );
      el.style.width = new_width + 'px';
    }
    if( top != 'auto' && bottom != 'auto' && height == 'auto' ) {
      el.old_height = height;
      var new_height = (pheight - el.offsetTop - parseInt( bottom ) );
      el.style.height = new_height + 'px';
    }
    map.updateSize();
    el.style.display = 'none';
    setTimeout( function() { el.style.display = ''; }, 200 );
  }

  if ( ie ) {
    window.onresize = handleResize;
  }

  window.onload = init;
// -->
</script>

<%= render :partial => 'search' %>

<% if params['mlon'] and params['mlat'] %>
<% marker = true %>
<% mlon = params['mlon'] %>
<% mlat = params['mlat'] %>
<% end %>

<% if params['lon'] and params['lat'] %>
<% lon =  params['lon'] %>
<% lat =  params['lat'] %>
<% zoom =  params['zoom'] || '4' %>
<% elsif params['mlon'] and params['mlat'] %>
<% lon = params['mlon'] %>
<% lat = params['mlat'] %>
<% zoom =  params['zoom'] || '12' %>
<% elsif @user %>
<% lon =  @user.home_lon %>
<% lat =  @user.home_lat %>
<% zoom = '10' %>
<% else %>
<% lon =  '-0.1' %>
<% lat =  '51.5' %>
<% zoom =  params['zoom'] || '4' %>
<% end %>

<script type="text/javascript" src="/openlayers/OpenLayers.js"></script>
<%= javascript_include_tag 'map.js' %>

<% unless @user %>
<script src="http://www.mappam.com/javascripts/mappam.js" type="text/javascript"></script>
<% end %>

<script type="text/javascript">
  <!--
  var ie = navigator.appName.indexOf("Microsoft Internet Explorer") != -1;
  var map;

  function init(){
    var centre = lonLatToMercator(new OpenLayers.LonLat(<%= lon %>, <%= lat %>));
    var zoom = <%= zoom %>;

    <% if params['scale'] and params['scale'].length > 0 then %>
    zoom = scaleToZoom(<%= params['scale'].to_f() %>);
    <% end %>

    var map = createMap("map", centre, zoom);

    <% if marker %>
    addMarkerToMap(lonLatToMercator(new OpenLayers.LonLat(<%= mlon %>, <%= mlat %>)));
    <% end %>

    map.events.register("moveend", map, updateLocation);
    updateLocation();

    <% unless @user %>
    if ( window.location.hostname == "www.openstreetmap.org" ) {
      mappam.register( map, '10011756636067178496', '1');
    } else if( window.location.hostname == "openstreetmap.org" ) {
      mappam.register( map, '6738410720121976832', '1');
    }
    <% end %>

    document.getElementById('map_OpenLayers_ViewPort').style.position = 'absolute';
    if ( ie ) {
      handleResize();
    }
  }

  function updateLocation() {
    var lonlat = mercatorToLonLat(map.getCenter());
    var zoom = map.getZoom();

    updatelinks(lonlat.lon, lonlat.lat, zoom);
  }

  function getStyle( el, property ) {
    var style;
    if( el.currentStyle ) {
        style = el.currentStyle[property];
    } else if( window.getComputedStyle ) {
        style = document.defaultView.getComputedStyle(el,null).getPropertyValue(property);
    } else {
        style = el.style[property];
    }
    return style;
  }

  function handleResize() {
    var el = document.getElementById( 'map' );
    var left = getStyle( el, 'left' );
    var top = getStyle( el, 'top' );
    var bottom = getStyle( el, 'bottom' );
    var right = getStyle( el, 'right' );
    var width = el.old_width;
    var height;
    if( ! width ) {
        width = getStyle( el, 'width' );
    }
    var height = el.old_height;
    if( ! height ) {
        height = getStyle( el, 'height' );
    }
    var pwidth, pheight;
    if( el.offsetParent.nodeName == 'BODY' || el.offsetParent.nodeName == 'HTML' ) {
      if( typeof( window.innerWidth ) == 'number' ) {
          pwidth = window.innerWidth;
          pheight = window.innerHeight;
      } else if( document.documentElement &&
          ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
          pwidth = document.documentElement.clientWidth;
          pheight = document.documentElement.clientHeight;
      } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
          pwidth = document.body.clientWidth;
          pheight = document.body.clientHeight;
      }
    } else {
      pwidth = el.offsetParent.offsetWidth;
      pheight = el.offsetParent.offsetHeight;
    }
    if( left != 'auto' && right != 'auto' && width == 'auto' ) {
      el.old_width = width;
      var new_width = (pwidth - el.offsetLeft - parseInt( right ) );
      el.style.width = new_width + 'px';
    }
    if( top != 'auto' && bottom != 'auto' && height == 'auto' ) {
      el.old_height = height;
      var new_height = (pheight - el.offsetTop - parseInt( bottom ) );
      el.style.height = new_height + 'px';
    }
    map.updateSize();
    el.style.display = 'none';
    setTimeout( function() { el.style.display = ''; }, 200 );
  }

  if ( ie ) {
    window.onresize = handleResize;
  }

  window.onload = init;
// -->
</script>


Removed a legacy draggable element ref that was also causing an an endless loop of javascript errors under certain circumstances.  NOTE: Ajax cart will probably return eventually as an extension.

Products

	<% for product in @products %>
	<li class="product preview" id="product_<%= product.id %>">
	        <a href="/store/show/<%=product.id%>">
	          <%= small_image(product) %>

		 	<%= link_to product.name, :controller => :store, :action => 'show', :id => product %>
	        <%= "$ #{product.master_price}" if product.master_price %>

	<% end %>

Products

	<% for product in @products %>
	<li class="product preview" id="product_<%= product.id %>">
	        <a href="/store/show/<%=product.id%>">
	          <%= small_image(product) %>

		 	<%= link_to product.name, :controller => :store, :action => 'show', :id => product %>
	        <%= "$ #{product.master_price}" if product.master_price %>

	<%= draggable_element("product_#{product.id}", :revert => true) %>

	<% end %>


Make sure there isn't a full stop immediately after our email, in case some mail clients include it in the address

<%= @outgoing_message.body.strip %>

-------------------------------------------------------------------
Is <%= @info_request.public_body.request_email%> the wrong address for Freedom
of Information requests to <%= @info_request.public_body.name%>? If so please
let us know by emailing <%=@contact_email%> - we'll make sure future ones go to
the right place.
-------------------------------------------------------------------

<%= @outgoing_message.body.strip %>

-------------------------------------------------------------------
Is <%= @info_request.public_body.request_email%> the wrong address for Freedom
of Information requests to <%= @info_request.public_body.name%>? If so please
let us know by emailing <%=@contact_email%>. We'll make sure future ones go to
the right place.
-------------------------------------------------------------------