The USAJobs module provides a block to display all opening jobs for a specific federal, state or local agency. Data source comes from Government Jobs API which is collecting across federal governments and includes all current openings posted on USAJobs.gov.

This API has provided by data.gov for public access to open goverment database.

Project page
https://drupal.org/node/2225805

Git clone
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/axlrose/2225805.git usajobs

Demo
Try out a demonstration

Reviews of other projects:

Comments

phoang’s picture

Issue summary: View changes
phoang’s picture

Issue summary: View changes
phoang’s picture

Status: Active » Needs review
PA robot’s picture

We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)

Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).

I'm a robot and this is an automated message from Project Applications Scraper.

inders’s picture

Status: Needs review » Needs work

A lot of HTML inside hook_block_view().

  $item  = '<div class="job-title">';
      $item .= '<a href="' . $job->url . '" target="_blank">' . check_plain($job->position_title) . '</a>';
      $item .= '</div>';

you can implement hook_theme() / have a seperate template for handling a lot of markup stuff.

phoang’s picture

Issue summary: View changes
Status: Needs work » Needs review

I implemented hook_theme and moved the markup to template file already. There's an instruction with all available variables for creating custom template as well.

Please review and advise.

phoang’s picture

Issue summary: View changes
Issue tags: +PAreview: review bonus
dahousecat’s picture

Issue summary: View changes
dahousecat’s picture

Could not find any major issues, however the addition of some css to format the job listing would make the block look prettier out the box.

This is only a suggestion, not a bug, but selecting the organization ID isn't very user friendly. Would it be possible to have one drop down to select state and one to select organization (this may not be practical but would be nice...)

phoang’s picture

Thanks for reviewing. I will add some basic CSS to make it prettier.

I was thinking to add the select list for the Organization ID too. However, It would need to be leave as it is so user can add specific query for their agencies, please see example format below:

For state and local agencies, a sample of the format follows.
State of Virginia______________________US-VA
State of Virginia Department of Taxation__US-VA:DEPT-TAX
Fairfax County, VA____________________US-VA:COUNTY-FAIRFAX
Fairfax County Sheriff_________________ US-VA:COUNTY-FAIRFAX:SHERIFF
City of Fairfax, VA____________________ US-VA:COUNTY-FAIRFAX:CITY-FAIRFAX

P/S: Please change the issue status to Reviewed & tested by the community, if you have tested the module and didn't see any issue.

dahousecat’s picture

Status: Needs review » Reviewed & tested by the community
phoang’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Needs review

Updated with implement stylesheet. Please see screenshot on project page.

dahousecat’s picture

Status: Needs review » Reviewed & tested by the community

Looks good with the new CSS.

Still can't spot any other issues so got the thumbs up from me.

phoang’s picture

Issue summary: View changes

add demo link

klausi’s picture

Status: Reviewed & tested by the community » Fixed

manual review:

  1. usajobs_block_view(): no need to use #markup here, you can just build a nested render array with _usajobs_block_content(). Then you also don't have to call theme() in _usajobs_block_content() and other modules can better alter the block render array if they want to.
  2. usajobs-item.tpl.php: "Apply by print $job_end_date; " should run through t() for translation.

But otherwise looks good to me, so ...

Thanks for your contribution, phoang!

I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.

Here are some recommended readings to help with excellent maintainership:

You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!

Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

Thanks to the dedicated reviewer(s) as well.

phoang’s picture

Thanks for your recommendations, I will improve the module for next release version.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.