Issue Details (XML | Word | Printable)

Key: CONTRIB-180
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Anthony Borrow
Reporter: Larry M Elchuck, Ph.D.
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Non-core contributed modules

Embed MRBS window within Moodle and eliminate possibility of a cascading of the header and breadcrumbs

Created: 19/Nov/07 06:02 AM   Updated: 08/Aug/08 05:45 PM
Return to search
Component/s: Block: Mrbs
Affects Version/s: 1.8.2, 1.9
Fix Version/s: None

File Attachments: 1. File CONTRIB-180.diff (15 kB)

Image Attachments:

1. CONTRIB-180.png
(142 kB)

2. Picture 16.png
(35 kB)

3. Picture 17.png
(152 kB)
Environment: All
Issue Links:
Dependency
 

Database: Any
Participants: Anthony Borrow and Larry M Elchuck, Ph.D.
Security Level: None
Resolved date: 07/Aug/08
Affected Branches: MOODLE_18_STABLE, MOODLE_19_STABLE


 Description  « Hide
Currently the MRBS integration is in the form of a block and is designed to run from the main site page. When the link to the MRBS is clicked, a new window opens, temporarily leaving the moodle installation in the background.

A desirable new feature would be to allow the MRBS to remain in the main Moodle window, with the header and site navigation (breadcrumbs) still visible.

This would require rewriting the code to allow for this to happen and to fix the link back to server to avoid having the entire site open within the framed area below the existing breadcrumb trail. Another option would be to remove it altogether, as this link would no longer be required, since the MRBS is within the Moodle browser page.

The ability to hide the block and link to it via Link to Resource pages, could allow staff and students that need to book common resources, do so within the courses for which this feature is desireable.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Anthony Borrow added a comment - 19/Nov/07 06:09 AM
Thanks for creating this Larry. I hope to get some time over one of the holiday breaks to play with this. Peace - Anthony

Anthony Borrow added a comment - 31/Jul/08 01:39 AM
Larry - I'm getting a chance to play with MRBS code now. I'll be working on CONTRIB-422 and CONTRIB-230 before coming back and polishing off with this issue. Peace - Anthony

Larry M Elchuck, Ph.D. added a comment - 01/Aug/08 06:40 PM
Thanks for the update Anthony. I see you are making progress on other MRBS issues in HEAD. Look forward to all of your improvements and the backporting to 1.9.x

larry


Anthony Borrow added a comment - 01/Aug/08 09:08 PM
Larry - I just said I was making changes, no one said anything about improvements or backporting Actually I'm working on the HEAD branch but testing primarily against 1.9. Peace - Anthony

Larry M Elchuck, Ph.D. added a comment - 01/Aug/08 09:17 PM
Surely your changes are improvements .... or else why do them ... lol!

The fact that you are testing against 1.9 is good news in any event

L


Anthony Borrow added a comment - 03/Aug/08 04:41 AM
CONTRIB-180 is a subtask of CONTRIB-230

Anthony Borrow added a comment - 07/Aug/08 08:41 AM
Larry - Here is a first stab at improving things. I believe this prevents the framing issue you were referring to. Take a look at the screenshot and let me know what you think. Peace - Anthony

Anthony Borrow added a comment - 07/Aug/08 08:44 AM
As for linking from other courses - I think a simple resource with the URL to http://mysite.com/blocks/mrbs/web/index.php should work. We may have to work on passing the course string. I'll test this now. Peace - Anthony

Anthony Borrow added a comment - 07/Aug/08 09:05 AM
OK - we have a functional version IMO, let me know how it can be improved. Peace - Anthony

Larry M Elchuck, Ph.D. added a comment - 07/Aug/08 10:23 AM
Will do in the am, Anthony

I'm GMT-4

larry


Larry M Elchuck, Ph.D. added a comment - 07/Aug/08 07:35 PM
Did not get too far Anthony

When I click the admin link, I get "Table 'm19sql.mdl_mrbs_area' doesn't exist" so it appears not to install the mdl_mrbs_area table when i hit notifications after repacing the old mrbs.

larry


Larry M Elchuck, Ph.D. added a comment - 07/Aug/08 07:40 PM
Should have attached this to my last comment

L


Anthony Borrow added a comment - 07/Aug/08 11:17 PM
Larry - I had not considered upgrading that would be worthy of a tracker issue to help folks migrate from the old to the new. There currently is no upgrade script. I've been assuming a fresh installation which means you would have to go to Site Administration, Modules -> Blocks -> Manage Blocks and delete the Resource Scheduling block. Then click on notifications and it should trigger the install.xml and create the tables. for you. Peace - Anthony

Larry M Elchuck, Ph.D. added a comment - 08/Aug/08 03:56 AM
Worked after I did a clean install Anthony

2 issues noticed so far.
1. Unless I put a blank space after the name of the room, the "(" for the description appears next to it with no space.
2. The default date is a month earlier the current date. (eg. July 7 when today is Aug 7)

I did not test adding any dates yet

larry


Anthony Borrow added a comment - 08/Aug/08 06:20 AM - edited
Larry - Thanks for the help with testing. Both 1 and 2 sounds easy enough to fix. Could you let me know on what page (URL) you are seeing each of those errors as it will help me to track them down. Peace - Anthony

p.s. Screen shots are always helpful to me as I am very visual. Once I see it, I get it.


Anthony Borrow added a comment - 08/Aug/08 06:28 AM
Larry - OK, I have fixed the space after the name in the admin.php file and committed that to CVS. I also noticed the missing colon after description below that. I was unable to reproduce #2. The current date seems to be fine but I'll need the URL to ensure we are looking at the same page. Peace - Anthony

Larry M Elchuck, Ph.D. added a comment - 08/Aug/08 07:04 AM

Anthony Borrow added a comment - 08/Aug/08 07:28 AM
OK - I see it but I cannot reproduce it. It is strange because the logic is pretty straight forward. I'm looking at line 342 of the /blocks/mrbs/web/functions.php file which reads:

<OPTION VALUE=\"$i\"" . ($i == $month ? " SELECTED" : "") . ">$m";

which is essentially looping through the twelve months of the year where $i is the loop integer.

<OPTION VALUE="1" >Jan
<OPTION VALUE="2" >Feb
<OPTION VALUE="3" >Mar
<OPTION VALUE="4" >Apr
<OPTION VALUE="5" >May
<OPTION VALUE="6" >Jun
<OPTION VALUE="7" >Jul
<OPTION VALUE="8" SELECTED>Aug

the $m is the month name format and uses the first day of the month at midnight. It could be that there is some type of offset that you are not using the server's time - so a difference between the user's time and the server's time might be causing it to display off by a month. I'll play with it and see if I can reproduce it.

Peace - Anthony


Anthony Borrow added a comment - 08/Aug/08 11:52 AM
Larry - I confirmed that it was an issue with the system time zone. I think I have applied a fix that should neutralize the problem. Let me know how it goes. Peace - Anthony

Larry M Elchuck, Ph.D. added a comment - 08/Aug/08 05:45 PM
You resolved this date display issue, Anthony
I'll look at adding/testing entries in a bit.

thanks
larry