added reserves link to algoma footer
authorrisard <risard@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Wed, 26 Aug 2009 14:09:32 +0000 (14:09 +0000)
committerrisard <risard@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Wed, 26 Aug 2009 14:09:32 +0000 (14:09 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/trunk@634 6d9bc8c9-1ec2-4278-b937-99fde70a366f

circ/circ_duration_OSTMA.js [new file with mode: 0644]
web/opac/locale/en-CA/opac_conifer.dtd
web/opac/locale/en-US/opac_conifer.dtd
web/opac/skin/algoma/xml/footer.xml

diff --git a/circ/circ_duration_OSTMA.js b/circ/circ_duration_OSTMA.js
new file mode 100644 (file)
index 0000000..7e35bee
--- /dev/null
@@ -0,0 +1,48 @@
+/* grab the config from the config script */
+var config = getItemConfig();
+var itemForm    = (marcXMLDoc) ? extractFixedField(marcXMLDoc,'Form') : "";
+
+
+/* Set the defaults for books for most patron types */
+result.durationRule = '3_weeks_2_renew';                       
+result.recurringFinesRule = '50_cent_per_day';
+result.maxFine = '10_dollars';
+
+
+/*Set the exceptions for regular books*/
+/* FACULTY */
+if (patronProfile == 'Faculty'){
+       result.durationRule = '120_days_0_renew';               
+}
+
+/*Set exceptions for other materials*/
+
+/* AV MATERIALS */
+if (copy.circ_modifier == 'AUDIO' || 'VIDEO' || 'DVD VIDEO' && patronProfile == 'Faculty'){
+       result.durationRule = '14_days_0_renew';                                        
+       result.recurringFinesRule = '2_dollars_per_day';
+       result.maxFine = '25_dollars';  
+}
+
+/* RESERVES */
+/* Reserve items - let's use regular expressions to save some pain */
+res_day_re = /^RESERVE (\d+) DAY$/;
+res_hour_re = /^RESERVE (\d+) HOUR$/;
+res_day_match = res_day_re.exec(copy.circ_modifier);
+res_hour_match = res_hour_re.exec(copy.circ_modifier);
+if (res_day_match) {
+       result.durationRule = res_day_match[1] + '_days_0_renew';
+       result.recurringFinesRule = '2_dollars_per_day';
+       result.maxFine = '15_dollars;
+} else if (res_hour_match) {
+       result.durationRule = res_hour_match[1] + '_hours_0_renew';
+       result.recurringFinesRule = '50_cents_per_hour';
+       result.maxFine = '15_dollars';
+}
+
+
+
+
+
+
+
index 201e341..ccddc47 100644 (file)
@@ -39,3 +39,5 @@
 <!ENTITY au.footer.library.about.url "http://www.algomau.ca/view.php?page=about&amp;parent=library">
 <!ENTITY au.footer.library.home "Home">
 <!ENTITY au.footer.library.home.url "http://www.algomau.ca/view.php?page=about&amp;parent=library">
+<!ENTITY au.footer.library.reserves "COURSE RESERVES">
+<!ENTITY au.footer.library.reserves.url "http://courses.algomau.ca/course/view.php?id=539">
index d20f471..422ef79 100644 (file)
@@ -39,3 +39,5 @@
 <!ENTITY au.footer.library.about.url "http://www.algomau.ca/view.php?page=about&amp;parent=library">
 <!ENTITY au.footer.library.home "Home">
 <!ENTITY au.footer.library.home.url "http://www.algomau.ca/view.php?page=about&amp;parent=library">
+<!ENTITY au.footer.library.reserves "COURSE RESERVES">
+<!ENTITY au.footer.library.reserves.url "http://courses.algomau.ca/course/view.php?id=539">
index d74a0ca..de8e8e6 100644 (file)
@@ -7,23 +7,39 @@
                                <span> | </span>
                                <span class='footer_link'>
                                        <a target='_blank' class='classic_link'
-                                               href='&footer.find.url;'>&footer.find.library;</a>
+                                               href='&au.footer.databases.url;'>&au.footer.databases;</a>
                                </span> 
                                <span> | </span>
                                <span class='footer_link'>
                                        <a target='_blank' class='classic_link'
-                                               href='&footer.help.url;'>&footer.help;</a>
+                                               href='&au.footer.archives.url;'>&au.footer.archives;</a>
                                </span>
                                <span> | </span>
                                <span class='footer_link'>
                                        <a target='_blank' class='classic_link'
-                                               href='&footer.library.url;'>&footer.library.about;</a>
+                                               href='&au.footer.contact.url;'>&au.footer.contact;</a>
                                </span>
                                <span> | </span>
                                <span class='footer_link'>
-                                       <a target='_blank' class='classic_link' id='eg_gal_link'
-                                               href='&footer.union.url;'>&footer.union;</a>
+                                       <a target='_blank' class='classic_link' 
+                                               href='&au.footer.library.about.url;'>&au.footer.library.about;</a>
                                </span>
+                               </span>
+                               <span> | </span>
+                               <span class='footer_link'>
+                                       <a target='_blank' class='classic_link' 
+                                               href='&au.footer.library.home.url;'>&au.footer.library.home;</a>
+                               </span>
+                               </span>
+                               <span> | </span>
+                               <span class='footer_link'>
+                                       <a target='_blank' class='classic_link' 
+                                               href='&au.footer.library.reserves.url;'>&au.footer.library.reserves;</a>
+                               </span>
+
+
+
+
                </div>
         <div id='copyright_text'>
             <span>&footer.copyright;</span>